I have made a jQuery/javascript that is loading a page into a div when clicking on a picture. It works for IE, Firefox, Chrome but NOT Opera.. I can't figure out why it isn't working..
Please take a look on this page and click on a product to see how it loads a popup window. http://www.dev.dressmind.com
Here is the script for the click:
function qp(id) {
$.ajax({
method: "get",
url: "QuickProduct.aspx",
data: "id=" + id,
//beforeSend: function() { $('#main').hide('slow').fadeOut(); },
complete: function() {
$('#product-area').show('200').fadeIn();
$("#product-area-overlay").show();
$(".productbox-hover").hide();
},
success: function(result) {
$('#product-area').html(result);
}
});
}
Then I have a link that look like this:
<a href="#" id="123123" onClick="qp(123123);return false;"><div></div</a>
SO please, can someone have a quick look and help me solve this problem.
Solved it
I solved it by moving the onclick-event to the div inside the instead of having it on the link.
< a href="#" id="123123">
< div **onClick="qp(123123);return false;"**> < /div>
< /a>