Hello,
I have been searching for a Visual Basic like Ajax tool for a while and I was pretty happy when I came across the Visual Ajax product. I am currently experimenting with it to see if I want to use it for rewriting some internal apps and for using in future new in-house apps.
After creating a basic form, I have been attempting to figure out how to use the Ajax and IAjax functions to communicate with a server.
From the looks of things, it looks to me like the call to IAjax is supposed to be of the same format as the call to Ajax. If I run the code below that I have attached to a button with Ajax I get the "It Works" default Apache web page back from the server, but if I change Ajax to IAjax, the onFail routine executes and indicates that nothing was returned from the server.
Can anyone tell me what the issue might be here? It is pretty straight forward. I am not even trying to post any variables at this point. I have tried both the "post" and "get" methods and both return the same results.
function(profile,e,src,value){
var hash = "";
linb.Thread.observableRun(function(threadid){
linb.Ajax('http://localhost/index.html',
hash,
function(response){
linb.message(_.unserialize(response));
alert(response);
},
function(msg){
linb.message("onFail: " + msg);
},
threadid,
{method:'GET'}).start();
})
}