|
|
 |
Re: FN-FORUM: How does this work.
date posted 3rd August 2004 22:41
Should work fine with text but you'd have to use quotes for strings like any
language. In js change...
if (elem.options[elem.selectedIndex].value == 1){
to...
if (elem.options[elem.selectedIndex].value == 'myTextHere'){
etc.
If it's not urgent I'd be happy to help over the weekend.
Paul
Paul Cooper
Internet Developer
Intex Design
http://www.intexdesign.net
>From: Barry Zimmerman [EMAIL REMOVED]
>To: [EMAIL REMOVED]
>Subject: Re: FN-FORUM: How does this work.
>Date: Tue, 03 Aug 2004 18:37:54 +0100
>
>Hi Paul,
>
>Thanks for that code, just a quick question, I do not know javascript at
>all, I just work in php. Would that form not work if I change the values in
>the js file to words rather than numbers?
>
>Hope you can help.
>
>Thanks
>
>Barry
>----------------------------------
>Barry Zimmerman
>Administrator
>
>Fishingvenues.com
>http://www.fishingvenues.com
>----------------------------------
>
> > From: Paul Cooper [EMAIL REMOVED]
> > Reply-To: [EMAIL REMOVED]
> > Date: 3 Aug 2004 16:44:07 -0000
> > To: "FN-FORUM / [EMAIL REMOVED] [EMAIL REMOVED]
> > Subject: RE: FN-FORUM: How does this work.
> >
> >
> > The fact that the page refreshes means it's done on the server, although
> > it's possible with js. Feel free to steal the code here...
> >
> > http://www.intexdesign.net/sbc/common/buscattype.js
> >
> > You can see how it's implemented here...
> >
> > http://www.intexdesign.net/sbc/join.asp
> >
> > hth
> > Paul
> >
> > Paul Cooper
> > Internet Developer
> > Intex Design
> > http://www.intexdesign.net
> >
> >
> >
> >
> >
> >> From: Barry Zimmerman [EMAIL REMOVED]
> >> Reply-To: [EMAIL REMOVED]
> >> To: "FN-FORUM / [EMAIL REMOVED] [EMAIL REMOVED]
> >> Subject: FN-FORUM: How does this work.
> >> Date: 3 Aug 2004 16:34:15 -0000
> >>
> >>
> >> I have seen this on a few sites, and wonder if this is done with
> >> javascript.
> >>
> >> An example.
> >>
> >> You have a form and you have 2 options. The first option you select a
> >> category, when you select the category the page refreshes and then you
>are
> >> given the choices for that category in the second option.
> >>
> >> Does anyone know of a script for this, or some code that I can take a
>look
> >> at.
> >>
> >> Hope I have explained it okay.
> >>
> >> Thanks
> >>
> >> Barry
> >> ----------------------------------
> >> Barry Zimmerman
> >> Administrator
> >>
> >> Fishingvenues.com
> >> http://www.fishingvenues.com
> >> ----------------------------------
> >>
> >>
> >> --
> >> Freelancers, contractors earn more with Prosperity4
> >> Call 0870 870 4414 or visit www.prosperity4.com
> >> and benefit from Inland Revenue approved expenses today.
> >>
> >> To advertise here: http://www.freelancers.net/advertising.html
> >>
> >>
> > --
> > Freelancers, contractors earn more with Prosperity4
> > Call 0870 870 4414 or visit www.prosperity4.com
> > and benefit from Inland Revenue approved expenses today.
> >
> > To advertise here: http://www.freelancers.net/advertising.html
> >
> > |
 |
|