I am trying to use the spinner widget that was provided in the jquery ui version 1.9 but am unable to get it to work. When I try my code in a page not attached to my master file it works perfectly. If I use that same code in a page that is attached to my
master file it does not run and errors out saying it cannot find the function.
I do not have the Jquery UI files referenced on the master file but I do have them on the individual page level. I did some searching and it looks like the Ajax documents references older versions of the UI. Is there any way to correct this or make sure
that the page accesses the Jquery file referenced on it?
I've added the files to my project directly instead of referencing the CDN. I really think that this has something to do with the ajax toolkit or my master file. As I said above, it works perfectly when on a file that isn't attached to my master.
I just figured this out. I had used NuGet in visual studio to install the AJAX Toolkit... when I did this it installed an old version of Jquery UI which did not have the spinner. Even though I was using the correct scripts on my page it was still accessing
the older one. I used NuGet to update the jquery and jquery libraries which in turn updated the one that AJAX was associated with.
(I feel so silly...)
I am sorry though, I did not see your post until just now so I did not try your suggestion. Thank you for giving it though!
Marked as answer by Yecats on Jan 04, 2013 08:37 PM
Yecats
Member
1 Points
4 Posts
Ajax Toolkit references old jquery ui
Jan 04, 2013 02:15 AM|LINK
I am trying to use the spinner widget that was provided in the jquery ui version 1.9 but am unable to get it to work. When I try my code in a page not attached to my master file it works perfectly. If I use that same code in a page that is attached to my master file it does not run and errors out saying it cannot find the function.
I do not have the Jquery UI files referenced on the master file but I do have them on the individual page level. I did some searching and it looks like the Ajax documents references older versions of the UI. Is there any way to correct this or make sure that the page accesses the Jquery file referenced on it?
april_123456
Participant
775 Points
246 Posts
Re: Ajax Toolkit references old jquery ui
Jan 04, 2013 02:35 AM|LINK
Hello Yecats,
To make sure that the page accesses the Jquery file referenced on it - you need to make sure that the Jquery is installed properly.
Also, please view the following:
http://www.csgpro.com/blogs/post/2012/10/18/Hiding-SharePoint-Fields-Using-jQuery.aspx
http://asp.net.bigresource.com/AJAX-Adding-reference-to-jquery-throws-error-5FKv71tNB.html
You may find to useful.
Yecats
Member
1 Points
4 Posts
Re: Ajax Toolkit references old jquery ui
Jan 04, 2013 04:26 PM|LINK
I've added the files to my project directly instead of referencing the CDN. I really think that this has something to do with the ajax toolkit or my master file. As I said above, it works perfectly when on a file that isn't attached to my master.
Yousef_Jadal...
Star
8812 Points
1502 Posts
Re: Ajax Toolkit references old jquery ui
Jan 04, 2013 07:36 PM|LINK
Try to use this referencing :
Yecats
Member
1 Points
4 Posts
Re: Ajax Toolkit references old jquery ui
Jan 04, 2013 08:36 PM|LINK
I just figured this out. I had used NuGet in visual studio to install the AJAX Toolkit... when I did this it installed an old version of Jquery UI which did not have the spinner. Even though I was using the correct scripts on my page it was still accessing the older one. I used NuGet to update the jquery and jquery libraries which in turn updated the one that AJAX was associated with.
(I feel so silly...)
I am sorry though, I did not see your post until just now so I did not try your suggestion. Thank you for giving it though!