Subject: | in_place_edit generates javascript error |
Using Perl 5.8.7
see attachment for code that produces this error.
#!/usr/bin/perl
use HTML::Prototype;
print "Content-type: text/html\n\n";
my $p = HTML::Prototype->new();
my $js = $p->define_javascript_functions;
my $editor = $p->in_place_editor
('myUpdate',{
url => '/'});
print <<END;
<html>
<head>
$js
</head>
<body>
$editor
<span id="myUpdate">
Click here to enter the editor
</span>
</body>
</html>
END
__END__
When using Mozilla Firefox 1.07
I get the following in the Javascript Console:
Error: this.element has no properties
Source File: http://mod.localdomain/cgi-bin/in_place_edit_bug.html Line: 2249
and the text in the myUpdate span:
Click here to enter the editor
is not highlighted when the mouse hovers over it. In other words, the
in place editor cannot be activated.