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

New Post: SPUpdateMultipleListItems and the dreaded [today]

$
0
0

I did have a question however about your SPUpdateMultipleListItems. I found out some interesting things about how it's being executed that may explain why I can't get it to run before the page load. I found this little tid bit on a site called "5 Things You Might Not Know about jQuery"

1.You don't have to use $(document).ready() anymore, though you'll still see plenty of code out there that does. If you want to run a function when the document is ready to be manipulated, just pass that function directly to $().

By the above statement executing your SPUpdateMultipleListItems like the below sample from your documentation will always result in it waiting for the page to load.

$().SPServices.SPUpdateMultipleListItems({.....});

The same would be true for executing it like the following since $ is just a shortcut for jQuery

jQuery().SPServices.SPUpdateMultipleListItems({.....});

My question is how would you execute SPUpdateMultipleListItems differently than above so that it will run before the page loads?

Thanks,

David Infante

 

 


Viewing all articles
Browse latest Browse all 6517

Trending Articles