Hi,
I cannot get the following code to work in IE8, it works fine in Firefox.
A user clicks a link to add a property to their favourites list. When clicked I use jQuery to load the page into a modal. If they click the same link again the code needs to rerun so it will display "already added". In IE it just displays the original modal window and does not update.
This is very frustrating... can anyone help me solve it?
$(document).ready(function() {
var $loading = $('loading image goes here');
$('.add_fav_property').each(function() {
var $dialog = $('<div></div>')
.append($loading.clone());
var $link = $(this).bind('click', function() {
$dialog
.load($link.attr('href') )
.dialog({
title: $link.attr('title'),
width: 400,
height: 150
});
$link.click(function() {
$dialog.dialog('open');
return false;
});
return false;
});
});
});
jQuery code from http://blog.nemikor.com/2009/08/07/creating-dialogs-on-demand/
Thanks, Chris.