Results 1 to 7 of 7

Thread: Problem with transfer to new server

  1. #1
    Join Date
    Feb 2009
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Problem with transfer to new server

    1) Script Title: billboard.js

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...lbillboard.htm

    3) Describe problem: I had to transfer my site to another server with IIS7 (site was on iis6 previously), and the javascript is not working remotely. It works when openned locally - either on server or local computer, but from a browser, I get undefined and a green field. Is this an IIS7 issue or what? Thanks!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Might just be permissions or the mime type configuration of files and/or folders. Do you have a link to the site?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    varidzok (02-21-2009)

  4. #3
    Join Date
    Feb 2009
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

  5. #4
    Join Date
    Feb 2009
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    yeah, it was mime type configuration issue. Thanks!

  6. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Well, this may be unrelated, but on the new site the config/utisak.cc, config/novosti.cc, config/partneri.cc and config/predstavljamo.cc files are all 404 not found. This could be throwing off the execution of other scripts. If they really are on the server, there is something wrong with them, but the 404 generally means that they are truly missing.

    I checked the generated source code of the two pages, and the one that is not working has not generated the code required for the billboard script. This could be the error caused in the billboard script by these other files being missing.

    Now, the missing files may be on the server in another location, or the upper and lower case of their path and/or filenames may not agree with that written in the page's source code. I suppose it is also possible that since they are .cc, that the server may not know to serve them as javascript, but that shouldn't result in a 404 not found. If it is though, that would be a mime type configuration on the server side. But since their tags are technically invalid (the language attribute has been deprecated for the script tag and the type attribute is required) just fixing that may help if the files are truly available. Fixing it won't hurt anything, ex:

    Code:
    <script type="text/javascript" src="config/utisak.cc"></script>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #6
    Join Date
    Feb 2009
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I found that too. I just added .cc MIME type text/plain, and it seems to be working ok now.

  8. #7
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    A mime type of text/javascript might be better, as it (the dhtmllib scroller) is still not working in Opera, but that could be due to other reasons, like the dhtmllib scroller script itself may not be Opera compatible.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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