This means that any script included in the returned ajax call data
will be evaluated (run) after the target element is updated but the
script itself will not be part of the target.
If the returned data is guessed by jQuery as not being 'html' this
does not happen.
Massimo, can this explain what you have experienced?.

Also note that the 'success' function runs before the 'complete'
function in web2py_ajax_page, I am not sure if you have those two
reversed.

Denes.

On Apr 1, 11:55 am, DenesL <[email protected]> wrote:
> According tohttp://api.jquery.com/jQuery.ajax/
> dataType, one of the settings of jQuery.ajax,
> when set to "html" returns HTML as plain text; included script tags
> are evaluated when inserted in the DOM.
>
> Similar effect is obtained setting it to "script" but with the side
> effect of turning POSTs into GETs.
>
> On Mar 28, 8:28 am, DenesL <[email protected]> wrote:
>
> > This makes an interesting readhttp://ajaxpatterns.org/On-Demand_Javascript

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to