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
summary.html
>
Ahem... 4.1
The OP said he was using Tap 4. :)
--
View this message in context:
http://www.nabble.com/Variable-numbers-of-rows-tf3255330.html#a9075300
Sent from the Tapestry - User mailing list archive at Nabble.com.
Jessek wrote:
>
> Don't forget that json is also included ~in~
> tapestry...http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/json/package-summary.html
>
Ahem... 4.1
The OP said he was using Tap 4. :)
--
View this message in context:
http://www.nabble.com
ef ="#" onclick="newName();">Add another name.< / a>
--
View this message in context:
http://www.nabble.com/Variable-numbers-of-rows-tf3255330.html#a9075237
Sent from the Tapestry - User mailing list archive at Nabble.com.
---
Er, that "Add another name" got link-ified! It should read:
< a href ="#" onclick="newName();">Add another name.< / a>
--
View this message in context:
http://www.nabble.com/Variable-numbers-of-rows-tf3255330.html#a9075237
Sent from the Tapestry
u
submit). The JSON code is (I believe) straight from the link I gave above.
The JavaScript JSON methods are very, very simple (naturally) and can be
downloaded http://www.json.org/json.js here .
--
View this message in context:
http://www.nabble.co
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
: Variable numbers of rows
We've got a couple of forms where users can edit a list of items, and
also add new items to the bottom. We're currently doing this by sending
preset number of hidden rows, revealed as necessary by Javascript -
although this is a little lame.
It seems that compo
We've got a couple of forms where users can edit a list of items, and
also add new items to the bottom. We're currently doing this by sending
preset number of hidden rows, revealed as necessary by Javascript -
although this is a little lame.
It seems that components like @For are designed to han
15 matches
Mail list logo