Ok still confused: I've got
Names = {
elements: {},
GUID: 0;
update: function(id, value) {
var realId = parseInt(id.split("_")[1], 10);
Names.elements[realId] = value;
},
add: function() {
Names.GUID++;
Names.elements[Names.GUID] =
Justin Walsh wrote:
D'oh
Just realised that eval is for converting text to object. Sorry.
--
Justin Walsh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Ok - I'm stumbling at the first hurdle here then. I know that this is
JSON question but its in the context of this example.
I'm looking at: http://www.json.org/js.html
and trying to follow their example:
So I have
var myJSONObject = {"bindings": [
{"ircEvent": "PRIVMSG", "method": "
You don't need a json javascript library, that's the whole point of
the protocol. You just eval ' it and you're on your way.
If you want to get the response back correctly eval'd for you and such
you can implement the function:
tapestry.loadJson=function(type, data, http, kwArgs){ }
"data" will
Hi,
Very interested in this topic.
Just a typo:
elements: [],
Also changed:
return (Names.elements).toJSONString();
to
return JSONstring.make(Names.elements);
Not sure if this last change is correct - still having problems with the
JSON js library:
Stupid question - how do you include the JS
t; wrote:
> Sorry, Tapestry 4.0.
>
> -Original Message-
> From: Mark Stang [mailto:[EMAIL PROTECTED]
> Sent: February 19, 2007 4:46 PM
> To: Tapestry users; tapestry-user@jakarta.apache.org
> Subject: RE: Variable numbers of rows
>
> Which version of Tapestry are yo
y-user@jakarta.apache.org
Subject: RE: Variable numbers of rows
Which version of Tapestry are you using?
Mark J. Stang
Senior Engineer/Architect
office: +1 303.468.2900
mobile: +1 303.507.2833
Ping Identity
-Original Message-
From: Michael Prescott [mailto:[EMAIL PROTECTED]
Sent: Mon 2/19/2007 2
Sorry, Tapestry 4.0.
-Original Message-
From: Mark Stang [mailto:[EMAIL PROTECTED]
Sent: February 19, 2007 4:46 PM
To: Tapestry users; tapestry-user@jakarta.apache.org
Subject: RE: Variable numbers of rows
Which version of Tapestry are you using?
Mark J. Stang
Senior Engineer/Architect
Which version of Tapestry are you using?
Mark J. Stang
Senior Engineer/Architect
office: +1 303.468.2900
mobile: +1 303.507.2833
Ping Identity
-Original Message-
From: Michael Prescott [mailto:[EMAIL PROTECTED]
Sent: Mon 2/19/2007 2:29 PM
To: tapestry-user@jakarta.apache.org
Subject: Va