Click to See Complete Forum and Search --> : javascript calls to javascript...


IxxI
06-01-2003, 05:00 PM
I have a javascript that modifies elements in another frame on body load. This is fine. However to make it easier I've shoved all these elements in an external .js file using document.write. Now I'm getting a problem that my original javascript can't find the elements onload. Is this because they haven't loaded yet? Or because I need to rephrase my calling of the elements (which worked fine before I put them in an external javascript)? Or something else? And is there a way to bypass it? Thanks a lot,

IxxI

IxxI
06-01-2003, 05:24 PM
Yep, sorry I messed something else up. Thought I'd checked thoroughly but just found something I'd missed, cheers Dave.
Is there any reason why shoving it in a js file with document.write would change the way that it displays? Cos the pictures are getting shunted about, and links seemed to have stopped being links??

IxxI

IxxI
06-02-2003, 03:24 AM
Sort of change of direction. Is there any way to include a file of html. I expect there is server-side so any way will do (ssi doesn't seem to work for me). And how would I write a variable as a href of a link? It should be really easy but I seem to be having problems...
Thanks

IxxI

IxxI
06-02-2003, 08:00 AM
Yes please Dave, its for an intranet so everyone is on IE and has javascript enabled, so no problems there...

IxxI