aztech4mac
08-12-2003, 01:33 PM
I have a CGI script that I need user confirmation before calling. I use a jave script to ask user to verify before executing the CGI. How can I call the CGI from within my java script. Here's my script.
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function drawAlert () {
var agree=confirm("Are you sure you want to clear Guest Book Log. OK?");
if (agree)
<-- CALL CGI HERE -->
else
javascript:rld();
}
// End -->
</script>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function drawAlert () {
var agree=confirm("Are you sure you want to clear Guest Book Log. OK?");
if (agree)
<-- CALL CGI HERE -->
else
javascript:rld();
}
// End -->
</script>