/    Sign up×
Community /Pin to ProfileBookmark

window.onload problem

Is there a problem with putting three functions in a window.onload command?
It works fine until I get the third on on there, then it says object expected. I don’t know what that could be, when it all on its own it works ok too until I put changelink() in here. See anything wrong with changelink() in the following? Thank you very much.

<script type=”text/javascript”>window.onload=function(){
document.getElementById(“loading”).style.display=”none”; outImage(‘owned’); changelink()}
</script>

to post a comment
JavaScript

11 Comments(s)

Copy linkTweet thisAlerts:
@_Aerospace_Eng_Nov 03.2006 — Its fine but without seeing your current code or a link its hard to say.
Copy linkTweet thisAlerts:
@RiannaauthorNov 03.2006 — Interesting thanks, I tested it alone and it works fine. You never heard of a problem with three in window.onload before?
Copy linkTweet thisAlerts:
@_Aerospace_Eng_Nov 03.2006 — Nope. I do it often. Like I said we need to see your current code. We aren't psychic remember?
Copy linkTweet thisAlerts:
@RiannaauthorNov 03.2006 — I know your not, just don't know how that could help, it works fine alone.
Copy linkTweet thisAlerts:
@_Aerospace_Eng_Nov 03.2006 — Trust me when I ask for code its for a reason chances are you have something conflicting but we can't tell you anything unless you post your code.
Copy linkTweet thisAlerts:
@RiannaauthorNov 03.2006 — Thank you very much for the help, Looks like I'll need to take you up on it but something huge has come up for while, I'll be back later. :!O
Copy linkTweet thisAlerts:
@RiannaauthorNov 06.2006 — Forgot to send an easy single onload with the rest in case you need to check it.

<body onload="changelink()"><a href="#" id="url"></a>
Copy linkTweet thisAlerts:
@RiannaauthorNov 07.2006 — If this turns out to be an annoying problem that isn't easy to spot, I don't want you to spend too much time on it. Your value here in this forum is much more needed for other things. I can start asking people what is wrong with the script in some other javascript forums. Just give me the word.
Copy linkTweet thisAlerts:
@_Aerospace_Eng_Nov 08.2006 — All you would have to do is give us a link. Its clear that you aren't posting all of the code. I feel you are probably doing something incorrectly or missing an onload somewhere or the code is erroring out. PM the url if you like I don't care.
Copy linkTweet thisAlerts:
@RiannaauthorNov 08.2006 — I'm confused. You must be talking about the codes to other scripts as well. Didn't know you needed them. You must think the problem has something to do with several script problems, instead of the error message I am getting for the one. Not a problem, but give me a couple days. I might be able to give you a better link code script better than the one you have. I have a couple people helping me get a better link script, so I don't have to deal with the one I can't get to work. To me that one seems to have too much uneccesary code. If I can't get a better script or if the new ones have the same problem I'll let you know, thanks for helping.
Copy linkTweet thisAlerts:
@RiannaauthorNov 12.2006 — Just wanted to let you know, once I changed the script, everything worked fine. Thanks for being so helpful! :o
×

Success!

Help @Rianna spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...