Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: search box and frames


Message #1 by soni29@h... on Wed, 8 May 2002 21:17:26
hi,
i'm working on a site right now which has 3 frames, a left, top and main.  
i wanted to put a search box either in the left or top frame, but the 
problem is how would i display the results in the main frame?  is there a 
way to user response.redirect and target a certain frame? i wanted the 
input typed into the search box sent to a search page which would then 
redirect to the appropriate page but in the main frame.

Thank you.
Message #2 by Feduke Cntr Charles R <FedukeCR@m...> on Thu, 9 May 2002 08:41:07 -0400
	Yes, in fact you've got the right keyword in your question - target.
Basically in your <frame> tags, you give each <frame> a name (like <frame
name="results">), then in a <form> or a <a> tag, you can target a frame by
its name:

<form method="POST" action="search.aspx" target="results">
...
</form>

so the requested search.aspx will appear in the frame (or window even!)
named "results".  I think. :)

HTH,
- Chuck

-----Original Message-----
From: soni29@h... [mailto:soni29@h...]
Sent: Wednesday, May 08, 2002 5:17 PM
To: ASP+
Subject: [aspx] search box and frames


hi,
i'm working on a site right now which has 3 frames, a left, top and main.  
i wanted to put a search box either in the left or top frame, but the 
problem is how would i display the results in the main frame?  is there a 
way to user response.redirect and target a certain frame? i wanted the 
input typed into the search box sent to a search page which would then 
redirect to the appropriate page but in the main frame.

Thank you.
Message #3 by Ali Ahmad H <ali@a...> on Fri, 10 May 2002 13:47:16 +0700
Add the target frame at the Form tag.
for example your main frame is named : "main"

<form name="FormName" method="post" action="filename.aspx" id="FormName" 
target="main">

if it doesn't work, try to change your action page to other file name, and 
add the target frame at the FORM tag.

regards,
-ali-

At 09:17 PM 5/8/2002 +0000, you wrote:
>hi,
>i'm working on a site right now which has 3 frames, a left, top and main.
>i wanted to put a search box either in the left or top frame, but the
>problem is how would i display the results in the main frame?  is there a
>way to user response.redirect and target a certain frame? i wanted the
>input typed into the search box sent to a search page which would then
>redirect to the appropriate page but in the main frame.
>
>Thank you.



  Return to Index