CraigD has asked for the wisdom of the Perl Monks concerning the following question:
I am new to PerlScript and am having difficulties figuring out how to access objects that are on the web page, but not part of a form submission -- for instance, a div or other "static" tag. What I am trying to do is change the color of a label when the form submittal fails validation.
I can use this workaround, but it requires modifying the style on an input box to look like a text label:
$window->document->MyForm->StatusText->style->{'color'} = "#ff0000";Is there a way to simply access a <DIV> object directly? These snippets both blow up:
$window->document->MyForm->StatusDIV->style->{'color'} = "#ff0000"; $window->document->StatusDIV->style->{'color'} = "#ff0000";
Thanks!
|
|---|