use AjaxCallDecorator and decorate the script that formsubmittingajaxbehavior generates

-Igor


On 9/18/06, Karl M. Davis < [EMAIL PROTECTED]> wrote:
Hello all,
 
I have a form I'd like to submit via AJAX.  The problem is, before the form can be submitted, I need to run a _javascript_ command:
"tinyMCE.triggerSave(true, true);"
 
I've tried adding a normal Button with it's getOnClickScript() overridden to return this.  That works fine-- until I add an AjaxFormSubmitBehavior to the button, which overrides the _javascript_ in getOnClickScript() (the getOnClickScript() code does not appear in the DOM Explorer for the onclick event of the button; only the ajax code is there).
 
I suppose my question can be generalized: how do I add _javascript_ to a button that will be run before any AJAX behaviors are processed?
 
Thanks,
Karl

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to