- This topic has 2 replies, 2 voices, and was last updated 13 years, 7 months ago by gmagill.
-
AuthorPosts
-
gmagillMemberI have a simple button in a form and want to place a break-point inside the .js code that gets executed when the button is pressed to submit the form:
/**
* Perform custom actions upon return from form submission.
*
* @param {boolean} isSuccess true if all OK; otherwise false
* @param {Object} data results of form processing; error message if isSuccess == false
* @return {boolean} true if OK; otherwise false
*/
phoneui.postSubmitForm_m1_Call_Me = function(isSuccess, data) {
// add custom postubmission processing code here,
// e.g., parse and process results & update UI controls with data as needed
// return false to terminate form processing
var AParty = data.AParty.text;
var BParty = data.BParty.text;var URL = “http://myserver.com/cgi-bin/ons-de.cgi?A-Party=” + AParty + “&B-Party=” + BParty + “&Password=mypassword”;
var result = true;
if (isSuccess) {
// process data
result = true;
} else {
// submit failed
// data = error msg
result = false;
}
return result;
}/**
* Notification that the UI is about to transition to a new page.
* Perform custom prepage-transition logic here.
* @param {String} currentPageId
* @param {String} targetPageId
* @returns {boolean} true to continue transtion; false to halt transition
*/
phoneui.prePageTransition = function(currentPageId,targetPageId) {
// add custom pre-transition code here
// return false to terminate transition
return true;
}I can set a break point at the function call phoneui.postSubmitForm_m1_Call_Me which stops correctly in the debugger, however, pressing the step-into button results in the function being sprung over and the debugger stops at the function phoneui.prePageTransition.
Similarly, setting break points within the phoneui.postSubmitForm_m1_Call_Me function results in them simply being ignored.
I also tried the step over button incase there was a mix up in naming conventions on the UI but that did not help either. No matter what I do, I can not step into the funciton to debug it.
support-michaelKeymaster@gmagill
I’m researching this now to see what’s up! My 1st thought is there is an error in the function that is causing the step-into action to fail for some reason – just a guess. Have you inspected the isSuccess and data parameters to ensure that they are returning successful values?
gmagillMemberThey are not appearing in the debugger at all as values that I could check.
-
AuthorPosts