Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: how to receive Query String within a frame


Message #1 by "Quang Lam" <QTheLams@a...> on Thu, 29 Aug 2002 17:05:26
hi David, I agree on what you said and I used to do that too. But I just 
curious how we can use javascript to parse the url?? Thank in advance.


>From: "Debreceni, David" <david_debreceni@r...>
>Reply-To: "javascript" <javascript@p...>
>To: "javascript" <javascript@p...>
>Subject: [javascript] Re: how to receive Query String within a frame
>Date: Thu, 29 Aug 2002 13:29:41 -0400
>
>You can pass a query string to a htm file and use javascript to parse it
>out, however I would say your best choice for your situation is what 
>Gerhard
>said to do. Change the page to an asp and use this line in the frame
>generation. OrderEntry.asp?Access_Id=<%=Request.QueryString("Access_ID")%>
>
>Dave
>
>-----Original Message-----
>From: Jerry Scannell [mailto:JerryScannell@c...]
>Sent: Thursday, August 29, 2002 12:00 PM
>To: javascript
>Subject: [javascript] Re: how to receive Query String within a frame
>
>Unfortunately, you can't pass parameters to an .HTM file.  Therefore, you
>should use an .ASP file, even if there won't be any other serverside
>functionality other than parsing the URL parameters.
>
>Jerry
>
>
>----- Original Message -----
>From: "Quang Lam" <QTheLams@a...>
>To: "javascript" <javascript@p...>
>Sent: Thursday, August 29, 2002 5:05 PM
>Subject: [javascript] how to receive Query String within a frame
>
>
> > Hello friends,
> >    I have a login.asp that pass a value to another HTML page as below:
> >
> >    " Response.Redirect "main.htm?access="&rsUser("Access_ID")%> "
> >
> >    When I run, I can see URL fine with a correct Access_ID passed to
> > main.htm. My purpose is that I need to pass this Access_ID to a frame
> >    name="Main" src="OrderEntry.asp" as shown below. Please help me. 
>Thanks
> >
> >   // main.htm
> >   <html>
> >     <frameset cols="150, *" frameborder="0" framespacing="0">
> >        <frame src="NavigateSite.htm"  name="Crest" noresize
>scrolling="no">
> >    <frameset rows="80, *" frameborder="0" framespacing="0">
> >        <frame name="NavigateSite" src="Crest.htm" scrolling="no">
> >        <frame name="Main" src="OrderEntry.asp">
> >    </frameset>
> >
> >    </frameset>
> >   </html>
> >
> > ---
> >
> > 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
> >
>
>
>
>---
>
>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
>
>
>
>---
>
>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




_________________________________________________________________
Join the world?s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


  Return to Index