Hello Pshah,
As mentioned in my subject despite of making iframe hidden and appending it to a div element in my document a new window is opening with the address of the URL and the request parameters appeneded to it when submitting the form.
Also the control is not being transferred to my call back function...
Can you please let me know where it is going wrong.
This is the snippet of code i am using:
Code:
var iframe = document.createElement("IFRAME");
iframe.width="0px";
iframe.height="0px";
iframe.border="0px";
var hiddenCell = document.getElementById(this._hidDivId);
if(hiddenCell){
hiddenCell.appendChild(iframe);
}
var post = new AjxPost(iframe);
var callback = new AjxCallback(this, this._myCallback);
var form = document.getElementById("formId");
post.execute(callback, form);
MyForm.prototype._myCallback =
function () {
alert("_myCallback");
}
Thanks The form definition i am specifying is like this:
Code:
<form id='formId' action='http://localhost:7070/myApp/confirm.jsp'>
...
...
</form>