Click to See Complete Forum and Search --> : javascript works locally, not on remote

04-12-2007, 02:01 AM
I'm including two .js files just before the closing </head> tag.
One is the swfobject and the next file extends it.
On my local xxamp install it works perfectly, but when I put it on my host it doesn't. I've double and triple checked that the right files are in the right place and I'm at a loss for how to troubleshoot this.

I can only assume there is a load timing problem. External interface is involved so maybe the flash movie is loading first and trying to call the javascript to soon? Like I said I'm lost, any suggestions will help no matter how much of a reach.

04-12-2007, 02:35 AM
Ok that's fk'n weird. I read on another forum that someone deleted all their comments and got it to work. Sure enough that worked. Wth!?

04-14-2007, 07:11 AM
1. make sure you put the load JS before the function is called. HTML is a run time compilation.

2. make sure your host does not block JS files. some free hosts does.

3. use relatvie path and not absolute. might be server security blocks it.

4. try to put the script inline and not in exernal JS file and see if it works.