[thelist] XMLHttp question

Pavel Dudrenov dudrenov at gmail.com
Thu Apr 28 21:36:34 CDT 2005


Dude,

About your slick as shiat thingy - It's nothing. oXML is just an
argument that one of the functions takes. This one to be exact:
var completedCustomRequest = function (oXML) {}; 

Don't waste your time looking at your PHP documentation for oXML. The
guy that wrote that could have just as easily called that argument
"theChicken". Would have worked anyway.

In your case oXML is the object that you get back from your request
which is why he probably called it like that: o(for object) + XML
(oXML). Now I myself would have named it "theChicken", or perhaps
"bork" but that's just me.

All the best,
Pavel

On 4/28/05, Jonathan Dillon <jdillon at boehm-ritter.com> wrote:
> I've been hacking on this stuff for the last hour or so (it's slick as
> shiat).  But I'm wondering, what is oXML?  Is it some kind of build in DOM
> thing for XML docs or what?
> 
> Here is an example where it's used:
> 
> http://www.activewidgets.com/javascript.forum.4382.0/using-response-method-f
> or-loading.html
> 
> //Example function to extract extra data
> function customTableRequest(url,data) {
> var myGridData = ""
> //function run on completion (readyState=4) of xmlHttprequest
> var completedCustomRequest = function (oXML) {
> var splitdata = (oXML.responsetext).split("|splitDelimiter|");
> if (splitdata.length == 2){
> processPaging(splitdata[0]);
> myGridData = splitdata[1];
> }
> regularCursor();
> oXML = null;
> };
> doXmlHttpLoad(url,data,completedCustomRequest);
> return myGridData;
> }
> 
> I'm also seeing it in the js functions I'm working with:
> 
> function (oXML) { alert(oXML.responseText); }
> 
> But I really don't understand.  WHAT is it?  It's not in any of my php
> books, and I can find nothing in google besides code references.
> 
> Jonathan Dillon-Hayes
> ---
> Email: jonathan at boehm-ritter.com
> http://www.Boehm-Ritter.com/
> 
> --
> 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
> 
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>


More information about the thelist mailing list