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 be your json object structure. Ie if you returned something like {this:value,means:nothing} you'd be able to do: tapestry.loadJson=function(type, data, http, kwArgs){ alert("Hey what does it mean?: " + data["means"]); } On 2/21/07, Justin Walsh <[EMAIL PROTECTED]> wrote:
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 JSON javascript library. I was under the impression it was included automatically - but I'm getting: JSONstring is not defined http://localhost:8080/prototypes/FirstJSON.html# Line 76 I'm using tapestry 4.1.1 and have the following in my html: <html jwcid="@Shell" title="JSON"> <body jwcid="@Body"> ... ... Thanks Jesse Kuhnert wrote: > Well, I just assumed ~everyone~ must be using 4.1 by now. =p > > On 2/20/07, Matt Brock <[EMAIL PROTECTED]> wrote: >> -- Justin Walsh --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]