javascript - Get Function not implemented error when using ssi's and using window.onload -


i error message error message: not implemented when doing , using statement in server side include.

window.onload=readinsubsysteminformationfromfile(); 

it works if click ok button on error message, annoying error message pops up.

so question is, there function checks if readinsubsysteminformationfromfile() has been initialized? if method (in other words shall of type onload) if not, wait until ready.

thanks in advance =)

to check if function has been defined yet:

if(typeof readinsubsysteminformationfromfile == 'function'){     // exists     readinsubsysteminformationfromfile(); } 

also, try jquery it's onload method... works in pretty browsers , works well. it's hard thing right.

$(document).ready(function(){     // code here }); 

http://api.jquery.com/ready/


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -