[OpenLayers-Users] loadurl and ajax request

Jtrsmith jtrsmith at gmail.com
Sun Mar 7 09:43:06 EST 2010


i am loading a url from the code below into a div layer next to my map,
the load_info function is called from a button in a popup.

function load_info(feature){
     var url = "info.php";
     var params =  '?location='+ location_id;
     OpenLayers.loadURL(url, params, this, setHTML);
}
function setHTML(response) {
     OpenLayers.Util.getElement('locationInfo').innerHTML =
response.responseText
}

the problem is that the info.php page has a form that i would like to post
using jquery and ajax without reloading the entire page. the form works if i
access it directly but it will not call the ajax request if it is loaded
into the div layer. anyone have any ideas?
-- 
View this message in context: http://n2.nabble.com/loadurl-and-ajax-request-tp4690511p4690511.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list