Re: dynamically changing event link context on client side using js

2011-03-29 Thread LLTYK
log('onChange'); var v = URLEncoder.encode(this.theSelect.value); log(v); var url = this.url.replace(this.urlReplace,v); var _this = this; Tapestry.ajaxRequest(url); } }); -- View this message i

Re: dynamically changing event link context on client side using js

2011-03-29 Thread Joel Halbert
Hi Thiago, Using this approach, if I was to invoke this ajax URL I'd have to process the zone response myself manually. What I'd like to be able to do is update the context or params on an event link so that when the clicks on it the response and corresponding zone update is automatically taken c

Re: dynamically changing event link context on client side using js

2011-03-28 Thread Thiago H. de Paula Figueiredo
On Mon, 28 Mar 2011 19:10:00 -0300, Joel Halbert wrote: I need a way of submitting the dynamic content back to the server as part of an ajax request I'm not clear how I would be able to do this in the manner you suggest. Define an event name, @Inject ComponentResources and use its createEve

Re: dynamically changing event link context on client side using js

2011-03-28 Thread Joel Halbert
Hi Mark, I need a way of submitting the dynamic content back to the server as part of an ajax request I'm not clear how I would be able to do this in the manner you suggest. - Joel On Mon, 2011-03-28 at 15:43 -0500, Mark wrote: > Normally the context is going to be used to figure out the state

Re: dynamically changing event link context on client side using js

2011-03-28 Thread Mark
Normally the context is going to be used to figure out the state when the link was rendered. This is particularly useful in a loop were you need to figure out which eventlink was actually clicked. It sounds like you want to make the eventlink do different things based on some type of ajax event o

dynamically changing event link context on client side using js

2011-03-28 Thread Joel Halbert
Hi, I have a typical ajax event link e.g. I want to be able to update the context on the clientside using javascript, dynamically. (or alternatively attach a request parameter and have this submitted with the link). What's the easiest way to accomplish this? I can modify the link to change t