Looks good for me! I'll try it out!
Thank you!
2016-07-05 13:57 GMT-03:00 Anthony <[email protected]>:
> mypage = LOAD('mycontroller', 'myfunction', ajax=False)[0][0]
>
> LOAD(..., ajax=False) returns TAG[''](DIV(XML(page), **attr), script), so
> the above indexing extracts the XML(page) element, where "page" is the page
> generated by myfunction. You can return it directly. (Note, TAG[''] just
> allows you to wrap multiple HTML helper objects without any surrounding
> HTML tags -- it has been deprecated in favor of CAT.)
>
> Anthony
>
> On Tuesday, July 5, 2016 at 9:17:52 AM UTC-4, Facundo wrote:
>>
>> I want to make an internal redirect and I read that I can use LOAD, but
>> the problem is that it creates a div.
>>
>> The only option I see is passing the LOAD thru a regex which deletes the
>> div.
>>
>> But, is there a way to make a internal redirect? Or, can I disable de div
>> in the response of the LOAD?
>>
>> Thanks!
>>
> --
> 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 a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/ycvjQfHFmuE/unsubscribe.
> To unsubscribe from this group and all its topics, 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.