Adding specific class for loading content using load() not working in Chrome/Safari.
Hi! I'm using a function to load a page into a div. When I add the class of the element I want to show (.contentpaneopen) Chrome and Safari show no content. It works OK in IE and FF. When I ommit the class it works on all browsers.
- function loadContent(elementSelector, sourceUrl) {
- //Works in Chrome en Safari:
- $(""+elementSelector+"").load(""+sourceUrl+"");
- //Does not work in in Chrome / Safari (Windows):
- //$(""+elementSelector+"").load(""+sourceUrl+" .contentpaneopen");
- }
Does anyone have a clue why this happens? Is it a bug?
I use this code to show a Joomla Article in a div on a webpage.
Thanks!