 |

chihtsung
User
Sep 13, 2003, 9:41 PM
Post #1 of 6
(3412 views)
Shortcut
|
how to create "Page Exipired" or Unable to Save Current Page?
|
Can't Post
|
|
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
|
|
|  |
 |

Donna
Staff
/ Moderator

Sep 14, 2003, 9:42 AM
Post #2 of 6
(3408 views)
Shortcut
|
|
Re: [chihtsung] how to create "Page Exipired" or Unable to Save Current Page?
[In reply to]
|
Can't Post
|
|
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
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

Dave
Staff
/ Moderator

Sep 14, 2003, 9:12 PM
Post #3 of 6
(3404 views)
Shortcut
|
|
Re: [chihtsung] how to create "Page Exipired" or Unable to Save Current Page?
[In reply to]
|
Can't Post
|
|
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 interactivetools.com
|
|
|  |
 |

chihtsung
User
Sep 15, 2003, 1:52 AM
Post #4 of 6
(3397 views)
Shortcut
|
|
Re: [Dave] how to create "Page Exipired" or Unable to Save Current Page?
[In reply to]
|
Can't Post
|
|
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
|
|
|  |
 |

Dave
Staff
/ Moderator

Sep 18, 2003, 10:23 AM
Post #5 of 6
(3361 views)
Shortcut
|
|
Re: [chihtsung] how to create "Page Exipired" or Unable to Save Current Page?
[In reply to]
|
Can't Post
|
|
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
|
|
|  |
 |

chihtsung
User
Sep 18, 2003, 4:07 PM
Post #6 of 6
(3351 views)
Shortcut
|
|
Re: [Dave] how to create "Page Exipired" or Unable to Save Current Page?
[In reply to]
|
Can't Post
|
|
Will try it. Thanks a lot! Chih
|
|
|  |
|