I'm not a javascript professional so I can't solve the following code alone.
I have a delegate function which works fine in IE7. The Problem in IE8 I figuered out is the last jquery-function click(). Does anybody know how I can solve this for IE 8
thank you in advance.
function LightboxDelegate(url,caption)
{
$('#impressionen').attr({
href: url,
title: caption,
alt: caption
});
$('#impressionen').lightBox();
$('#impressionen').click();
};
解决方案
I am not sure whether this helps or not. But try replacing
$('#impressionen').click();
with
$('#impressionen').trigger('click');
See
Trigger an event on every matched
element.