Redirect To Frame

E

Earl Partridge

FP 2000, Windows XP
I have a 3 frame frameset, Banner, Contents & Main.
A Form in the Banner pages takes me to an Update page to update a
database. In that Update.asp page, I use the following code to return
to the Main page

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

When returned to the Main page (chatbox.asp), whatever text in the
"Contents" page
is wiped out. I have tried similar code for that page and also a Refresh,
but the text never returns to the Contents page. How do I keep the
Contents page current?
 
S

Stefan B Rusynko

As previously indicated to you, redirects do not support frames

You have a frameset w/ several .asp pages
- one of them is changing the database affecting the content in other pages

ASP pages will each be processed server side when opened
To get all the pages to show the new DB content reopen the entire frameset
Tyr changing your URL to your frameset page filename and the target to _top
response.write("parent.top.location.replace(' " & url & " ');")

--

_____________________________________________
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
_____________________________________________


| FP 2000, Windows XP
| I have a 3 frame frameset, Banner, Contents & Main.
| A Form in the Banner pages takes me to an Update page to update a
| database. In that Update.asp page, I use the following code to return
| to the Main page
|
| url = http://www.myweb.com/chat/chatbox.asp
| response.write ("<script>" & vbCrLf)
| response.write("parent.main.location.replace(' " & url & " ');")
| response.write(vbCrLf & "/script>")
|
| When returned to the Main page (chatbox.asp), whatever text in the
| "Contents" page
| is wiped out. I have tried similar code for that page and also a Refresh,
| but the text never returns to the Contents page. How do I keep the
| Contents page current?
|
|
 

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