Ajaj Mail , navigate: function
Hi,
I did try to get running AjaxMail in last chapter and has encountered problem with "navigate" function which is called after onLoad of the index.html page.
The exception
"Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIDOMHTMLIFrameElement.src]"
is thrown every time I get to the line "this.iLoader.src = sURL;"
It also looks to me that the function itself is not completed, according to the comments, function should have three input parameters and has only two, missing one is fnCallback.
Did you have any of you troubles with this function, thanks?
Makes a request to the server.
* @scope protected
* @param sAction The action to perform.
* @param fnCallback The function to call when the request completes.
* @param sId The ID of the message to act on (optional).
*/
navigate: function (sAction, sId) {
if (this.processing) return;
try {
this.setProcessing(true);
var sURL = sAjaxMailNavigateURL + "?folder=" +this.info.folder + "&page=" + this.info.page + "&action=" + sAction;
if (sId) {
sURL += "&id=" + sId;
}
this.iLoader.src = sURL;
} catch (oException) {
this.showNotice("error", oException.message);
}
},
|