Man, this is screwed up :(
The code that shows the "AJAX loading" image, is this:
function getData2(dataSource, divID, ID) {
alert("HERE NEW 1");
go2ByScroll("anch" + ID);
jQuery('#' +divID).html("<img src='/links/static/ajax-loader.gif'>");
var the_url = dataSource + ";divID=" + divID;
jQuery.ajax({
url: the_url,
success: function(data){
document.getElementById(divID).innerHTML = data;
}
});
}
When you click the "Contact Propertie" button, it must be calling that function - as the image gets shown, using:
jQuery('#' +divID).html("<img src='/links/static/ajax-loader.gif'>");
I've verified that its indeed using this, by changing it to:
jQuery('#' +divID).html("TEST <img src='/links/static/ajax-loader.gif'>");
..and sure enough, when I click the Contact button, it comes up with "TEST" and then the "ajax loading" image.
But what I don't get, is why oh why its neglecting to run other parts of the code. If I change that function to just:
function getData2(dataSource, divID, ID) {
alert("HERE NEW 1");
jQuery('#' +divID).html("<img src='/links/static/ajax-loader.gif'>");
}
..again, the image is shown - but no "alert" comes up. I'm really pulling my hair out on this one :( Any suggestions are much appreciated!
Cheers
Andy
--
Andy Newby
an...@ultranerds.co.uk