Problem with lightbox/scriptaculos

0 views
Skip to first unread message

elyfrank

unread,
Apr 26, 2008, 7:53:55 AM4/26/08
to Ruby on Rails: Spinoffs
Hi, I am having a problem with my website when I add this script.

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

It doesn't show up.

When I get rid of this line <script src="js/lightbox/scriptaculous.js?
load=effects" type="text/javascript"></script> in my index page it
shows up.

How can I get rid of this problem?

thanks

Ken Snyder

unread,
Apr 27, 2008, 11:22:16 PM4/27/08
to rubyonrail...@googlegroups.com

Can you give us a link to the page with the problem?  We need more information to diagnose the problem.  Also, have you checked for errors in the console with Firebug?  Do you have the latest releases of Prototype and Scriptaculous?

- Ken


elyfrank

unread,
May 1, 2008, 8:27:31 AM5/1/08
to Ruby on Rails: Spinoffs
I have the latest prototype.js and still I have problems. my website
is http://flyawaytrip.com and I have a page with script inserted so
you can see the error: http://flyawaytrip.com/indexxxx.htm
Thank you for your help

On Apr 27, 11:22 pm, "Ken Snyder" <kendsny...@gmail.com> wrote:
> On 4/26/08, elyfrank <elyfra...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi, I am having a problem with my website when I add this script.
>
> > <script language="javascript" type="text/javascript" src="http://
>
> >www.expedia.com/pubspec/scripts/storefront/expe.sf.vertical.350.asp?p...
> > "></script>
>
> > It doesn't show up.
>
> > When I get rid of this line <script src="js/lightbox/scriptaculous.js?
> > load=effects" type="text/javascript"></script>  in my index page it
> > shows up.
>
> > How can I get rid of this problem?
>
> > thanks
>
> Can you give us a link to the page with the
> problem?  We need more information to diagnose the problem.  Also, have you
> checked for errors in the console with Firebug?  Do you have the latest
> releases of Prototype and Scriptaculous?
>
> - Ken- Hide quoted text -
>
> - Show quoted text -

kangax

unread,
May 1, 2008, 1:12:51 PM5/1/08
to Ruby on Rails: Spinoffs
There's a for/in iteration over an array object. Replace for/in with
plain for (line 34):

for (var i=0; i<list.length; i++) {
var param = list[i].split('=');
this.queryList[param[0]] = param[1];
}

- kangax

On May 1, 8:27 am, elyfrank <elyfra...@gmail.com> wrote:
> I have the latest prototype.js and still I have problems. my website
> ishttp://flyawaytrip.comand I have a page with script inserted so

elyfrank

unread,
May 1, 2008, 2:45:02 PM5/1/08
to Ruby on Rails: Spinoffs
Where do I find this? prototype.js or scriptaculo.js?
thanks

On May 1, 1:12 pm, kangax <kan...@gmail.com> wrote:
> There's a for/in iteration over an array object. Replace for/in with
> plain for (line 34):
>
> for (var i=0; i<list.length; i++) {
>   var param = list[i].split('=');
>   this.queryList[param[0]] = param[1];
>
> }
>
> - kangax
>
> On May 1, 8:27 am, elyfrank <elyfra...@gmail.com> wrote:> I have the latest prototype.js and still I have problems. my website
> > ishttp://flyawaytrip.comandI have a page with script inserted so

kangax

unread,
May 1, 2008, 2:49:01 PM5/1/08
to Ruby on Rails: Spinoffs
There's no more error on that page, so I have no idea which script was
throwing it. Did you manage to fix it?

- kangax

On May 1, 2:45 pm, elyfrank <elyfra...@gmail.com> wrote:
> Where do I find this? prototype.js or scriptaculo.js?
> thanks
>
> On May 1, 1:12 pm, kangax <kan...@gmail.com> wrote:
>
> > There's a for/in iteration over an array object. Replace for/in with
> > plain for (line 34):
>
> > for (var i=0; i<list.length; i++) {
> > var param = list[i].split('=');
> > this.queryList[param[0]] = param[1];
>
> > }
>
> > - kangax
>
> > On May 1, 8:27 am, elyfrank <elyfra...@gmail.com> wrote:> I have the latest prototype.js and still I have problems. my website
> > > ishttp://flyawaytrip.comandIhave a page with script inserted so

elyfrank

unread,
May 1, 2008, 3:02:43 PM5/1/08
to Ruby on Rails: Spinoffs
Ok, I see that this lines are in the expedia asp.
Since this is in another server (expedia) and it is a read only file.
What can I do about it?
Can I convert this and put it in my server, would it still work?
no this script will work if I put it in a page by itself but without
calling prototype.js. Is there is something that we can do with
prototype?
Sorry for asking too many question, I don't understand too much about
code.
thanks

On May 1, 1:12 pm, kangax <kan...@gmail.com> wrote:
> There's a for/in iteration over an array object. Replace for/in with
> plain for (line 34):
>
> for (var i=0; i<list.length; i++) {
>   var param = list[i].split('=');
>   this.queryList[param[0]] = param[1];
>
> }
>
> - kangax
>
> On May 1, 8:27 am, elyfrank <elyfra...@gmail.com> wrote:> I have the latest prototype.js and still I have problems. my website
> > ishttp://flyawaytrip.comandI have a page with script inserted so

elyfrank

unread,
May 1, 2008, 3:19:14 PM5/1/08
to Ruby on Rails: Spinoffs
Thank you, thank you

This is what I did.
I save the asp file from expedia server into my server I modified the
line as you told me, and wow. It works I just have to make sure that
expedia can track the id so I can get the commision.

You are the best, I let you know what expedia tells me.


On May 1, 1:12 pm, kangax <kan...@gmail.com> wrote:
> There's a for/in iteration over an array object. Replace for/in with
> plain for (line 34):
>
> for (var i=0; i<list.length; i++) {
>   var param = list[i].split('=');
>   this.queryList[param[0]] = param[1];
>
> }
>
> - kangax
>
> On May 1, 8:27 am, elyfrank <elyfra...@gmail.com> wrote:> I have the latest prototype.js and still I have problems. my website
> > ishttp://flyawaytrip.comandI have a page with script inserted so

elyfrank

unread,
May 1, 2008, 3:22:17 PM5/1/08
to Ruby on Rails: Spinoffs
I just did what you told me to do and it works I just have to put it
in the right place so it shows correctly in my page.
This is the link where it shows that is working http://flyawaytrip.com/index5.htm
you are amazing, thank you for fixing this for me.
I just have to talk to expedia to see if they will be able to track my
commision after the fix that you did.
thaks

On May 1, 2:49 pm, kangax <kan...@gmail.com> wrote:
> There's no more error on that page, so I have no idea which script was
> throwing it. Did you manage to fix it?
>
> - kangax
>
> On May 1, 2:45 pm, elyfrank <elyfra...@gmail.com> wrote:
>
>
>
> > Where do I find this? prototype.js or scriptaculo.js?
> > thanks
>
> > On May 1, 1:12 pm, kangax <kan...@gmail.com> wrote:
>
> > > There's a for/in iteration over an array object. Replace for/in with
> > > plain for (line 34):
>
> > > for (var i=0; i<list.length; i++) {
> > >   var param = list[i].split('=');
> > >   this.queryList[param[0]] = param[1];
>
> > > }
>
> > > - kangax
>
> > > On May 1, 8:27 am, elyfrank <elyfra...@gmail.com> wrote:> I have the latest prototype.js and still I have problems. my website
> > > > ishttp://flyawaytrip.comandIhavea page with script inserted so
> > > > you can see the error:http://flyawaytrip.com/indexxxx.htm
> > > > Thank you for your help
>
> > > > On Apr 27, 11:22 pm, "Ken Snyder" <kendsny...@gmail.com> wrote:
>
> > > > > On 4/26/08, elyfrank <elyfra...@gmail.com> wrote:
>
> > > > > > Hi, I am having a problem with my website when I add this script.
>
> > > > > > <script language="javascript" type="text/javascript" src="http://
>
> > > > > >www.expedia.com/pubspec/scripts/storefront/expe.sf.vertical.350.asp?p...
> > > > > > "></script>
>
> > > > > > It doesn't show up.
>
> > > > > > When I get rid of this line <script src="js/lightbox/scriptaculous.js?
> > > > > > load=effects" type="text/javascript"></script>  in my index page it
> > > > > > shows up.
>
> > > > > > How can I get rid of this problem?
>
> > > > > > thanks
>
> > > > > Can you give us a link to the page with the
> > > > > problem?  We need more information to diagnose the problem.  Also, have you
> > > > > checked for errors in the console with Firebug?  Do you have the latest
> > > > > releases of Prototype and Scriptaculous?
>
> > > > > - Ken- Hide quoted text -
>
> > > > > - Show quoted text -- Hide quoted text -

kangax

unread,
May 1, 2008, 3:24:23 PM5/1/08
to Ruby on Rails: Spinoffs
Glad it worked (and hoping that wikipedia stops enumerating over
arrays and drops document.write clauses)

- kangax

On May 1, 3:22 pm, elyfrank <elyfra...@gmail.com> wrote:
> I just did what you told me to do and it works I just have to put it
> in the right place so it shows correctly in my page.
> This is the link where it shows that is workinghttp://flyawaytrip.com/index5.htm
> you are amazing, thank you for fixing this for me.
> I just have to talk to expedia to see if they will be able to track my
> commision after the fix that you did.
> thaks
>
> On May 1, 2:49 pm, kangax <kan...@gmail.com> wrote:
>
> > There's no more error on that page, so I have no idea which script was
> > throwing it. Did you manage to fix it?
>
> > - kangax
>
> > On May 1, 2:45 pm, elyfrank <elyfra...@gmail.com> wrote:
>
> > > Where do I find this? prototype.js or scriptaculo.js?
> > > thanks
>
> > > On May 1, 1:12 pm, kangax <kan...@gmail.com> wrote:
>
> > > > There's a for/in iteration over an array object. Replace for/in with
> > > > plain for (line 34):
>
> > > > for (var i=0; i<list.length; i++) {
> > > > var param = list[i].split('=');
> > > > this.queryList[param[0]] = param[1];
>
> > > > }
>
> > > > - kangax
>
> > > > On May 1, 8:27 am, elyfrank <elyfra...@gmail.com> wrote:> I have the latest prototype.js and still I have problems. my website
> > > > > ishttp://flyawaytrip.comandIhaveapage with script inserted so

kangax

unread,
May 1, 2008, 3:24:54 PM5/1/08
to Ruby on Rails: Spinoffs
*Expedia that is
> > > > > > ishttp://flyawaytrip.comandIhaveapagewith script inserted so
Reply all
Reply to author
Forward
0 new messages