how to create "Page Exipired" or Unable to Save Current Page?

6 posts by 3 authors in: Forums > Off Topic / Other
Last Post: September 18, 2003   (RSS)

By chihtsung - September 13, 2003

Hi,

Need help from you guys!

Does anyone know how to create a "Page Expired" or "Unable to Save Current Page" (under IE)??

For example, some web pages were unable to use 'Back' from browser. It would display 'Page Expired .. ' or similar messages. How can I do that?

Or some web pages were unable to save the pages under Internet Explorer, how can I do that?

The reason behind this is that my client asked me if I can impletement similar functions into the DocBuilder.

Thank you all!

-Chih

Re: [chihtsung] how to create "Page Exipired" or Unable to Save Current Page?

By Donna - September 14, 2003

Hi chihtsung!

Thanks for your post. :)

Those are all actually features that are built into Internet Explorer. There's no need to create such a page as they will display automatically if it runs into any of the conditions that disallow it from displaying a page.

Let me know if you have any other questions or concerns. :)
Donna

--
support@interactivetools.com

Re: [Dave] how to create "Page Exipired" or Unable to Save Current Page?

By chihtsung - September 15, 2003

Hi, Dave:

Thank you for your reply.
Both ways your mentioned are exactly what I wanted!

Can you show me how to do the disable IE from cache it locally? As for the META TAG, can I implemented into DocBuilder or Article Manager? otherwise, I will have to add tags after the pages were created by DocBuilder. :-(

I am not quite understand your second point.
If I use the rediect..
<META HTTP-EQUIV="REFRESH" CONTENT="0;URL=http://www.mydomain.com">
What does it do with IE while saving the pages?

Thank you,

-Chih

Re: [chihtsung] how to create "Page Exipired" or Unable to Save Current Page?

By Dave - September 18, 2003

I'm not sure of the exact meta tags, you can google for them (try: disable caching in IE meta tag) and I'm not sure how successful that would be.

But here's some javascript that would redirect users who try to view a page on an un-authorized domain or locally. You'll have to play around with it but hopefully it will be a starting point.

If you decide to try it be sure to enter all the domains that may be used (meaning www.domain.com AND domain.com without the www).


<script>

// redirect users who view this page on un-authorized domain
// Note: type authorized domain names in ALL lowercase

var thisDomain = window.location.hostname.toLowerCase();

if (thisDomain != 'yourdomain.com' &&
thisDomain != 'www.yourdomain.com' &&
thisDomain != 'yourotherdomain.com') {

window.location = "http://www.yahoo.com/";
}

</script>
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] how to create "Page Exipired" or Unable to Save Current Page?

By chihtsung - September 18, 2003

Will try it. Thanks a lot!

Chih