Hello Geeks, is anyone can comment this technique ajax. What's the
better one ?
XMLHttp  or Ajax.Net library ? I found XMLHttp   pretty simpe to use,
ajaxpro.dll cannot be hosted on a server because of security reasons.

//AJAX
var XMLHttp=null
try
{
    XMLHttp = new ActiveXObject("Msxml2.XMLHTTP")
}
catch(e)
{
     try
     {
        XMLHttp = new ActiveXObject("Microsoft.XMLHTTP")
     }
     catch(e)
     {
        //
     }
}

if (XMLHttp == null)
{
    XMLHttp = new XMLHttpRequest()
}
if (XMLHttp == null)
{
    alert("error creating xmlhttp object")
}

XMLHttp.onreadystatechange=GetFiles
XMLHttp.open("GET", "LoadImages_GetFiles.ashx", true)
XMLHttp.send(null)

function GetFiles()
{
    if (XMLHttp.readyState==4 || XMLHttp.readyState=="complete")
    {
        document.getElementById("gbxLinksDiv").innerHTML =
XMLHttp.responseText;
    }
}

Please comment...
THanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info/

Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
-~----------~----~----~----~------~----~------~--~---

Reply via email to