|
 |
asp_web_howto thread: Accessing values from a Select statement
Message #1 by "Paul R Beaulieu" <paulbeaulieu@s...> on Fri, 9 Nov 2001 08:32:52 -0500
|
|
Does anyone know of an easy way t oaccess the value selected by someone
using a select statement?
I do believe I could use the onChange option to run some Java script to get
the value selected but I need to use this value in VB script in the ASP to
load the next select with the appropriate values for the item selected in
the select statement.
Or should I add code to the java script to read the values from SQL and
build the next select statement?
Thanks, Paul.
Message #2 by "Daniel O'Dorisio" <daniel@o...> on Fri, 9 Nov 2001 08:28:27 -0500
|
|
you have a few options..
1) load a javascript array with all the data you will need. so that once the
first sleect box is changed.. javascript has all the values it needs. kinda
not a good idea with alot of data.
2) in the on change event. send the page back to the server (form submit)
and allow the server to build another page.
3) (my favorite) in the on change event.. open a new window and pass the
selected option to the new window.. that new window will open an asp page
that will query the db, and populate the list in the opener page via
window.opener...
look on google for "Dependent list problem" i think i have seen an article
or 2 under that title. and i think there is one from MSDN that uses XML data
islands...
hth
daniel
--
-----------------------------
Daniel O'Dorisio
daniel@o...
www.odorisio-networks.com
-----------------------------
"Paul R Beaulieu" <paulbeaulieu@s...> wrote in message
news:118465@a..._web_howto...
>
> Does anyone know of an easy way t oaccess the value selected by someone
> using a select statement?
>
> I do believe I could use the onChange option to run some Java script to
get
> the value selected but I need to use this value in VB script in the ASP to
> load the next select with the appropriate values for the item selected in
> the select statement.
>
> Or should I add code to the java script to read the values from SQL and
> build the next select statement?
>
> Thanks, Paul.
>
>
>
Message #3 by "Ken Schaefer" <ken@a...> on Sat, 10 Nov 2001 00:43:06 +1100
|
|
<select name="cboTest">
<option value="1">1</option>
</select>
Request.Form("cboTest") will give you the value of the selected item when
the form is posted back to the server.
Cheers
Ken
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Paul R Beaulieu" <paulbeaulieu@s...>
Subject: [asp_web_howto] Accessing values from a Select statement
: Does anyone know of an easy way t oaccess the value selected by someone
: using a select statement?
:
: I do believe I could use the onChange option to run some Java script to
get
: the value selected but I need to use this value in VB script in the ASP to
: load the next select with the appropriate values for the item selected in
: the select statement.
:
: Or should I add code to the java script to read the values from SQL and
: build the next select statement?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Message #4 by "Daniel O'Dorisio" <daniel@o...> on Mon, 12 Nov 2001 09:38:28 -0500
|
|
i guess i completely missed the point.. i was thinking that he was wanting
to use the value selected and build a new select box.. sorry about that.
daniel
--
-----------------------------
Daniel O'Dorisio
daniel@o...
www.odorisio-networks.com
-----------------------------
"Ken Schaefer" <ken@a...> wrote in message
news:118471@a..._web_howto...
>
> <select name="cboTest">
> <option value="1">1</option>
> </select>
>
> Request.Form("cboTest") will give you the value of the selected item when
> the form is posted back to the server.
>
> Cheers
> Ken
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> From: "Paul R Beaulieu" <paulbeaulieu@s...>
> Subject: [asp_web_howto] Accessing values from a Select statement
>
>
> : Does anyone know of an easy way t oaccess the value selected by someone
> : using a select statement?
> :
> : I do believe I could use the onChange option to run some Java script to
> get
> : the value selected but I need to use this value in VB script in the ASP
to
> : load the next select with the appropriate values for the item selected
in
> : the select statement.
> :
> : Or should I add code to the java script to read the values from SQL and
> : build the next select statement?
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>
Message #5 by "Paul R Beaulieu" <paulbeaulieu@s...> on Tue, 13 Nov 2001 07:35:27 -0500
|
|
Yes... I was hoping to access the value immediately, not have to go to a new
asp program when the value is changed, actually is wishful thinking and I
guess the only way is to execute new asp and rebuild the page each time...
thanks, Paul.
-----Original Message-----
From: Daniel O'Dorisio [mailto:daniel@o...]
Sent: November 12, 2001 9:38 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Accessing values from a Select statement
i guess i completely missed the point.. i was thinking that he was wanting
to use the value selected and build a new select box.. sorry about that.
daniel
--
-----------------------------
Daniel O'Dorisio
daniel@o...
www.odorisio-networks.com
-----------------------------
"Ken Schaefer" <ken@a...> wrote in message
news:118471@a..._web_howto...
>
> <select name="cboTest">
> <option value="1">1</option>
> </select>
>
> Request.Form("cboTest") will give you the value of the selected item when
> the form is posted back to the server.
>
> Cheers
> Ken
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> From: "Paul R Beaulieu" <paulbeaulieu@s...>
> Subject: [asp_web_howto] Accessing values from a Select statement
>
>
> : Does anyone know of an easy way t oaccess the value selected by someone
> : using a select statement?
> :
> : I do believe I could use the onChange option to run some Java script to
> get
> : the value selected but I need to use this value in VB script in the ASP
to
> : load the next select with the appropriate values for the item selected
in
> : the select statement.
> :
> : Or should I add code to the java script to read the values from SQL and
> : build the next select statement?
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>
$subst('Email.Unsub')
Message #6 by "Daniel O'Dorisio" <daniel@o...> on Tue, 13 Nov 2001 08:11:16 -0500
|
|
its not really wishful thinking.. what about xml data islands??
http://www.devx.com/upload/free/features/vbpj/2000/02feb00/id0200/id0200.asp
should help for IE5
daniel
--
-----------------------------
Daniel O'Dorisio
daniel@o...
www.odorisio-networks.com
-----------------------------
"Paul R Beaulieu" <paulbeaulieu@s...> wrote in message
news:119388@a..._web_howto...
>
> Yes... I was hoping to access the value immediately, not have to go to a
new
> asp program when the value is changed, actually is wishful thinking and I
> guess the only way is to execute new asp and rebuild the page each time...
> thanks, Paul.
>
> -----Original Message-----
> From: Daniel O'Dorisio [mailto:daniel@o...]
> Sent: November 12, 2001 9:38 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] Re: Accessing values from a Select statement
>
>
> i guess i completely missed the point.. i was thinking that he was wanting
> to use the value selected and build a new select box.. sorry about that.
>
> daniel
>
> --
> -----------------------------
> Daniel O'Dorisio
> daniel@o...
> www.odorisio-networks.com
> -----------------------------
> "Ken Schaefer" <ken@a...> wrote in message
> news:118471@a..._web_howto...
> >
> > <select name="cboTest">
> > <option value="1">1</option>
> > </select>
> >
> > Request.Form("cboTest") will give you the value of the selected item
when
> > the form is posted back to the server.
> >
> > Cheers
> > Ken
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > From: "Paul R Beaulieu" <paulbeaulieu@s...>
> > Subject: [asp_web_howto] Accessing values from a Select statement
> >
> >
> > : Does anyone know of an easy way t oaccess the value selected by
someone
> > : using a select statement?
> > :
> > : I do believe I could use the onChange option to run some Java script
to
> > get
> > : the value selected but I need to use this value in VB script in the
ASP
> to
> > : load the next select with the appropriate values for the item selected
> in
> > : the select statement.
> > :
> > : Or should I add code to the java script to read the values from SQL
and
> > : build the next select statement?
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> >
> >
>
>
>
paulbeaulieu@s...
> $subst('Email.Unsub')
>
>
>
Message #7 by "Paul R Beaulieu" <paulbeaulieu@s...> on Wed, 14 Nov 2001 08:07:20 -0500
|
|
Thanks, I will look this up... Paul.
-----Original Message-----
From: Daniel O'Dorisio [mailto:daniel@o...]
Sent: November 13, 2001 8:11 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Accessing values from a Select statement
its not really wishful thinking.. what about xml data islands??
http://www.devx.com/upload/free/features/vbpj/2000/02feb00/id0200/id0200.asp
should help for IE5
daniel
--
-----------------------------
Daniel O'Dorisio
daniel@o...
www.odorisio-networks.com
-----------------------------
"Paul R Beaulieu" <paulbeaulieu@s...> wrote in message
news:119388@a..._web_howto...
>
> Yes... I was hoping to access the value immediately, not have to go to a
new
> asp program when the value is changed, actually is wishful thinking and I
> guess the only way is to execute new asp and rebuild the page each time...
> thanks, Paul.
>
> -----Original Message-----
> From: Daniel O'Dorisio [mailto:daniel@o...]
> Sent: November 12, 2001 9:38 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] Re: Accessing values from a Select statement
>
>
> i guess i completely missed the point.. i was thinking that he was wanting
> to use the value selected and build a new select box.. sorry about that.
>
> daniel
>
> --
> -----------------------------
> Daniel O'Dorisio
> daniel@o...
> www.odorisio-networks.com
> -----------------------------
> "Ken Schaefer" <ken@a...> wrote in message
> news:118471@a..._web_howto...
> >
> > <select name="cboTest">
> > <option value="1">1</option>
> > </select>
> >
> > Request.Form("cboTest") will give you the value of the selected item
when
> > the form is posted back to the server.
> >
> > Cheers
> > Ken
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > From: "Paul R Beaulieu" <paulbeaulieu@s...>
> > Subject: [asp_web_howto] Accessing values from a Select statement
> >
> >
> > : Does anyone know of an easy way t oaccess the value selected by
someone
> > : using a select statement?
> > :
> > : I do believe I could use the onChange option to run some Java script
to
> > get
> > : the value selected but I need to use this value in VB script in the
ASP
> to
> > : load the next select with the appropriate values for the item selected
> in
> > : the select statement.
> > :
> > : Or should I add code to the java script to read the values from SQL
and
> > : build the next select statement?
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> >
> >
>
>
>
paulbeaulieu@s...
> $subst('Email.Unsub')
>
>
>
$subst('Email.Unsub')
|
|
 |