There is a problem with this page:
http://www.pubsaregreat.co.uk/culture?category=18&view=pubs
It is not showing images or the Google map, I've debugged it in the Console and it is showing:
ReferenceError: getMainImage is not defined
I have checked through all of the code and the 'getMainImage' is defined within the component (it's a custom component) and it has previously worked - it is also being loading by the browser.
The getMainImage function is as follows:
function getMainImage(venueId, container){
jQuery('<img id="'+venueId+'_img" src="<?php echo JURI::root().'administrator/components/com_inapub/proxy.php?getphoto=main&venue_id=';?>'+venueId+'" />').load(function(){
jQuery(container +' :first').replaceWith(this);
});
Any ideas where I'm going wrong please?
getMainImage
. I only see where you're calling it. Can you add the code you're using to define the function?