Skip to main content

Questions tagged [spbodyonload]

Filter by
Sorted by
Tagged with
0 votes
1 answer
2k views

'$' is undefined

I am getting the message '$' is undefined below is my code these are the script tags i am using script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" /...
Tony Danza's user avatar
1 vote
2 answers
6k views

spBodyOnLoadFunctionNames not working on Master Page

we are trying to execute some script after the master page loads. <script language="javascript"> _spBodyOnLoadFunctionNames.push("FunctionName"); function FunctionName() ...
variable's user avatar
  • 4,440
2 votes
4 answers
6k views

_spBodyOnLoadFunctionNames not always working

This is in reference to SharePoint 2010. I am writing some custom javascript that needs to know when the page has finished loading. To accomplish this I am pushing my callback function on to the ...
Jeff's user avatar
  • 105
1 vote
0 answers
493 views

_spBodyOnLoadFunctionNames.push Not working in firefox

I tried this in firefox i dont know why its not working but it working in other browsers function loadmonth() { alert('called'); } _spBodyOnLoadFunctionNames.push("loadmonth");
Rajesh Chowdary's user avatar
1 vote
2 answers
3k views

refresh DataViewWebPart in _spBodyOnLoadFunctionNames with javascript

is there a way that is not too complicated too refresh just a dataview web part on a sharepoint site when loading the page in _spBodyOnLoadFunctionNames.push using javascript? What I've done is ...
Carel's user avatar
  • 1,000
2 votes
1 answer
1k views

XsltListViewWebPart remembering state in cookie not working properly

I have a XsltListViewWebpart that shows a tree structure with nodes. I made a jquery script that sets a cookie which persists the state of the nodes (expanded/collapsed) between postbacks. I added ...
Amc_rtty's user avatar
  • 127
11 votes
6 answers
13k views

Risk of conflict between jQuery document ready and _spBodyOnLoadFunctionNames?

I recently read in the jQuery documentation that: The .ready() method is generally incompatible with the body onload attribute. If load must be used, either do not use .ready() or use jQuery's ....
Christophe's user avatar
  • 5,301