Jump to content
  • 0

Datapage Paramater Pass To Anchor Tag On Frame Reload


Question

Hello,

 

I have a datapage in frames called "Detail" that when loaded, reloads another datapage in another frame called "Main". I would like to modify so that when the datapage in frame "Main" is reloaded per the script below, that it also jumps to page via html anchor tag. How do I modify the reload script to reload and reference the anchor tag to jump to? Anchor tag is <a name="[@field:Sales_Date]">.

 

 

<script type="text/javascript">
<!--
parent.frames.Main.document.location.reload();
// -->
</script>
 
 
 
Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hello ccarls,

 

As far as I know, the frame can not reload or redirect the parent page for security reasons. Probably, the frame can not reload another frame too.

The parent page can do it, but, I am afraid, it can not know that the content of a frame is changed.

Link to post
Share on other sites
  • 0

Good morning,

 

 

I have an iframe that I use to refresh the parent by using the following script

<script type=text/javascript>

setInterval(function ReloadParent () {
		window.parent.location.reload();
		},3000);

</script>

This does it after an interval of 3 seconds from page load.

 

I have this on a success page to reload the parent page with reports once someone submits new information.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...