Example question submit handler until BOSH backend integrated

Wed, 10 Mar 2010 11:33:55 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 10 Mar 2010 11:33:55 +0000
changeset 9
6677316d8834
parent 8
09d33857ca04
child 10
7c8fb429c2c5

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()

mercurial