Jump to content

window.onload problem! argh!!


mmosel

Recommended Posts

Help!!

Argh!

Things are going along just fine, until I start getting this error in IE while using a window.onload = function();


I get this error 'not implemented'. The strange thing is that the function still executes, but I get this error and I can't get rid of it.

?????
Link to comment
Share on other sites

[!--quoteo(post=346489:date=Feb 16 2006, 02:50 PM:name=ChrisDarl)--][div class=\'quotetop\']QUOTE(ChrisDarl @ Feb 16 2006, 02:50 PM) [snapback]346489[/snapback][/div][div class=\'quotemain\'][!--quotec--]
And you've set it out like the code bellow?

window.onload = function()
{

[JavaScript Code to run on load]
};

Chris
[/quote]


Well, I had been using this method, perhaps this was wrong?

function load(){

executeotherfunction();

};

window.onload = load();

then, I found this and tried it:

function loadmeup(){
executeotherfunction();
};

var OnLoad = 'loadmeup()';

window.onload = function() {eval(OnLoad);};

and it seems to work in IE. I haven't had a problem with Firefox.

I'll try it the other way and see what happens, thanks!
Link to comment
Share on other sites

[!--quoteo(post=346875:date=Feb 17 2006, 04:02 PM:name=ChrisDarl)--][div class=\'quotetop\']QUOTE(ChrisDarl @ Feb 17 2006, 04:02 PM) [snapback]346875[/snapback][/div][div class=\'quotemain\'][!--quotec--]
The code that i put works, you can put whatever code you like betwee n the { } be it running another function or not.
[/quote]

Thanks both of you. I'll try out both or your suggestions and see how it goes.

Cheers.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.