471,088 Members | 1,276 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,088 software developers and data experts.

Iframe refeshing Source URL every time page is displayed

Hi all,
I am trying to add some advanced search tools to a standard HTML website by
using an Iframe whose SRC attribute points to a remote ASP.NET site which
contains the advanced search tool (listlocator.aspx). It works fine, except
everytime the user clicks "Search" from any other page in the site thay need
to wait until the ASP.NET search tool initializes every time. Even if the
user clicks the Back or Forward buttons to get to the Search page, the
Iframe re-loads the listlocator.aspx every time even if the page has already
been visited and the search tool was already loaded.

The page within the Iframe takes a few seconds to load so I am placing a
"Please Wait..." image which becomes hidden when the Iframe completes
loading of the page.

Is there a way to allow the Iframe to display the listlocator.aspx page in
it's most recent state without reloading it every time which becomes
annoying. I have done some reading about Caching on the Server side, but I
don't know if this will help. Is there anything that can be done on the
Browser side or in the HTML Iframe declaration such that if the Iframe
aldready contains the listlocator.aspx page it is not reloaded? Maybe Iframe
is not the way to go here, but it beats the heck out of re-writing a
complicated search tool.

Thanks for any help....

See the code snipped from the page below.

<iframe
src="http://localhost/manager/listlocator.aspx?mgr=LCS&site=listdata"
onload="iframe_onload();"></iframe>
<script type="text/jscript" language="javascript">
function iframe_onload()
{
var theWaitCell = document.getElementById('Wait1');
theWaitCell.style.visibility = "hidden";
}
</script>

Thanks for any help....again
Aug 18 '08 #1
0 1307

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Pete Wason | last post: by
3 posts views Thread by Sascha Möllering | last post: by
3 posts views Thread by Angel | last post: by
26 posts views Thread by shlomi.schwartz | last post: by
1 post views Thread by syshex | last post: by
12 posts views Thread by mistral | last post: by
7 posts views Thread by nicknack | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.