Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

Loading _spBodyOnLoadFunctionNames array with 2 or more function names Sharepoint 2010

$
0
0

Is there a way to load more than one funtion into the _spBodyOnLoadFunctionNames array? I am trying to run three different JavaScript functions on page load. I have tried using

 <script type="text/javascript">

_spBodyOnLoadFunctionNames.push("function1");

_spBodyOnLoadFunctionNames.push("function2");

_spBodyOnLoadFunctionNames.push("function3");

</script>

After extensive testing I have determined the only funcion executed on load is the first one pushed into the array. I have looked through a lot of technical documents but every example only shows one function being loaded into the _spBodyOnLoadFunctionNames array.

Thanks


Viewing all articles
Browse latest Browse all 11508

Trending Articles