when you modal is loaded in html do CTRL+U and copy/paste the source here...

You don't need XML() for response.js

Do you really test you modal as a component?

response.js is only working in context of a component.

Richard


On Tue, May 27, 2014 at 2:09 PM, weheh <[email protected]> wrote:

> I forgot to mention that I also tried
>
>         response.js = XML('$("#contact-dialog").modal("hide");')
>
>
> and this threw an internal server error, which surprised me a bit, since
> I've wrapped response.js statements with the XML helper before without
> incident. Here's the traceback:
>
> Traceback
>
> 1.
> 2.
> 3.
> 4.
> 5.
>
> Traceback (most recent call last):
>   File "I:\web2py\gluon\main.py", line 489, in wsgibase
>     urllib2.quote(response.js.replace('\n',''))
> AttributeError: 'XML' object has no attribute 'replace'
>
>
>  --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to