| [reply] |
| [reply] |
Well ... discounting PerlScript
on the client ... you have to validate on the server side. That's pretty much the standard since not too many of us have the luxury of being able to enforce client standards (but my how we try!).
| [reply] |
You can alert them in the next page by outputting an error instead of whatever else you would have put there if everything had gone according to plan.
This may or may not be really obvious, but I think it has to be mentioned in this thread: print is all you really need.
my $error = "Generate your error message here";
print <<EOF;
Content-Type: text/html
Error: $error
EOF
| [reply] [d/l] |
You can validate form fields using perl and display an alert as a html however you cannot do an alert without the use of javascript...(client side) | [reply] |
Hi.
Yes it works. Here is an exerpt of what use for a problem
like yours :
...
&ConfirmBox("OK : Le device " . $o_nom . "a été renommé " .
$n_nom . " dans ManagIP.");
...
...
#
+
# You can use the javascript:alert instead
+
#
+
sub ConfirmBox
{
my ($Message) = @_;
print "<html><body onload=\"javascript:confirm(\'" .
$Message . "\\nCliquer sur OK pour continuer." .
"\')\"></body></html>"
}
Hope it'll help.
--
cmic. Life helps. Perl Too.
| [reply] [d/l] |
I think you're confusing the issue. The OP knows he can print javascript/html, but its still the browser that pops up the alert.
| [reply] |