Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2008
    Thanked 0 Times in 0 Posts

    Problem with prototype.js! help!

    Hi guys,
    I am trying to add this script line

    <script language="javascript" type="text/javascript" src="

    To my idex page and it give me errors, when I delete this line <script
    src="js/lightbox/prototype.js" type="text/javascript"></script>

    it works, anybody cane help me to figure this out?

    This is the page I need to insert it to http://flyawaytrip.com and
    this one I already inserted http://flyawaytrip.com/indexxxx.com and
    gives errors and doesn't show up.

    Thank you very much.

  2. #2
    Senior Coder
    Join Date
    Sep 2005
    Thanked 36 Times in 35 Posts
    That first script is using the for(in in array) notation that isn't compatible with Prototype and is "considered harmful". You'll need to either re-write the first script in a more sensible way, or avoid using Prototype.
    My thoughts on some things: http://codemeetsmusic.com
    And my scrapbook of cool things: http://gjones.tumblr.com


Posting Permissions

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