Or use it only if available:

var overlay = $("<div/>");
if ($.fn.bgiframe)
  overlay.bgiframe();

That works well with conditional includes.

Jörn

On Fri, Jan 23, 2009 at 9:06 PM, Kelvin Luck <kel...@kelvinluck.com> wrote:
>
> On Fri, 23 Jan 2009 11:04:34 -0800, Brandon Aaron
> <brandon.aa...@gmail.com> wrote:
>
>>
>> This is something I need to solve soon to upgrade the bgIframe plugin!
>> This
>> is a _very_ visual issue and I haven't found a good way to detect this
>> particular issue. I think I may end up just checking to see if the
>> browser
>> supports the filter property. Mainly b/c bgiframe makes heavy use of
>> filter
>> with default settings. This would make the iframe fix happen in IE7 as
>> well
>> but that seems acceptable.
>>
>
> My favoured approach is including the bgIframe plugin using conditional
> compilaton in IE6... The only problem is that you then need to define a
> fake bgIframe plugin if it's not defined before you try and use it to
> avoid errors e.g.
>
> if ($.fn.bgIframe == undefined) {
>        $.fn.bgIframe = function() {return this; };
> };
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to