A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: javascript works locally, not on remote

  1. #1
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429

    javascript works locally, not on remote

    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.

  2. #2
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429
    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!?

  3. #3
    Junior Member
    Join Date
    Apr 2007
    Posts
    5
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center