Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: frames, how to refer to them


Message #1 by "Oliver Dempsey" <odempsey@b...> on Mon, 18 Dec 2000 20:54:14 -0000
This is a multi-part message in MIME format.



------=_NextPart_000_002F_01C06934.AE475460

Content-Type: text/plain;

	charset="iso-8859-1"

Content-Transfer-Encoding: quoted-printable



Hi there

does anybody know how to change the contents of another frame using a 

hyperlink for example.  Do you have to refer to the other frame by 

giving it an address or something.  Forgive me, I have not done much 

with frames.

Is there anywhere that I can get reference material for  them?





Regards

Oliver Dempsey





---

MaximumASP offers enhanced hosting solutions on the Windows 2000 platform. Dedicated processor, RAM, and server resources provide
dedicated server performance at virtual server prices. Commercial components provided; custom components allowed.

---

You are currently subscribed to asp_web_howto as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_web_howto-$subst('Recip.MemberIDChar')@p2p.wrox.com








Message #2 by "Darshan Singh" <darshan@P...> on Mon, 18 Dec 2000 15:45:22 -0600
This is a multi-part message in MIME format.



------=_NextPart_000_000D_01C06909.88A4FCB0

Content-Type: text/plain;

	charset="iso-8859-1"

Content-Transfer-Encoding: 7bit



Hi Oliver,



The simplest way is : to use the TARGET attribute of <A > TAG and give name

of the frame as value of TARGET Attribute.



Here is an example:



Save following code as c:\1.html





<HTML>

<HEAD>

<frameset framespacing="0" frameborder="yes" rows="60,*">

  <frame src="2.html" name="top" topmargin="0" scrolling="no" >

  <frame src="http://www.PerfectXML.com" name="MAIN_FRAME" scrolling="auto">

  <noframes>

  <body bgcolor="#442523">

  <p>This web page uses frames, but your browser doesn't support them.</p>

  </body>

  </noframes>

</frameset>



<frameset>

  <noframes>

  </noframes>

</frameset>

</html>



-----



And following lines as c:\2.html (See here how target attribute is used)



<HTML>

<HEAD></HEAD>

<BODY>

<A HREF="http://www.PerfectXML.com" TARGET="MAIN_FRAME">PerfectXML</A>

       

<A HREF="http://msdn.microsoft.com" TARGET="MAIN_FRAME">MSDN</A>

       

<A HREF="http://www.google.com" TARGET="MAIN_FRAME">Search the Web</A>

</BODY>

</HTML>





Now open c:\1.html and try clicking on links on the top frame.



This is the simplest method, other ways include using JavaScript, etc.



Hope this helps.

Darshan Singh





  -----Original Message-----

  From: Oliver Dempsey [mailto:odempsey@b...]

  Sent: Monday, December 18, 2000 2:54 PM

  To: ASP Web HowTo

  Subject: [asp_web_howto] frames, how to refer to them





  Hi there

  does anybody know how to change the contents of another frame using a

hyperlink for example.  Do you have to refer to the other frame by giving it

an address or something.  Forgive me, I have not done much with frames.

  Is there anywhere that I can get reference material for  them?





  Regards

  Oliver Dempsey

  ---

  MaximumASP offers enhanced hosting solutions on the Windows 2000 platform.

Dedicated processor, RAM, and server resources provide dedicated server

performance at virtual server prices. Commercial components provided; custom

components allowed.




leave-asp_web_howto-$subst('Recip.MemberIDChar')@p2p.wrox.com







---

MaximumASP offers enhanced hosting solutions on the Windows 2000 platform. Dedicated processor, RAM, and server resources provide
dedicated server performance at virtual server prices. Commercial components provided; custom components allowed.

---

You are currently subscribed to asp_web_howto as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_web_howto-$subst('Recip.MemberIDChar')@p2p.wrox.com








Message #3 by Imar Spaanjaars <Imar@S...> on Mon, 18 Dec 2000 22:38:19 +0100
Yes, you have to give them a name, and then refer to them.



Her is an example of a frameset:



<frameset  cols="100,*" border="0">

     <frame name="upperFrame" src="/aPage.html" marginwidth="0" 

marginheight="0" scrolling="no" frameborder="0" noresize>

     <frame name="content" src="/home.asp" marginwidth="0" marginheight="0" 

scrolling="auto" frameborder="0" noresize>

</frameset>



Now suppose you have a link in aPage.html that you want to open in the main 

frame (called content in this example).

The link will look like this:



<A HREF="anotherPage.html" TARGET="upperFrame">Click me to open in the 

other frame</a>



Actually this has not much to do with ASP in general. A better list for 

this question might have been the HTML_clinic list.



I think there are least a million webpages showing you how to create a link 

with HTML.

You can take a look at http://www.builder.com/QuickReference/HTMLReference/ 

for example. This provides a list of useful HTML tags and their attributes. 

They also link to the official HTML specs at w3.org.



Search at Altavista for example for HTML and learning, and you'll find tons 

of links.



HtH



Imar









At 08:54 PM 12/18/2000 +0000, you wrote:

>Hi there

>does anybody know how to change the contents of another frame using a 

>hyperlink for example.  Do you have to refer to the other frame by giving 

>it an address or something.  Forgive me, I have not done much with frames.

>Is there anywhere that I can get reference material for  them?

>

>

>Regards

>Oliver Dempsey





---

MaximumASP offers enhanced hosting solutions on the Windows 2000 platform. Dedicated processor, RAM, and server resources provide
dedicated server performance at virtual server prices. Commercial components provided; custom components allowed.

---

You are currently subscribed to asp_web_howto as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_web_howto-$subst('Recip.MemberIDChar')@p2p.wrox.com

Message #4 by Imar Spaanjaars <Imar@S...> on Mon, 18 Dec 2000 22:45:51 +0100
Hi Oliver,



Found some more links on this subject for you:



General HTML introduction (maybe too basic):

http://www.builder.com/Authoring/Basics/?tag=st.bl.3881.dir1.bl_Basics



and "Fun with Frames":

http://www.builder.com/Authoring/Frames/?tag=st.bl.f031397.more.Frames



HtH



Imar







At 08:54 PM 12/18/2000 +0000, you wrote:

>Hi there

>does anybody know how to change the contents of another frame using a 

>hyperlink for example.  Do you have to refer to the other frame by giving 

>it an address or something.  Forgive me, I have not done much with frames.

>Is there anywhere that I can get reference material for  them?

>

>

>Regards

>Oliver Dempsey





---

MaximumASP offers enhanced hosting solutions on the Windows 2000 platform. Dedicated processor, RAM, and server resources provide
dedicated server performance at virtual server prices. Commercial components provided; custom components allowed.

---

You are currently subscribed to asp_web_howto as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_web_howto-$subst('Recip.MemberIDChar')@p2p.wrox.com

Message #5 by "Oliver Dempsey" <odempsey@b...> on Mon, 18 Dec 2000 21:47:17 -0000
This is a multi-part message in MIME format.



------=_NextPart_000_0046_01C0693C.172922E0

Content-Type: text/plain;

	charset="iso-8859-1"

Content-Transfer-Encoding: quoted-printable





 OK  I fiqured out how to do the links from one frame to the other.

But how would I pass on a variable from one frame to another, for 

example

I want this first page to pass on the querystring to the second frame 

"classified.asp?r=3D23"

frame 1

<html>

<head>

<title>Untitled Document</title>

<meta http-equiv=3D"Content-Type" content=3D"text/html; 

charset=3Diso-8859-1">

</head>



<body bgcolor=3D"#FFFFFF">

<a href=3D"classified.asp?r=3D23" target=3D"leftFrame2">click here</a>

</body>

</html>



leftFrame2



<html>

<head>

<title>Untitled Document</title>

<meta http-equiv=3D"Content-Type" content=3D"text/html; 

charset=3Diso-8859-1">

</head>



<body bgcolor=3D"#FFFFFF">

<%

if r=3D23 then response.write "Welcome"%>

</body>

</html>



regards

Oliver Dempsey











---

MaximumASP offers enhanced hosting solutions on the Windows 2000 platform. Dedicated processor, RAM, and server resources provide
dedicated server performance at virtual server prices. Commercial components provided; custom components allowed.

---

You are currently subscribed to asp_web_howto as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_web_howto-$subst('Recip.MemberIDChar')@p2p.wrox.com








Message #6 by Imar Spaanjaars <Imar@S...> on Mon, 18 Dec 2000 23:25:32 +0100
Try Request.QueryString



In page2.asp you can get the value of the parameter with 

Request.QueryString, like this:



Dim sParam1

sParam1 = Request.QueryString("r")



Now suppose you want a second parameter, use this in the first page:

<a href="classified.asp?r=23&second=34" target="leftFrame2">click here</a>



Notice that for the first param you use a ?, while for the second and 

subsequent params, you need the &.

The way of retrieving is the same:



Dim sParam2

sParam2 = Request.QueryString("second")



I suggest you pick up a copy of "Beginning ASP' by Wrox (See 

http://www.wrox.com/ for a complete list of all their titles).



HtH



Imar





At 09:47 PM 12/18/2000 +0000, you wrote:

>

>  OK  I fiqured out how to do the links from one frame to the other.

>But how would I pass on a variable from one frame to another, for example

>I want this first page to pass on the querystring to the second frame 

>"classified.asp?r=23"

>frame 1

><html>

><head>

><title>Untitled Document</title>

><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

></head>

>

><body bgcolor="#FFFFFF">

><a href="classified.asp?r=23" target="leftFrame2">click here</a>

></body>

></html>

>

>leftFrame2

>

><html>

><head>

><title>Untitled Document</title>

><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

></head>

>

><body bgcolor="#FFFFFF">

><%

>if r=23 then response.write "Welcome"%>

></body>

></html>

>

>regards

>Oliver Dempsey

>

>





---

MaximumASP offers enhanced hosting solutions on the Windows 2000 platform. Dedicated processor, RAM, and server resources provide
dedicated server performance at virtual server prices. Commercial components provided; custom components allowed.

---

You are currently subscribed to asp_web_howto as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_web_howto-$subst('Recip.MemberIDChar')@p2p.wrox.com

Message #7 by "Martin McIntyre" <martin@m...> on Mon, 18 Dec 2000 22:56:39 -0000
This is a multi-part message in MIME format.



------=_NextPart_000_0014_01C06945.C82FA740

Content-Type: text/plain;

	charset="iso-8859-1"

Content-Transfer-Encoding: 7bit



In the lefFrame2's code you must get the value by doing



If cint(request.querystring("r")) = 23 then .....



  -----Original Message-----

  From: Oliver Dempsey [mailto:odempsey@b...]

  Sent: 18 December 2000 21:47

  To: ASP Web HowTo

  Subject: [asp_web_howto] frames, how to refer to them







   OK  I fiqured out how to do the links from one frame to the other.

  But how would I pass on a variable from one frame to another, for example

  I want this first page to pass on the querystring to the second frame

"classified.asp?r=23"

  frame 1

  <html>

  <head>

  <title>Untitled Document</title>

  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

  </head>



  <body bgcolor="#FFFFFF">

  <a href="classified.asp?r=23" target="leftFrame2">click here</a>

  </body>

  </html>



  leftFrame2



  <html>

  <head>

  <title>Untitled Document</title>

  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

  </head>



  <body bgcolor="#FFFFFF">

  <%

  if r=23 then response.write "Welcome"%>

  </body>

  </html>



  regards

  Oliver Dempsey







  ---

  MaximumASP offers enhanced hosting solutions on the Windows 2000 platform.

Dedicated processor, RAM, and server resources provide dedicated server

performance at virtual server prices. Commercial components provided; custom

components allowed.




leave-asp_web_howto-$subst('Recip.MemberIDChar')@p2p.wrox.com







---

MaximumASP offers enhanced hosting solutions on the Windows 2000 platform. Dedicated processor, RAM, and server resources provide
dedicated server performance at virtual server prices. Commercial components provided; custom components allowed.

---

You are currently subscribed to asp_web_howto as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_web_howto-$subst('Recip.MemberIDChar')@p2p.wrox.com








Message #8 by "Pappas Nikos" <pappas@c...> on Tue, 19 Dec 2000 08:03:04 -0800
This is a multi-part message in MIME format.



------=_NextPart_000_000A_01C06992.1D3AAC20

Content-Type: text/plain;

	charset="iso-8859-1"

Content-Transfer-Encoding: 7bit



Nop just use the name of the frame like if the frame name is main use

target = "main"

  -----Original Message-----

  From: Oliver Dempsey [mailto:odempsey@b...]

  Sent: Monday, December 18, 2000 12:54 PM

  To: ASP Web HowTo

  Subject: [asp_web_howto] frames, how to refer to them





  Hi there

  does anybody know how to change the contents of another frame using a

hyperlink for example.  Do you have to refer to the other frame by giving it

an address or something.  Forgive me, I have not done much with frames.

  Is there anywhere that I can get reference material for  them?





  Regards

  Oliver Dempsey

  ---

  MaximumASP offers enhanced hosting solutions on the Windows 2000 platform.

Dedicated processor, RAM, and server resources provide dedicated server

performance at virtual server prices. Commercial components provided; custom

components allowed.




leave-asp_web_howto-$subst('Recip.MemberIDChar')@p2p.wrox.com







---

MaximumASP offers enhanced hosting solutions on the Windows 2000 platform. Dedicated processor, RAM, and server resources provide
dedicated server performance at virtual server prices. Commercial components provided; custom components allowed.

---

You are currently subscribed to asp_web_howto as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_web_howto-$subst('Recip.MemberIDChar')@p2p.wrox.com








Message #9 by "Oliver Dempsey" <odempsey@b...> on Tue, 19 Dec 2000 09:10:12 -0000
How silly of me, I forgot the Request.QueryString("blahlah").

Oh indeed I have a copy of beginning ASP but I must have been asleep last

night when I was trying to do  this:-)







Thanks for  your help

Oliver Dempsey







----- Original Message -----

From: Imar Spaanjaars <Imar@S...>

To: ASP Web HowTo <asp_web_howto@p...>

Sent: Monday, December 18, 2000 10:25 PM

Subject: [asp_web_howto] Re: frames, how to refer to them





> Try Request.QueryString

>

> In page2.asp you can get the value of the parameter with

> Request.QueryString, like this:

>

> Dim sParam1

> sParam1 = Request.QueryString("r")

>

> Now suppose you want a second parameter, use this in the first page:

> <a href="classified.asp?r=23&second=34" target="leftFrame2">click here</a>

>

> Notice that for the first param you use a ?, while for the second and

> subsequent params, you need the &.

> The way of retrieving is the same:

>

> Dim sParam2

> sParam2 = Request.QueryString("second")

>

> I suggest you pick up a copy of "Beginning ASP' by Wrox (See

> http://www.wrox.com/ for a complete list of all their titles).

>

> HtH

>

> Imar

>

>

> At 09:47 PM 12/18/2000 +0000, you wrote:

> >

> >  OK  I fiqured out how to do the links from one frame to the other.

> >But how would I pass on a variable from one frame to another, for example

> >I want this first page to pass on the querystring to the second frame

> >"classified.asp?r=23"

> >frame 1

> ><html>

> ><head>

> ><title>Untitled Document</title>

> ><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

> ></head>

> >

> ><body bgcolor="#FFFFFF">

> ><a href="classified.asp?r=23" target="leftFrame2">click here</a>

> ></body>

> ></html>

> >

> >leftFrame2

> >

> ><html>

> ><head>

> ><title>Untitled Document</title>

> ><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

> ></head>

> >

> ><body bgcolor="#FFFFFF">

> ><%

> >if r=23 then response.write "Welcome"%>

> ></body>

> ></html>

> >

> >regards

> >Oliver Dempsey

> >

> >

>



---

MaximumASP offers enhanced hosting solutions on the Windows 2000 platform. Dedicated processor, RAM, and server resources provide
dedicated server performance at virtual server prices. Commercial components provided; custom components allowed.

---

You are currently subscribed to asp_web_howto as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_web_howto-$subst('Recip.MemberIDChar')@p2p.wrox.com


  Return to Index