|
 |
asp_databases thread: Re: Passing multiple values to a field of a form from a search page **Very Difficult Problme**)
Message #1 by white@q... on Wed, 15 Aug 2001 19:19:29
|
|
well I don't really understand what you're trying to do here but during
times where I absolutely need to have two values tied to a radio button
then I just concat the two values into a single string, and parse them out
when I need to access them individually
> Hi,
> I am trying to send customerId and CustomerName fields from a search
page
> to an Entry Form. CustomerID works but name is nor woorking..
> Here is the scenerio:
> I have an entry form where user enters a customer name using a search
> page. They select a radion button and this is what happens:
>
> function process(){
> var a=0;
> while(!document.all.select[a].checked) a++; // selecting, which
> opener.document.all("CustomerID").value=document.thisForm.select
> [a].value;
> window.close();
>
> }
> </script>
>
> Now how can I show the selected customerName the user when they go back
to
> the entryForm. I can't user two values for one radion button can I? Is
> there any other solution, please help me if you can?
>
> Thanks,
> Moon
Message #2 by Steve Carter <Steve.Carter@t...> on Thu, 16 Aug 2001 09:41:34 +0100
|
|
when you say "go back to", if you mean they post the form then there is no
problem - just put the customerID in the checkbox, then when posted, look
up the customerID in the database and display the corresponding name.
> -----Original Message-----
> From: white@q... [mailto:white@q...]
> Sent: 15 August 2001 20:19
> To: ASP Databases
> Subject: [asp_databases] Re: Passing multiple values to a field of a
> form from a search page **Very Difficult Problme**)
>
>
> well I don't really understand what you're trying to do here
> but during
> times where I absolutely need to have two values tied to a radio button
> then I just concat the two values into a single string, and
> parse them out
> when I need to access them individually
>
>
> > Hi,
> > I am trying to send customerId and CustomerName fields from a search
> page
> > to an Entry Form. CustomerID works but name is nor woorking..
> > Here is the scenerio:
> > I have an entry form where user enters a customer name
> using a search
> > page. They select a radion button and this is what happens:
> >
> > function process(){
> > var a=0;
> > while(!document.all.select[a].checked) a++; //
> selecting, which
> >
> opener.document.all("CustomerID").value=document.thisForm.select
> > [a].value;
> > window.close();
> >
> > }
> > </script>
> >
> > Now how can I show the selected customerName the user when
> they go back to
> > the entryForm. I can't user two values for one radion
> button can I? Is there any other solution, please help me if you can?
> >
> > Thanks,
> > Moon
|
|
 |