Many thanks Anthony, it just works.

Greetings.

El 06/03/17 a las 20:55, Anthony escribió:
|
<formclass="no_trap"action="{{=URL(c="controller", f="function")}}"method="get">
|

Then load it as an Ajax component and the form will not be trapped.

Anthony

On Friday, March 3, 2017 at 3:38:55 PM UTC-5, Carlos Cesar Caballero wrote:

    Hi, I am using a component who has a form like this:

    <form action="{{=URL(c="controller", f="function")}}" method="get">
         <select name="value">
             <option value="1">Option 1</option>
             <option value="2">Option 2</option>
         </select>
         <button type="submit">Go</button>
    </form>

    As you can see is a simple form who does a get request to another
    controller (it could be easily done with two links but the
    requirement
    needs a form)

    If I call the component using "ajax=False" it works without problems,
    but it needs to be reloaded by actions occurring in others
    components in
    the page and for that it needs to be called with "ajax=True" (if I
    use
    "ajax=False" i can't call the component javascript reload() function)
    the problem is that "ajax=True" traps the call inside the div and
    ignores the "ajax_trap=False" option.

    Is there a way to load via ajax a component with a form but don't
    trap
    it inside the div?

    Greetings.

--
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 web2py+unsubscr...@googlegroups.com <mailto:web2py+unsubscr...@googlegroups.com>. For more options, visit *MailScanner ha detectado un intento de fraude en la siguiente p�gina web "groups.google.com". /No/ conf�e en esta p�gina web:* https://groups.google.com/d/optout <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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to