Active Server Pages

Moderators: None (Apply to moderate this forum)
Number of threads: 1763
Number of posts: 4498

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Re: Date last modified Posted by cegmar on 4 Feb 2004 at 7:59 PM
Thanks for your help. I copied the lines that you recommended, but unfortunately it provides me with a script error on the page.


: This message was edited by akdruid at 2004-2-3 19:2:59

: This message was edited by akdruid at 2004-2-3 18:58:39

: The problem is in these lines:
: <% IF dtmLastModified >= newCookie THEN %> 
:  <script language="JavaScript" type="text/javascript"> 
:  <!-- 
:  alert("This page has been updated since your last visit."); 
:  //--> 
:  </script> 
: <% END IF %>

:
: You see you can't combine ASP-VBscript with javascript! So what happens is, the javascript code runs every time, without being inside the IF statement!
:
: Since IIS and ASP doesn't support the MsgBox function you should change these lines to:
:
<%IF dtmLastModified >= newCookie THEN %>
: <script language="VBScript" type="text/vbscript">
: msgbox ("This page has been updated since your last visit.")
: </script>
: <%END IF %>

:
: At least that worked for me... (I have tested your code on my PC and works perefectly )
:
: akdruid
: cu around
:
: P.S.: If it doesn't work post again and we'll what's wrong
:
: Edit: I forgot to mention that this code works only if the .asp file is modified, not the data that it may hold (e.g from a database)! So if you add new data in the database from which your .asp file and code gets to post, then no message (or pop-up window) will apear...
:
:
:
:

Thread Tree
cegmar Date last modified on 3 Feb 2004 at 9:17 AM
akdruid Re: Date last modified on 3 Feb 2004 at 6:56 PM
cegmar Re: Date last modified on 4 Feb 2004 at 7:59 PM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.