In trunk but "no_trap" instead of "external". I am not convinced this
quite works but does not break anything else. Let's give it a try.
Thanks selecta.

On Apr 28, 5:47 am, selecta <[email protected]> wrote:
> ok I modified web2py_ajax.html
>
> function web2py_trap_form(action,target) {
>    jQuery('#'+target+' form').each(function(i){
>       var form=jQuery(this);
>       if (form.attr('class')!='external'){
>         jQuery(':submit,.submit',this).click(function(){
>            jQuery('.flash').hide().html('');
>            web2py_ajax_page('post',action,form.serialize(),target);
>            return false;
>         });
>       }
>    });
>
> }
>
> now forms with class="external" will not be caught
> do you like this solution?
>
> On Apr 28, 12:36 pm, selecta <[email protected]> wrote:
>
> > I have a form in a LOAD element and it should POST to an external URL,
> > however this does not happen since the POST is caught by the
> > web2py_trap_form
>
> > can I prevent that and still have the form in a LOAD element
>
> > I know I could prevent this with an iframe, but this is not really
> > what I want
>
> > tnx for the help

Reply via email to