Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: how do i pass refernce in url in javascript


Message #1 by "sridarti herryanto" <sridarti@s...> on Tue, 9 Apr 2002 04:24:41
sri,

It means that the text box either doesn't exist or it
has no value.  Are you sure the name is correct and
the value is in the text box?

Mark
--- sridarti herryanto <sridarti@s...>
wrote:
> Hi Mark
> 
> Its alright. anyway i have tried it and receeived
> the following error 
> msg . why is it so?
> 
> 
> Error:'document.frmvEditOrder.OrderNo.value' is null
> or not an object.
> 
> wat does it mean actually?
> 
> regards,
> sri
> 
> 
> 
> > Sorry, I should have been more specific.
> 
> Place the value you want to pass in a hidden text
> box
> in the form, like this:
> 
> <form name="frmvEditOrder">
> <input type="hidden" name="keyid" value="1234">
> </form>
> 
> Then call a function that retrieves the value from
> that hidden text box, appends it to the querystring
> and then submits the form.
> 
> function SubmitForm(){
> //Function to submit form and pass value in
> querystring.
> 
> //Grab the value from the form, place in variable.
> var intKeyID = document.frmvEditOrder.keyid.value;
> //Set our form action.
> frmvEditOrder.action='somepage.asp' + intKeyID;
> //Submit the form.
> frmvEditOrder.submit();
> }
> 
> Mark
> 
> --- sridarti herryanto <sridarti@s...>
> wrote:
> > Hi Mark,
> > 
> > i don't really understand by what u mean as
> placing
> > the value to a control 
> > on the form? im still a beginner in this aspect.
> > thanks
> > 
> > sri
> > 
> > 
> > > Place the value to a control on the form, then
> > access
> > it via javascript like this:
> > 
> > frmvEditOrder.action='somepage.asp' +
> > document.frmvEditOrder.control.value;
> > 
> > frmvEditOrder.submit();
> > 
> > Mark.
> > 
> > 
> > --- sridarti herryanto <sridarti@s...>
> > wrote:
> > > Hi all,
> > > 
> > > i would like to query about redirection in
> > > javascript. Im looking for a 
> > > similiar method that i use in ASP for
> javascript.
> > > Please advice..
> > > 
> > > In ASP i can do this:
> > > 
> > > vOrderdetails.asp?keyid="&orderid&" 
> > > 
> > > which allows me to pass reference key to another
> > > page. How can i do the 
> > > same for javascript for below??
> > > 
> > > 
> > > function ReturnTo(){
> > >  	frmvEditOrder.action= "vOrderdetails.asp";
> > >  	frmvEditOrder.submit();
> > > 
> > > 
> > > thank u,
> > > 
> > > sri
> > > 
> > > ---
> > > 
> > > Improve your web design skills with these new
> > books
> > > from Glasshaus.
> > > 
> > > Usable Web Menus
> > >
> >
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> > > r-20
> > > Constructing Accessible Web Sites
> > >
> >
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> > > r-20
> > > Practical JavaScript for the Usable Web
> > >
> >
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> > > r-20
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Tax Center - online filing with TurboTax
> > http://taxes.yahoo.com/
> > 
> > ---
> > 
> > Improve your web design skills with these new
> books
> > from Glasshaus.
> > 
> > Usable Web Menus
> >
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> > r-20
> > Constructing Accessible Web Sites
> >
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> > r-20
> > Practical JavaScript for the Usable Web
> >
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> > r-20
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
> 
> ---
> 
> Improve your web design skills with these new books
> from Glasshaus.
> 
> Usable Web Menus
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

  Return to Index