richiemartin
Technical User
Hi
I have created a questionnaire regarding my website and have used the following code to send the information:
myForm = this;
submitButtonListener = new Object();
submitButtonListener.click = function() {
var email = "GISFeedback@hotmail.com";
var subject = escape("Questionnaire Feedback");
// The following code is an example of how the radio buttons are set up
var selectedRadioButton = Quality.selection;
var radioLabel = selectedRadioButton.label;
//The user can also add comments at the end of the questionnaire
var comments = Input.text
Input.text = ""
var body = ("Q1:"+radioLabel+Comments"+comments);
getURL("mailto:"+email+"?subject="+subject+"&body="+body);
};
submitButton.addEventListener("click", submitButtonListener);
The problem occurs when the user selects the submit button. On some computers the user is taken to their default email programme, such as Hotmail. In other cases Outlook automatically loads up. In both cases an email is created and the information from the questionnaire is displayed. The user then has to press send to submit the data. However, on some computers Outlook does not load up and the user is not taken to their default email programme. Therefore not being able to send the information. Preferably, I would like the user just to select the button and the data is sent without them having to go into any email programme…is this possible? I have read a few of the responses from previous inquires of sending data in flash and have seen information on Cold Fusion forms and asp forms but not understanding if I need them for this task?
Thank you for your time and help
Rich
I have created a questionnaire regarding my website and have used the following code to send the information:
myForm = this;
submitButtonListener = new Object();
submitButtonListener.click = function() {
var email = "GISFeedback@hotmail.com";
var subject = escape("Questionnaire Feedback");
// The following code is an example of how the radio buttons are set up
var selectedRadioButton = Quality.selection;
var radioLabel = selectedRadioButton.label;
//The user can also add comments at the end of the questionnaire
var comments = Input.text
Input.text = ""
var body = ("Q1:"+radioLabel+Comments"+comments);
getURL("mailto:"+email+"?subject="+subject+"&body="+body);
};
submitButton.addEventListener("click", submitButtonListener);
The problem occurs when the user selects the submit button. On some computers the user is taken to their default email programme, such as Hotmail. In other cases Outlook automatically loads up. In both cases an email is created and the information from the questionnaire is displayed. The user then has to press send to submit the data. However, on some computers Outlook does not load up and the user is not taken to their default email programme. Therefore not being able to send the information. Preferably, I would like the user just to select the button and the data is sent without them having to go into any email programme…is this possible? I have read a few of the responses from previous inquires of sending data in flash and have seen information on Cold Fusion forms and asp forms but not understanding if I need them for this task?
Thank you for your time and help
Rich