Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: redirect and frames urgent please!!!!!


Message #1 by "Ricardo Hernandez" <richhern35@h...> on Fri, 3 May 2002 23:27:51
I am working with an application in which i have three different frames. 
The frame where i display all the information is called "main" (the other 
fraims are used for navegation purposes").
Inside that main frame i have a page name "bungalow.asp" which contains a 
form for the user to fill. The form then calls an ASP script page 
named "procbungalow.asp" and does some calculations. After the 
procbungalow.asp finished its calculation redirects the result to the same 
page bungalow.asp returning the result in the url. which display the same 
form but adding the result. 

The problem that i have is that everytime that i hit the submit button in 
the bungalow.asp page. The fraim becomes white not showing my form and the 
result. Please help. Here are some of the main code regarding this 
problem. 

some of the code is as follows 



page bungalow.asp(contains a form for the user to fill and a submit 
button) also contains the following code that adds to the form after the 
submit button is clicked. 

<%response.buffer=True 
Dim total1
 total1=request.querystring("total")
 if total1="" then  
 Else
 response.write  "<font color='#CC9966' size='+1'>Resultato </font>: 
&euro; "  & "<font color='#000033'>" & total1 & "</font>"
End if 
%>



procbungalow.asp(inttotal contains a value to be return) 
Response.buffer=True 
Response.redirect "bungalow.asp?total=" & inttotal 



these two pages are displayed in the same frame called "main"

Thank you for your help 



Message #2 by "Drew, Ron" <RDrew@B...> on Fri, 3 May 2002 20:56:58 -0400
Try..
Add 2 hidden fields to the form ..one with a value of 0 and one for the
results of procbungalow.asp, when you submit on bungalow.asp test for
value 0 in the first hidden field and if so open a new window as
procbungalow.asp using javascript, in that window update the hidden
fields in bungalow.asp with a value of 1 and whatever you are
calculating and when done do a javascript self.close you are back to
bungalow.asp.   Next time you hit submit the test should go to where
ever value 1 needs to go in your flow after the calc...

-----Original Message-----
From: Ricardo Hernandez [mailto:richhern35@h...]
Sent: Friday, May 03, 2002 7:28 PM
To: ASP Web HowTo
Subject: [asp_web_howto] redirect and frames urgent please!!!!!


I am working with an application in which i have three different frames.

The frame where i display all the information is called "main" (the
other
fraims are used for navegation purposes").
Inside that main frame i have a page name "bungalow.asp" which contains
a
form for the user to fill. The form then calls an ASP script page
named "procbungalow.asp" and does some calculations. After the
procbungalow.asp finished its calculation redirects the result to the
same
page bungalow.asp returning the result in the url. which display the
same
form but adding the result.

The problem that i have is that everytime that i hit the submit button
in
the bungalow.asp page. The fraim becomes white not showing my form and
the
result. Please help. Here are some of the main code regarding this
problem.

some of the code is as follows



page bungalow.asp(contains a form for the user to fill and a submit
button) also contains the following code that adds to the form after the

submit button is clicked.

<%response.buffer=3DTrue
Dim total1
 total1=3Drequest.querystring("total")
 if total1=3D"" then 
 Else
 response.write  "<font color=3D'#CC9966' size=3D'+1'>Resultato </font>: 

&euro; "  & "<font color=3D'#000033'>" & total1 & "</font>"
End if
%>



procbungalow.asp(inttotal contains a value to be return)
Response.buffer=3DTrue
Response.redirect "bungalow.asp?total=3D" & inttotal



these two pages are displayed in the same frame called "main"

Thank you for your help




---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20

  Return to Index