anandknr
Member
Hi All,
I was a php developer and now migrated to openedge.
I have query regarding making the Ajax working.
I have a main file and ajax file,anandtest.w(means the code working when making Ajax call and returning the html back) .
I have pasted below a common ajax function which i used with PHP.
function ajaxFunction_sup(div){
var param;
param = "anandtest.w";
var ajaxRequest; // The variable that makes Ajax possible!
try{
// Opera 8.0+, Firefox, Safari
ajaxRequest = new XMLHttpRequest();
} catch (e){
// Internet Explorer Browsers
try{
ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try{
ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e){
// Something went wrong
alert("Your browser broke!");
return false;
}
}
}
// Create a function that will receive data sent from the server
ajaxRequest.onreadystatechange = function(){
if(ajaxRequest.readyState == 4){
document.getElementById(div).innerHTML= ajaxRequest.responseText;
}
}
ajaxRequest.open("GET",param, true);
ajaxRequest.send(null);
}
The content of anandtest.w is {&OUT} "<b> ajax worked. </b>" .
but when calling ajax function i am getting the error below
" WebSpeed error from messenger process (6019)
WebSpeed Agent Error: Agent did not return an HTML page (6383)"
What could be the issue?
I was a php developer and now migrated to openedge.
I have query regarding making the Ajax working.
I have a main file and ajax file,anandtest.w(means the code working when making Ajax call and returning the html back) .
I have pasted below a common ajax function which i used with PHP.
function ajaxFunction_sup(div){
var param;
param = "anandtest.w";
var ajaxRequest; // The variable that makes Ajax possible!
try{
// Opera 8.0+, Firefox, Safari
ajaxRequest = new XMLHttpRequest();
} catch (e){
// Internet Explorer Browsers
try{
ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try{
ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e){
// Something went wrong
alert("Your browser broke!");
return false;
}
}
}
// Create a function that will receive data sent from the server
ajaxRequest.onreadystatechange = function(){
if(ajaxRequest.readyState == 4){
document.getElementById(div).innerHTML= ajaxRequest.responseText;
}
}
ajaxRequest.open("GET",param, true);
ajaxRequest.send(null);
}
The content of anandtest.w is {&OUT} "<b> ajax worked. </b>" .
but when calling ajax function i am getting the error below
" WebSpeed error from messenger process (6019)
WebSpeed Agent Error: Agent did not return an HTML page (6383)"
What could be the issue?