Re: AW: AW: How to send additional data with an ajax response

2015-10-30 Thread Thiago H de Paula Figueiredo
On Fri, 30 Oct 2015 07:48:11 -0200, Poggenpohl, Daniel wrote: Hello again, Hi! ah, of course I forgot to mention that our code should run in IE9, sadly. (I wouldn't prefer that). And IE9 doesn't seem to support data attributes. Data attributes are attributes like any other. IE9's Jav

Re: AW: AW: How to send additional data with an ajax response

2015-10-30 Thread Thiago H de Paula Figueiredo
On Fri, 30 Oct 2015 07:45:18 -0200, Poggenpohl, Daniel wrote: Hello, Hi! sorry, when I wrote the question I had totally forgotten about your post. So you mean the HTML5 method of having, for example, a div element like this: ? Yep! I'd just add the attributes to some existing HTML el

AW: AW: How to send additional data with an ajax response

2015-10-30 Thread Poggenpohl, Daniel
Gesendet: Freitag, 30. Oktober 2015 10:45 An: Tapestry users Betreff: AW: AW: How to send additional data with an ajax response Hello, sorry, when I wrote the question I had totally forgotten about your post. So you mean the HTML5 method of having, for example, a div element like this: ? If

AW: AW: How to send additional data with an ajax response

2015-10-30 Thread Poggenpohl, Daniel
additional data with an ajax response On Thu, 29 Oct 2015 05:59:30 -0200, Poggenpohl, Daniel wrote: > Hello, > > do you have example code returning not only the body, but also > additional data, for me? Have you even considered my suggestion of using data tags inside the rendered HT

Re: AW: How to send additional data with an ajax response

2015-10-29 Thread Chris Poulsen
I haven't checked out all of the callback types, but we often use the javascript callback to do extra stuff on the calling page. Something like: ajaxResponseRenderer.addCallback( new JavaScriptCallback() { @Override public void run( JavaScriptSupport javascriptSupport ) { java

Re: AW: How to send additional data with an ajax response

2015-10-29 Thread Thiago H de Paula Figueiredo
On Thu, 29 Oct 2015 05:59:30 -0200, Poggenpohl, Daniel wrote: Hello, do you have example code returning not only the body, but also additional data, for me? Have you even considered my suggestion of using data tags inside the rendered HTML to provide the data? -- Thiago H. de Paula F

AW: How to send additional data with an ajax response

2015-10-29 Thread Poggenpohl, Daniel
data with an ajax response Ajax response renderer may also be a viable solution for returning multiple things. I tend to prefer that over returning getBody() for exactly that reason. -- Chris On Wed, Oct 28, 2015 at 2:05 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: &g

Re: How to send additional data with an ajax response

2015-10-28 Thread Chris Poulsen
Ajax response renderer may also be a viable solution for returning multiple things. I tend to prefer that over returning getBody() for exactly that reason. -- Chris On Wed, Oct 28, 2015 at 2:05 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, 28 Oct 2015 08:16:21 -0200,

Re: How to send additional data with an ajax response

2015-10-28 Thread Thiago H de Paula Figueiredo
On Wed, 28 Oct 2015 08:16:21 -0200, Poggenpohl, Daniel wrote: Hello everyone, Hi! we have a problem where we update some page with an ajax request, but need additional data to be sent with the ajax response. This additional data should then be consumed on the client side by an ajaxComp

How to send additional data with an ajax response

2015-10-28 Thread Poggenpohl, Daniel
Hello everyone, we have a problem where we update some page with an ajax request, but need additional data to be sent with the ajax response. This additional data should then be consumed on the client side by an ajaxComplete event. Does anyone know how a Tapestry event method can return more th