IE6 crash with Dialog and load option
Hi,
I'm currently working on a site that uses jquery-ui to present popup with flexible content based on the URL on the link clicked. The JS code for this is:
- $(this).bind('click', function() {
- layer_href = $(this).attr("href");
- layer_title = $(this).attr("title");
- dialogOptions = {
- width: 875,
- position:["center",66],
- modal: true,
- bgiframe: true,
- title: layer_title,
- closeText: "Venster sluiten x",
- autoOpen: false,
- resizable: true,
- open: function(){
- $dialog.load(layer_href, function(){
- Cufon.replace('.ui-dialog-title', {fontFamily: 'EtelkaMedium'});
- } );
- },
- close: function(ev, ui) {
- $(this).remove();
- }
- };
- $dialog.dialog(dialogOptions)
- $dialog.dialog('open');
- return false;
- });
Although we do not need to make it work in IE6, I'm trying to find a solution why the $dialog.load keeps up crashing Internet Explorer 6