J
Jimmy
I'm getting the error "AjaxAnywhere error : content-type in not text/
xml :[text/html ..." withe the following dummy-testing code. Why?
Many Thanks,
Jimmy
<!--
----------------------------------------------------------------------------------------------------------------
-->
<aa:zone name="testZoneToRefresh">
<script type="text/javascript">
// <![CDATA[
var testAjaxAnywhere = new AjaxAnywhere();
function testPopup() {
var testPopup = window.open("http://someOtherServer/remoteWebApp",
"testPopupName", "scrollbars=1, dependent=yes, resizable=1");
testPopup.focus();
}
function testFunction(param) {
try {
testAjaxAnywhere = new AjaxAnywhere();
// testAjaxAnywhere.dropPreviousRequest();
testAjaxAnywhere.onBeforeResponseProcessing = function()
{ someOtherFunction(param); };
testAjaxAnywhere.handleException = function(type, details) {
alert("Error: type [" + type + "], details [" + details + "]!");
};
testAjaxAnywhere.handleHttpErrorCode = function(code) {
alert("Error: code [" + code + "]!");
};
testAjaxAnywhere.getAJAX("http://localhost/localWebApp",
"testZoneToRefresh");
} catch(err) {
alert("err = " + err);
}
function someOtherFunction(param) {
alert("param = " + param);
}
// ]]>
</script>
<select id="testSelectId'
onchange="testFunction(this.options[this.selectedIndex].value);
testPopup(); testFunction(this.options[this.selectedIndex].value);">
<option value="select" selected="selected">select</option>
<option value="1">one</option>
<option value="2">two</option>
</select>
</aa:zone>
xml :[text/html ..." withe the following dummy-testing code. Why?
Many Thanks,
Jimmy
<!--
----------------------------------------------------------------------------------------------------------------
-->
<aa:zone name="testZoneToRefresh">
<script type="text/javascript">
// <![CDATA[
var testAjaxAnywhere = new AjaxAnywhere();
function testPopup() {
var testPopup = window.open("http://someOtherServer/remoteWebApp",
"testPopupName", "scrollbars=1, dependent=yes, resizable=1");
testPopup.focus();
}
function testFunction(param) {
try {
testAjaxAnywhere = new AjaxAnywhere();
// testAjaxAnywhere.dropPreviousRequest();
testAjaxAnywhere.onBeforeResponseProcessing = function()
{ someOtherFunction(param); };
testAjaxAnywhere.handleException = function(type, details) {
alert("Error: type [" + type + "], details [" + details + "]!");
};
testAjaxAnywhere.handleHttpErrorCode = function(code) {
alert("Error: code [" + code + "]!");
};
testAjaxAnywhere.getAJAX("http://localhost/localWebApp",
"testZoneToRefresh");
} catch(err) {
alert("err = " + err);
}
function someOtherFunction(param) {
alert("param = " + param);
}
// ]]>
</script>
<select id="testSelectId'
onchange="testFunction(this.options[this.selectedIndex].value);
testPopup(); testFunction(this.options[this.selectedIndex].value);">
<option value="select" selected="selected">select</option>
<option value="1">one</option>
<option value="2">two</option>
</select>
</aa:zone>