I figured this was a simple problem, but have spent way too much time on this issue.
$.saveFunc = function() { saveT(); }; function saveT () { print("save function executing") tinyMCE.activeEditor.save() print("save completed") }; <button id="Save" onclick="saveT()" class="ui-state-default" title="Save, only save the html, doesn't mark the claim ready for publishging.">Save</button> as a pure javascript/html, this works as intended, the button saves/ submits the form. "save1" -> SHtml.ajaxButton( "Fixed", { () => { println("Jenn is on crack."); saveClaimStatus("EDITED") JsRaw("$.saveFunc();").cmd; } }, ("class", "ui-state-default "), ("title", "Save and marks the claim ready for publishing."), ("id", "fixed")), "save2" -> SHtml.ajaxButton( "yes", () => {println("Rhode Island Destroyed") JsRaw("$.saveFunc();").cmd}) I used your example in the other thread about ajaxbutton and javascript, but I can't get the functionality I am looking for. save2 is just a test button to check functionality. It does run the println, but it does not run the saveT function. 13:19:17.725 [29569...@qtp-6966554-8] DEBUG comet_trace.debug:82 - AJAX Request: 182kyt8t8rjdz Map(F527240256671NZ2 -> List(true)) Rhode Island Destroyed 13:19:17.725 [29569...@qtp-6966554-8] DEBUG comet_trace.debug:82 - AJAX Response: 182kyt8t8rjdz InMemoryResponse( $.saveFunc();;, List((Content-Length,15), (Content-Type,text/ javascript; charset=utf-8)), List(), 200) I'm just trying to run a javascript function followed by my saveClaimStatus("EDITED") function. I just think i'm either not going about this correctly or not understanding my problem correctly. Any help would be a godsend. Thanks, Christopher --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---