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 });
Comments
Post a Comment