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?
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
Wicket-user mailing list

Reply via email to