Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: SPServices and jQuery 1.10 (and beyond)

$
0
0
OK, I think we've narrowed it down to the jQuery 1.1x.x ".append()" and ".appendTo()" methods (they behave the same). I was not able to append options directly to the <select> tag using the innerHTML property (it's an IE thing). So, I converted the placeholder element to a <span>. In my code, I constructed the <select> and all 13K+ of its options, then appended the entire thing to the span element using the innerHTML property and everything works fine. The final results are

Using jQuery 1.8.3
$("#users_SiteUsersSpan").append(strHTML); < 2 seconds to modify DOM
$("#users_SiteUsersSpan")[0].innerHTML = strHTML; < 2 seconds to modify DOM


Using jQuery 1.1x.x....
$("#users_SiteUsersSpan").append(strHTML); 67 seconds to modify DOM
$("#users_SiteUsersSpan")[0].innerHTML = strHTML; < 2 seconds to modify DOM

I have no idea what they changed about the .append() and .appendTo() methods but they are definitely hoarked up.

I will take a closer look at your widget as well.

Thanks for your inputs,

Geoff

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>