If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: AJAX = JS and XML, which JS and XML?

A little clarification...AJAX is not used with JavaScript and XML, it IS JavaScript + XML. (Asynchronous JavaScript And XML)

W3School's AJAX section explains its implementation very well. Remember that there are two returns (responseText and responseXML). W3Schools only shows the responseText in its examples. But you can easily change that yourself to work with an XML response.

If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Re: AJAX = JS and XML, which JS and XML?

Originally Posted by code?

Also, I found out that you can preform script actions on your local computer with

Code:

var op = AxtiveXObject.Create("Scripting.FileSystemObject");

Yes, I have mentioned that to you before. But you must remember that ActiveX is restricted to IE only. And even in IE the user must enable the ActiveX object in order for it to function. NEVER rely on ActiveX unless you are securely limiting users to IE only.

Originally Posted by code?

Thanks, and before I type this up, I tried taking a script from a website for basic AJAX, and I found out that my JS only responds to HttpRequest and not the other two that is from.

ActiveXObject.Create("Microsoft.XmlHttp");

Once again, that is because you are using IE. Safari and Firefox use new XMLHttpRequest(), and depending on what patches and additional installs, IE can use Msxml2.XMLHTTP. ALWAYS include the whole 3 try catch statement.

If the post was helpful...Rate it! Remember to use [code] or [php] tags.