K
KnighT
myAjax = new AjaxRequest();
//I am trying to use this as an object, but it gives errors when I try
to call myAjax.get() telling me that it is not a public function
so I try direct method acces:
AjaxRequest.url = newLocation;
AjaxRequest.get(
{
'onSuccess':function(req){ document.getElementById("content") =
newLocation; }
}
);
All I want is to load a <div id=content> asynchronously, with the value
of newLocation (which is a web address)
I do not understand how to use this object 'arg' parameter for this
method.
I do not know what the req is as a function parameter
//I am trying to use this as an object, but it gives errors when I try
to call myAjax.get() telling me that it is not a public function
so I try direct method acces:
AjaxRequest.url = newLocation;
AjaxRequest.get(
{
'onSuccess':function(req){ document.getElementById("content") =
newLocation; }
}
);
All I want is to load a <div id=content> asynchronously, with the value
of newLocation (which is a web address)
I do not understand how to use this object 'arg' parameter for this
method.
I do not know what the req is as a function parameter