I have an asp page that carries out validation using javascript.
Once everything is correct I submit the form.
Prior to updating/inserting a record I have to check if other records exist. I do this in the vbscript (<% %>) code in prior to <Head>
I read a record and find that the record is not there, I then need to issue a message to the user with a relevant message.
I have done this before by simply putting an alert between <script language= javascript> </script> tags.
However, this time I need to put some variable values in the message. I have calculated the variable value twice once in Javascript vaidation function called before these reads are performed, and again in vbscript just before trying to issue error message.
Please help, I just cannot see how to get the variable value in my alert box.
Once everything is correct I submit the form.
Prior to updating/inserting a record I have to check if other records exist. I do this in the vbscript (<% %>) code in prior to <Head>
I read a record and find that the record is not there, I then need to issue a message to the user with a relevant message.
I have done this before by simply putting an alert between <script language= javascript> </script> tags.
However, this time I need to put some variable values in the message. I have calculated the variable value twice once in Javascript vaidation function called before these reads are performed, and again in vbscript just before trying to issue error message.
Please help, I just cannot see how to get the variable value in my alert box.