I have that url:
<a onClick="showDialog({$product['id']});">More Info...</a>
In Addition I have:
function showDialog(productID)
{
$( "#dialog-modal_"+productID ).html( "<iframe src='index.php?act=showProduct&id="+productID+"' width='100%' height='100%' frameborder='0' scrolling='no'></iframe>" );
$( "#dialog-modal_"+productID ).dialog({
width: 810,
height: 590,
resizable: false,
modal: true,
open: function(event, ui)
{
event.preventDefault();
}
});
container
.dialog('option', 'title', 'Your Title')
.dialog('option', 'buttons', {
Close: function() {
$(this).dialog('close');
}
})
.dialog('open');
var stateObj = { foo: "bar" };
window.history.pushState(stateObj, "page 2", "{$info['siteurl']}/index.html#product-"+productID);
}
if I open it once it's working, but if I try once again, it is not opening. I need to find a way to "clear" the last dialog of the current ID. for different dialogs its working, but only once.