JoeP
03-01-2006, 07:49 PM
I have a software program that genrates .htm webpages. It will not allow me to change extension to .asp It creates e.g. 1000 pages named 1.htm,2.htm ... 1000.htm. The "Title" of each page is the word not number. e.g. <title>One</title>. etc.
The software allows me to add includes and scripts in javascript for the header section. Nothing server side. I can not modify the <body> tag.
I would like to send a CDONTS email when the page loads. I understand cdonts and have a Notice.asp page that sends the type of mail I want.
I would like to add something like an OnLoad() Function (Not on Body Tag) that would say submit a form to action page Notice.asp then return to the .htm page.
Say a surfer opens 1.htm the onload script in the header would submit to Notice.asp Notice.asp would send email then redirect to 1.htm. Seamlessly hopefully. Mailto: in javascript is not my preferred answer.
I tried the onload submit form and in notice.asp I caputured the url of the referrer (1.htm) in a session variable and then redirected to that to get back.
Is this the right approach, and how can I avoid getting into a loop on the return to 1.htm???
Any suggestions or leads certainly appreciated. :confused:
TIA
JoeP
The software allows me to add includes and scripts in javascript for the header section. Nothing server side. I can not modify the <body> tag.
I would like to send a CDONTS email when the page loads. I understand cdonts and have a Notice.asp page that sends the type of mail I want.
I would like to add something like an OnLoad() Function (Not on Body Tag) that would say submit a form to action page Notice.asp then return to the .htm page.
Say a surfer opens 1.htm the onload script in the header would submit to Notice.asp Notice.asp would send email then redirect to 1.htm. Seamlessly hopefully. Mailto: in javascript is not my preferred answer.
I tried the onload submit form and in notice.asp I caputured the url of the referrer (1.htm) in a session variable and then redirected to that to get back.
Is this the right approach, and how can I avoid getting into a loop on the return to 1.htm???
Any suggestions or leads certainly appreciated. :confused:
TIA
JoeP