Re: Variable numbers of rows

2007-02-20 Thread Justin Walsh
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] =

Re: Variable numbers of rows

2007-02-20 Thread Justin Walsh
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]

Re: Variable numbers of rows

2007-02-20 Thread Justin Walsh
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": "

Re: Variable numbers of rows

2007-02-20 Thread Jesse Kuhnert
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

Re: Variable numbers of rows

2007-02-20 Thread Justin Walsh
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

Re: [WARNING] Variable numbers of rows

2007-02-20 Thread Jesse Kuhnert
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.

Re: [WARNING] Variable numbers of rows

2007-02-20 Thread Matt Brock
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

Re: [WARNING] Variable numbers of rows

2007-02-20 Thread Jesse Kuhnert
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. ---

Re: [WARNING] Variable numbers of rows

2007-02-20 Thread Matt Brock
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

Re: [WARNING] Variable numbers of rows

2007-02-20 Thread Matt Brock
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

Re: Variable numbers of rows

2007-02-20 Thread James Carman
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

Re: Variable numbers of rows

2007-02-19 Thread Jesse Kuhnert
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

RE: Variable numbers of rows

2007-02-19 Thread Michael Prescott
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

RE: Variable numbers of rows

2007-02-19 Thread Mark Stang
: 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

Variable numbers of rows

2007-02-19 Thread Michael Prescott
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