Re: t5: calling action link from a javascript

2009-10-12 Thread Toby Hobson
onUpdateItem() { >> >> return new TextStreamResponse("text/html", "ok"); >> >> } >> >> >> >> in javascript: >> >> >> >> jQuery.post(updateItem(), { item_no : ino }, function(data)

Re: t5: calling action link from a javascript

2009-10-12 Thread Toby Hobson
esources.createActionLink("updateItem", false).toURI() > >> } > >> > >> > >> Object onUpdateItem() { > >> return new TextStreamResponse("text/html", "ok"); > >> } > >> > >> in javascript: >

Re: t5: calling action link from a javascript

2009-10-11 Thread Angelo Chen
gt;> in java: >> >> public String getUpdateItem() { >>return resources.createActionLink("updateItem", false).toURI() >> } >> >> >> Object onUpdateItem() { >> return new TextStreamResponse("text/html", "ok"); >&

Re: t5: calling action link from a javascript

2009-10-11 Thread Toby Hobson
quot;ok"); > } > > in javascript: > > jQuery.post(updateItem(), { item_no : ino }, function(data){ > alert("Data Loaded: " + data); > }); > -- > View this message in context: > http://www.nabble.com/t5%3A-calling-action-link-from-a-javascript-tp2584

Re: calling action link from a javascript

2009-10-11 Thread DH
updateItem()? I think should be ${updateItem()}. DH http://www.gaonline.com.cn - Original Message - From: "Angelo Chen" To: Sent: Monday, October 12, 2009 9:40 AM Subject: t5: calling action link from a javascript > > Hi, > > I'm trying to call an a

t5: calling action link from a javascript

2009-10-11 Thread Angelo Chen
t;Data Loaded: " + data); }); -- View this message in context: http://www.nabble.com/t5%3A-calling-action-link-from-a-javascript-tp25849523p25849523.html Sent from the Tapestry - User mailing list archive at Nabble.com. --