Please visit this site to see : http://www.ourvilla.net.au/
To log in, use 221 and click oK
Then, select as an example : Music & Dance, inside it click on any option, then use the "x" at the top right to quit
Then, click on Video Clips, repeat the action and quit
Now, if you select any of them again, view a couple of clips, then hit the "<<<<<<" button at the bottm right, the dialog "Remembers" all the previous screens. It is the same Modal Dialog I am using for all the blue buttons to launch another topic and it is obviously the Browser's cache doing it.
Is there a way to clear the cache when the visitor hits the "X" to exit?
Thanks
An interesting problem
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.quickandeasywebbuilder.com/f ... =12&t=1901
MUST READ:
http://www.quickandeasywebbuilder.com/g ... arted.html
Quick 'n Easy Web Builder FAQ
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.quickandeasywebbuilder.com/f ... =12&t=1901
MUST READ:
http://www.quickandeasywebbuilder.com/g ... arted.html
Quick 'n Easy Web Builder FAQ
Re: An interesting problem
This is expected behavior.
A dialog is just a hidden section on the page that is displayed when you trigger it. The content is not reloaded by the browser. when you hide and then show it.
You may be able to solve this with the 'open' event of the dialog. And use it to reload the inline frame via a (custom made) script.
A dialog is just a hidden section on the page that is displayed when you trigger it. The content is not reloaded by the browser. when you hide and then show it.
You may be able to solve this with the 'open' event of the dialog. And use it to reload the inline frame via a (custom made) script.
Re: An interesting problem
But this is exactly what I do
When a menu / button option is selected - the Onclick triggers the following function / even
function showTopic(htmlPage)
{
pageName = htmlPage; // The argument here is passed from the onclick of the button calling it
$('#Dialog1').dialog('open'); // The Dialog is initially hidden on page load
var url = 'https://ourvilla.net.au/';
var goto = url.concat(pageName);
window.open(goto , 'InlineFrame1'); // Show the HTML page inside the iFrame
}
The same dialogue is used again and again for any of the buttons and it is open() on that click.
It opens / shows the hidden Modal dialog, then it loads the new page into the iFrame - but, for a moment - it shows the previous page inside that iFrame, that is what I am trying to resolve
So, how can I force it to "Forget" the previous page?
Thanks
When a menu / button option is selected - the Onclick triggers the following function / even
function showTopic(htmlPage)
{
pageName = htmlPage; // The argument here is passed from the onclick of the button calling it
$('#Dialog1').dialog('open'); // The Dialog is initially hidden on page load
var url = 'https://ourvilla.net.au/';
var goto = url.concat(pageName);
window.open(goto , 'InlineFrame1'); // Show the HTML page inside the iFrame
}
The same dialogue is used again and again for any of the buttons and it is open() on that click.
It opens / shows the hidden Modal dialog, then it loads the new page into the iFrame - but, for a moment - it shows the previous page inside that iFrame, that is what I am trying to resolve
So, how can I force it to "Forget" the previous page?
Thanks
Re: An interesting problem
Maybe change the URL before you open the dialog?
Code: Select all
function showTopic(htmlPage)
{
pageName = htmlPage; // The argument here is passed from the onclick of the button calling it
var url = 'https://ourvilla.net.au/';
var goto = url.concat(pageName);
window.open(goto , 'InlineFrame1'); // Show the HTML page inside the iFrame
$('#Dialog1').dialog('open'); // The Dialog is initially hidden on page load
}
Re: An interesting problem
Yes, this works just fine
Thanks
Thanks