Hi,
The need:
Theres a form with a button/submit. When the link is clicked I need to
intercept
the javascript event, do some additional operations and then finally submit
the form.

Eg:

jQuery(document).ready(function(){
    jQuery("#buttonid").click(function(event){
event.preventDefault();
var wrapper = jQuery(this);
        var href = wrapper.attr("href");
var form = jQuery("#formId");
        if(href.indexOf("#")==-1) {
            //Open new window
            window.open(href);
            form.submit();
        }
    })
});

The problem:
Errors and messages are not displayed after the resolution. Does not work
even if i don't preventDefault.

Everything else works just the way it should except the errors and messages
part.
Am i missing something. Is there a better way to do this?

regards,
John
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to