|
 |
asp_databases thread: Passing a paramenter to open a url
Message #1 by "Naseem, Kashif (Birmingham)" <kashif.naseem@c...> on Thu, 15 Feb 2001 15:04:21 -0000
|
|
Hi There,
i got a dynamic drop down menu, now when the user select an option it
should open a url.
The path of url is stored in the data base ('hyperlink')
How do i go about it
Thanks in advance :-)
Regards
Kashif
Message #2 by "Ken Schaefer" <ken@a...> on Fri, 16 Feb 2001 11:25:06 +1100
|
|
That's a javascript client-side question...not an ASP/Database question.
The value="" of the option should have the URL that you wish to navigate to.
Use the onChange event to set the .location property of the window to the
value of the selected option in the select box.
Cheers
Ken
----- Original Message -----
From: "Naseem, Kashif (Birmingham)" <kashif.naseem@c...>
To: "ASP Databases" <asp_databases@p...>
Sent: Friday, February 16, 2001 2:04 AM
Subject: [asp_databases] Passing a paramenter to open a url
> Hi There,
>
>
> i got a dynamic drop down menu, now when the user select an option it
> should open a url.
> The path of url is stored in the data base ('hyperlink')
>
> How do i go about it
>
> Thanks in advance :-)
>
> Regards
>
> Kashif
Message #3 by "Amjad Ali" <Amjad2000@h...> on Thu, 15 Feb 2001 23:36:40
|
|
try the option value= the field from the database, see the code below
<FORM action=dropdown.asp method=post>
<SELECT id=select1 name=link style="HEIGHT: 22px; WIDTH: 171px">
<OPTION selected value="">--Choose A Destination--
</OPTION>
<OPTION value=http://www.yahoo.com>Yahoo</OPTION>
<OPTION value=http://www.webhostme.com>Free ASP
Hosting</OPTION>
<OPTION value=http://www.asptown.com>ASP
Town</OPTION>
</SELECT>
<INPUT id=submit1 name=submit1 type=submit value=GO!></P>
</FORM>
or visit http://www.ezcybersolutions.com/dropdownform.htm to see it in
action
Amjad
> Hi There,
>
>
> i got a dynamic drop down menu, now when the user select an option it
> should open a url.
> The path of url is stored in the data base ('hyperlink')
>
> How do i go about it
>
> Thanks in advance :-)
>
> Regards
>
> Kashif
>
>
>
>
|
|
 |