Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-01-2008, 04:05 PM   PM User | #1
elyfrank
New to the CF scene

 
Join Date: May 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
elyfrank is an unknown quantity at this point
Problem with prototype.js! help!

Hi guys,
I am trying to add this script line

<script language="javascript" type="text/javascript" src="
http://www.expedia.com/pubspec/scripts/storefront/expe.sf.vertical.350.asp?pid=&aid="></script>


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.
elyfrank is offline   Reply With Quote
Old 05-02-2008, 10:39 PM   PM User | #2
GJay
Senior Coder

 
Join Date: Sep 2005
Posts: 1,791
Thanks: 5
Thanked 36 Times in 35 Posts
GJay is on a distinguished road
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
GJay is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:08 AM.


Advertisement
Log in to turn off these ads.