[OpenLayers-Users] General Question to understand OL-code more
"from the base on"
Alexandre Dube
adube at mapgears.com
Wed Feb 18 09:28:50 EST 2009
Hi Kai,
What loadURL does is an AJAX request so the object your setHTML
function receive is an AJAX response and responseText is one of its
properties.
You can learn more at : http://www.w3schools.com/dom/dom_http.asp
Learn more with one of the best javascript teacher : firebug. If
you're not using it, I suggest you to do so.
Hope this helps,
Alexandre
Kai Behncke wrote:
> Dear list,
>
> I have got a question to understand better OpenLayers-code.
>
> Let`s take "getFeatureInfo.html" (of the examples)
>
> For example it`s written:
>
>
> OpenLayers.loadURL(url, '', this, setHTML);
> function setHTML(response) {
> OpenLayers.Util.getElement('nodeList').innerHTML = response.responseText;
> }
>
> it works well, but to understand that code "more from the base on" I tried to use the Developer Documentation.
>
> The loadURL-function is well explained, but if look for the "response"-Value in the function "setHTML"
> I don`t seem to find the right thing.
>
> I mean: Where/How can I find out that the parameter "response.responseText" exists (and what it exactly means)?
>
> Might it be that some parameters are not documented or have I overseen anything?
>
>
> Thank you very much, Kai
>
--
Alexandre Dubé
Mapgears
www.mapgears.com
More information about the Users
mailing list