Wed, 10 Mar 2010 11:33:55 +0000
Example question submit handler until BOSH backend integrated
js/supportchat.js | file | annotate | diff | comparison | revisions |
--- a/js/supportchat.js Wed Mar 10 11:27:46 2010 +0000 +++ b/js/supportchat.js Wed Mar 10 11:33:55 2010 +0000 @@ -1,6 +1,10 @@ function on_question_submit() { - alert("Submitted!"); + var question_type = $("#support-question-type").val(); + var question_submitter = $("#support-question-name").val(); + var question_text = $("#support-question-text").val(); + + alert(question_name + " submitted a " + question_type + " question:\n " + question_text); } function display_ui()