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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Response.Update??????

Status
Not open for further replies.

adamsoderqvist

Programmer
Sep 8, 2001
136
SE
How do I Update a frame with a Response(or equiv.) from another frame?

Lets say that I wanna update a frame from another frame, by - for example - pressing "Update!"-button. How do i do this?

I've tried using "Response.Update", ".Reload" and so on, but it don't seem to work (-it doesn't exists such a command!!)

Please-help-please!
 
adam,

try request.form coding with the new updated information to be reload on the submit button
 
use the javascript document.reload().
This is a client-side action. don't try to use ASP server-side scripting for that.

HTH, s-)

Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
 
Could I have a few more leads...? How could the code snippet for the two suggestions look like?

thanx
 
Below is an example:

1.Main Page main.htm

<HTML>
<FRAMESET ROWS =&quot;10%,*&quot; FRAMEBORDER=0 BORDER=0>
<FRAME src=TestUpdate.htm name=unu></FRAME>
<FRAME src=testFrame.htm name=doi></FRAME>
<NOFRAMES>
Your browser does not support frames.
</NOFRAMES>
</FRAMESET>
</HTML>

1.File named TestUpdate.htm
<HTML>
<SCRIPT Language=&quot;Javascript&quot;>
function ReloadFrame()
{
parent.frames(&quot;doi&quot;).window.document.location.reload()
}
</SCRIPT>
<INPUT type=&quot;Button&quot; Name = &quot;Test&quot; Value = &quot;Test Update&quot; onClick='ReloadFrame()'>
</HTML>

1.File named testFrame.htm
<HTML>
<BODY>
<IMG SRC = WTCDevastation.jpg>
</BODY>

</HTML>

This works perfectly on IE5. Don't know about NNx
HTH,
s-)

Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top