Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Response.Write to Frame

Status
Not open for further replies.

jbcamel

Programmer
Mar 26, 2001
37
US
My web page is two frames. A form is displayed in the right hand frame with one input field.

I have a very short asp script. If the form input is valid I want to go to &quot; in a full window, if it is not valid I want to send the user a message in the current frame. I tried using target=&quot;_top&quot; in the <FORM> tag but then they both go to a full window.

How can I do that? Thanks

Here's my current script:

<%

If Request(&quot;Password&quot;) = &quot;dummy&quot; Then
Response.Redirect &quot;Else
Response.Write &quot;<html>&quot;
Response.Write &quot;<body background='../gifs/uniback.jpg'>&quot;
Response.Write &quot;<br>&quot;
Response.Write &quot;<center>&quot;
Response.Write &quot;<font size='4' color='red'>You have entered an incorrect code.</font>&quot;
Response.Write &quot;<br><br>&quot;
Response.Write &quot;<br><br>&quot;
Response.Write &quot;<strong> Please click on the 'BACK' button of your browser to try again.</strong>&quot;
Response.Write &quot;</center>&quot;
Response.Write &quot;</body>&quot;
Response.Write &quot;</html>&quot;

End If

%>
 
you have to force the first frame to submit to the second frame.

that would then work with your asp code. because asp is first process, then javascript and then html.

on the form, you have to call the submit function in other frame.

hui

hop ethat helps. Emagine Solutions, Inc.
 
Sorry, but I don't understand. Can you give me some code as an example?

Jane
 
Hi

you need to understand how frames works and how to call it with javascript.

here is a example

instead of calling them you can force submit a frame with
for example with that example you can do:
top.bottomframe.(formname).submit(); and it will autosubmit the frame and the asp will then will run.

have a look at the source code with view source. If you don't understand i will help provide the code for you on Monday. (weekend :))

Thanks,
Hui Emagine Solutions, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top