----- Original Message ----- From: "Andy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, February 21, 2005 10:28 PM
Subject: nested objects and their properties



Hi,

I am using your module to read within perl some parameters set within the JavaScript.

As documented I can first of all bind to an object within perl like this:

my $doc = new Document();
$context->bind_object('document', $doc);

and then set the property within JS:

document.value = "some test string";

and then get at the value of the property when back within perl:

$string = $doc->{'value'};

It all works fine. But is there an easy way to work with nested objects? I.e. if my JS has an object called document.myform.parameter1 with a property called value, how do I bind to that so that I can read within perl the value set by JS like this:
document.myform.parameter1.value = "test string2";



Thanks for the help,

andy






Reply via email to