www.webdeveloper.com
Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22

Thread: Javascript not working on hosting site

  1. #16
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    Your code is, for a reason or another, compacted. That means it is written now unwrapped (in a single line). But the code has some comments (like // Higher value = faster, and so on). When you bring the javascript code in a single line, everything after the first delimiter // becomes a comment, thus there is no code to be run.

    Wrap the code. Or see why it is the code compacted. Is there a server-side feature? Or remove all the comments. And make sure that all the logical code lines end with ;

  2. #17
    Join Date
    Apr 2011
    Location
    Chennai, India
    Posts
    13
    oh ok... Let me check... the JS file on my desktop is fine... let me try that Javascript beautifier thing...

  3. #18
    Join Date
    Apr 2011
    Location
    Chennai, India
    Posts
    13
    THAT WORKED!!! Thank you so much

    But now the thumbnails are getting clipped... how do I fix that?

  4. #19
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    set the height of your divs from the code

  5. #20
    Join Date
    Apr 2011
    Location
    Chennai, India
    Posts
    13
    I fixed that, too

    Thanks a lot for you help, Kor!

    S

  6. #21
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    You are welcome. Don't forget about the error:
    Code:
    <div id="main">
    <style type="text/css"> body{background:url(ir/irbg.gif) no-repeat top center;}
    </div>
    </style>
    Switch the end tags.

  7. #22
    Join Date
    Apr 2011
    Location
    Chennai, India
    Posts
    13
    done!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles