[OpenLayers-Users] Passing parameters to ajax request callback method

Zer zer_matt at hotmail.com
Mon Mar 16 13:49:57 EDT 2009


Hi list,

Is there a way to pass a parameter to the callback method that is called in
an ajax request?

Something like this:

myRequest = OpenLayers.Request.GET(
		{
			url :myUrl,
			callback :myCallback(myParameter)
		});

and then:

function myCallback(response, myParameter) {
....


Thanks,


-Z

-- 
View this message in context: http://n2.nabble.com/Passing-parameters-to-ajax-request-callback-method-tp2487503p2487503.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list