iFrame help

Soldato
Joined
4 Dec 2002
Posts
4,013
Location
Bourne, Lincs
I have some HTM code that takes input from a input box and passes it over to a ASP page to load up calendars.

But what I want to do is to use iFrames/frames so at the top is the HTML page and the value is then passed to the lower frame where the ASP lives.

But I have not done frames in years so not sure the code I need to use.

default.htm - This takes the username input

Code:
<HTML>
Please type the username of the calendar you wish to view 
<form action="calendar.asp" method="post">
<input type="text" name="username">&nbsp<input type="submit">
</form>

</HTML>

calendar.asp - This is the page the username is passed to

Code:
<HTML>

<%
newURL = "https://mailsrv2.domain.co.uk/owa/" & Request.Form("username") & "@domain.co.uk/?cmd=contents&f=calendar"
Response.Redirect(newURL)
%>

</HTML>

Any help is appricated

Thanks

Kimbie
 
You could use your frame idea.

http://www.w3schools.com/tags/tag_form.asp

The form tag has a deprecated target attribute which I think should let you name a frame to send to. This will let the frame reload with your variable posted to it.

But as Si says, have you thought about using something a bit more dynamic to keep it on one page and user friendly?
 
Back
Top Bottom