Frames Redirection

E

Earl Partridge

FP2000, Windows XP
I have a frames page with Banner, Contents & Main.
The Banner frame contains a form for getting user input.
The Main frame is used to display input from an Access database.
The Contents frame is used to display a list of users online.

When data is entered in the text box on the Banner frame and Submit
pressed, the form routes to an Update page for adding the input data
to the database. This is working correctly.

After updating the database, that Update page Redirects to the source name
of
the Main frame. However, the Contents frame, instead of the Main frame
receives the data from the database.

The Frameset page is an HTM file, the 3 frames are all .ASP files.
 
S

Stefan B Rusynko

You need to refresh the page that is used to display the new database results
ASP does not support Frameset Redirects
See http://www.aspfaq.com/show.asp?id=2052

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| FP2000, Windows XP
| I have a frames page with Banner, Contents & Main.
| The Banner frame contains a form for getting user input.
| The Main frame is used to display input from an Access database.
| The Contents frame is used to display a list of users online.
|
| When data is entered in the text box on the Banner frame and Submit
| pressed, the form routes to an Update page for adding the input data
| to the database. This is working correctly.
|
| After updating the database, that Update page Redirects to the source name
| of
| the Main frame. However, the Contents frame, instead of the Main frame
| receives the data from the database.
|
| The Frameset page is an HTM file, the 3 frames are all .ASP files.
|
|
 
E

Earl Partridge

I tried both examples but apparently I'm missing something still, not too
familiar with this code. Here's the code I used:
url = http://www.myweb.com/chat/chatbox.asp
response.write("<vbscript>" & vbCrLf)
response.write("parent.main.location.replace(' " & url & " ');")
response.write(vbCrLf & "</vbscript>")

I want to return to the "Main" frame (source is chatbox.asp), but with this
code the text from the response write lines is written to the "Contents"
frame.
What am I not understanding? Do I replace "parent" with an actual name?
Same with "location"?

Earl........................................................................................
 
S

Stefan B Rusynko

It writes the code because that is what you coded
You want client side script (javascript), not server side script (vbscript) to be written by the ASP code

Try
<%
url = "http://www.myweb.com/chat/chatbox.asp/"
response.write("<script>" & vbCrLf)
response.write("parent.main.location.replace('" & url & "');")
response.write(vbCrLf & "</script>")
%>
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


|I tried both examples but apparently I'm missing something still, not too
| familiar with this code. Here's the code I used:
| url = http://www.myweb.com/chat/chatbox.asp
| response.write("<vbscript>" & vbCrLf)
| response.write("parent.main.location.replace(' " & url & " ');")
| response.write(vbCrLf & "</vbscript>")
|
| I want to return to the "Main" frame (source is chatbox.asp), but with this
| code the text from the response write lines is written to the "Contents"
| frame.
| What am I not understanding? Do I replace "parent" with an actual name?
| Same with "location"?
|
| Earl........................................................................................
|
| | > You need to refresh the page that is used to display the new database
| > results
| > ASP does not support Frameset Redirects
| > See http://www.aspfaq.com/show.asp?id=2052
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > _____________________________________________
| >
| >
| > | > | FP2000, Windows XP
| > | I have a frames page with Banner, Contents & Main.
| > | The Banner frame contains a form for getting user input.
| > | The Main frame is used to display input from an Access database.
| > | The Contents frame is used to display a list of users online.
| > |
| > | When data is entered in the text box on the Banner frame and Submit
| > | pressed, the form routes to an Update page for adding the input data
| > | to the database. This is working correctly.
| > |
| > | After updating the database, that Update page Redirects to the source
| > name
| > | of
| > | the Main frame. However, the Contents frame, instead of the Main frame
| > | receives the data from the database.
| > |
| > | The Frameset page is an HTM file, the 3 frames are all .ASP files.
| > |
| > |
| >
| >
|
|
 
E

Earl Partridge

Great, that works, getting the data in the "Main" frame, but for some reason
the "Contents" frame gets erased. Guess I'll play around and see if similar
code will refresh or keep the text in that frame.
Thanks.
Earl

Stefan B Rusynko said:
It writes the code because that is what you coded
You want client side script (javascript), not server side script
(vbscript) to be written by the ASP code

Try
<%
url = "http://www.myweb.com/chat/chatbox.asp/"
response.write("<script>" & vbCrLf)
response.write("parent.main.location.replace('" & url & "');")
response.write(vbCrLf & "</script>")
%>
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


|I tried both examples but apparently I'm missing something still, not too
| familiar with this code. Here's the code I used:
| url = http://www.myweb.com/chat/chatbox.asp
| response.write("<vbscript>" & vbCrLf)
| response.write("parent.main.location.replace(' " & url & " ');")
| response.write(vbCrLf & "</vbscript>")
|
| I want to return to the "Main" frame (source is chatbox.asp), but with
this
| code the text from the response write lines is written to the "Contents"
| frame.
| What am I not understanding? Do I replace "parent" with an actual name?
| Same with "location"?
|
|
Earl........................................................................................
|
| | > You need to refresh the page that is used to display the new database
| > results
| > ASP does not support Frameset Redirects
| > See http://www.aspfaq.com/show.asp?id=2052
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| >
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > _____________________________________________
| >
| >
| > | > | FP2000, Windows XP
| > | I have a frames page with Banner, Contents & Main.
| > | The Banner frame contains a form for getting user input.
| > | The Main frame is used to display input from an Access database.
| > | The Contents frame is used to display a list of users online.
| > |
| > | When data is entered in the text box on the Banner frame and Submit
| > | pressed, the form routes to an Update page for adding the input data
| > | to the database. This is working correctly.
| > |
| > | After updating the database, that Update page Redirects to the
source
| > name
| > | of
| > | the Main frame. However, the Contents frame, instead of the Main
frame
| > | receives the data from the database.
| > |
| > | The Frameset page is an HTM file, the 3 frames are all .ASP files.
| > |
| > |
| >
| >
|
|
 
E

Earl Partridge

I have not been able to keep the text in that Contents frame.
Any thoughts?
Earl

Earl Partridge said:
Great, that works, getting the data in the "Main" frame, but for some
reason
the "Contents" frame gets erased. Guess I'll play around and see if
similar
code will refresh or keep the text in that frame.
Thanks.
Earl

Stefan B Rusynko said:
It writes the code because that is what you coded
You want client side script (javascript), not server side script
(vbscript) to be written by the ASP code

Try
<%
url = "http://www.myweb.com/chat/chatbox.asp/"
response.write("<script>" & vbCrLf)
response.write("parent.main.location.replace('" & url & "');")
response.write(vbCrLf & "</script>")
%>
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


|I tried both examples but apparently I'm missing something still, not
too
| familiar with this code. Here's the code I used:
| url = http://www.myweb.com/chat/chatbox.asp
| response.write("<vbscript>" & vbCrLf)
| response.write("parent.main.location.replace(' " & url & " ');")
| response.write(vbCrLf & "</vbscript>")
|
| I want to return to the "Main" frame (source is chatbox.asp), but with
this
| code the text from the response write lines is written to the
"Contents"
| frame.
| What am I not understanding? Do I replace "parent" with an actual
name?
| Same with "location"?
|
|
Earl........................................................................................
|
| | > You need to refresh the page that is used to display the new database
| > results
| > ASP does not support Frameset Redirects
| > See http://www.aspfaq.com/show.asp?id=2052
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| >
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > _____________________________________________
| >
| >
| > | > | FP2000, Windows XP
| > | I have a frames page with Banner, Contents & Main.
| > | The Banner frame contains a form for getting user input.
| > | The Main frame is used to display input from an Access database.
| > | The Contents frame is used to display a list of users online.
| > |
| > | When data is entered in the text box on the Banner frame and Submit
| > | pressed, the form routes to an Update page for adding the input
data
| > | to the database. This is working correctly.
| > |
| > | After updating the database, that Update page Redirects to the
source
| > name
| > | of
| > | the Main frame. However, the Contents frame, instead of the Main
frame
| > | receives the data from the database.
| > |
| > | The Frameset page is an HTM file, the 3 frames are all .ASP files.
| > |
| > |
| >
| >
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top