ASP interfering with JavaScript

Results 1 to 2 of 2

Thread: ASP interfering with JavaScript

  1. #1
    Join Date
    Dec 1969

    Default ASP interfering with JavaScript

    In all of my htm and asp pages I have the following Javascript:<BR><BR>Last updated: &#060;script language="JavaScript"&#062;&#060;!-- <BR>this.document.write(this.document.lastModified )<BR> // --&#062;&#060;/script&#062;<BR><BR>It works fine for the htm pages showing the last date and time updated. For all the asp pages the script writes "12/31/1969 16:00:00" instead of the last time update. Not a major problem but it is annoying.<BR><BR>Any thoughts or comments?

  2. #2
    Join Date
    Dec 1969

    Default RE: ASP interfering with JavaScript

    the content sent to the browser ISN&#039T actually the ASp file. it&#039s the output of the ASP file. an odd concept to grasp, but true nonetheless. therefore, the lastModified for your ASP script will be null and void, so you get invalid output. For ASp pages, generate the lastModified on the server.<BR><BR>j

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts