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


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!


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. :)


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

By Dave - September 14, 2003

Sometimes this can happen when a page is generated in response to a form being submitted. Another situation is when the page isn't cached locally. You could try adding meta tags to tell IE not to cache the page, but even if that worked with IE you'd still have other browsers to contend with.

If all you're trying to do is to prevent users from downloading your content and viewing it offline you could add a little bit of javascript that redirected them to your website if the current domain wasn't 'yourdomain.com'. Then if they saved it locally and tried to view it it would instantly redirect them back to the website. Even that would easy to defeat (by editing the HTML) but average users might not bother.

Hope that helps.
Dave Edis - Senior Developer

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

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,


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).


// 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/";

Dave Edis - Senior Developer