From 9bdb8515482c2b22d0360d75c72131796a9c43ae Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Wed, 7 Jan 2009 03:34:18 +0000 Subject: Added bgiframe 2.1.1 to external folder --- external/bgiframe/ChangeLog.txt | 20 +++ external/bgiframe/META.json | 32 +++++ external/bgiframe/docs/index.html | 113 +++++++++++++++++ external/bgiframe/jquery.bgiframe.js | 100 +++++++++++++++ external/bgiframe/jquery.bgiframe.min.js | 10 ++ external/bgiframe/jquery.bgiframe.pack.js | 10 ++ external/bgiframe/test/index.html | 197 ++++++++++++++++++++++++++++++ 7 files changed, 482 insertions(+) create mode 100644 external/bgiframe/ChangeLog.txt create mode 100644 external/bgiframe/META.json create mode 100644 external/bgiframe/docs/index.html create mode 100644 external/bgiframe/jquery.bgiframe.js create mode 100644 external/bgiframe/jquery.bgiframe.min.js create mode 100644 external/bgiframe/jquery.bgiframe.pack.js create mode 100644 external/bgiframe/test/index.html (limited to 'external') diff --git a/external/bgiframe/ChangeLog.txt b/external/bgiframe/ChangeLog.txt new file mode 100644 index 000000000..995b35129 --- /dev/null +++ b/external/bgiframe/ChangeLog.txt @@ -0,0 +1,20 @@ +== New and Noteworthy == + +== 2.1.1 == + +* Removed $.browser.version for jQuery < 1.1.3 + +== 2.1 == + +* Updated to work with jQuery 1.1.3 +* Added $.browser.version for jQuery < 1.1.3 +* Optimized duplication check by using child selector and using .length test + +== 2.0 == + +* Added ability change settings like width, height, src and more. + +== 1.0 == + +* Only adds iframe once per an element +* Works with SSL enabled pages \ No newline at end of file diff --git a/external/bgiframe/META.json b/external/bgiframe/META.json new file mode 100644 index 000000000..766190b48 --- /dev/null +++ b/external/bgiframe/META.json @@ -0,0 +1,32 @@ +{ + "name": "jQuery-bgiframe", + "version": 2.1, + "author": [ + "Brandon Aaron " + ], + "abstract": "jQuery plugin for fixing z-index issues in IE6", + "license": "mit, gpl", + "distribution_type": "plugin", + "requires": { + "jQuery": ">=1.0.3" + }, + "provides": { + "jQuery.bgiframe": { + "version": 2.1, + "file": "jquery.bgiframe.js" + } + }, + "keywords": [ + "iframe", + "hack", + "zIndex", + "z-index", + "ie6" + ], + "stability": "Official", + "meta-spec": { + "version": 1.3, + "url": "http://module-build.sourceforge.net/META-spec-v1.3.html" + }, + "generated_by": "Brandon Aaron" +} diff --git a/external/bgiframe/docs/index.html b/external/bgiframe/docs/index.html new file mode 100644 index 000000000..1776b4d09 --- /dev/null +++ b/external/bgiframe/docs/index.html @@ -0,0 +1,113 @@ + + + + + bgiframe 2.1.1 docs + + + + + +
+
+

bgiframe 2.1.1

+ +
+
What does it do?
+
+

Have you ever experienced the select form element z-index issue in Internet Explorer 6? Most likely you have if you've implemented some sort of drop down menu navigation that shows up over a select form element.

+

The background iframe (bgiframe) plugin provides a very small, quick and easy way to fix that problem so you don't have to worry about it. No matter the size, borders or position the bgiframe plugin can fix it.

+
+ +
When should I use it?
+
+

The bgiframe plugin should be used when you are trying to show elements above a select form control in Internet Explorer 6.

+
+ +
How do I use it?
+
+

The usage is simple. Just call bgiframe on a jQuery collection of elements.

+

$('.fix-z-index').bgiframe();

+

The plugin tries its best to handle most situations but sometimes some configuration is necessary. For example if your borders are defined in a unit other than pixels, you will need to manually set the top and left properties to the negative width of the border. Here are the options/settings available to configure the output.

+
+
top
+
+

The iframe must be offset to the top by the width of the top border. This should be a negative number representing the border-top-width. If a number is is used here, pixels will be assumed. Otherwise, be sure to specify a unit. An expression could also be used. By default the value is "auto" which will use an expression to get the border-top-width if it is in pixels.

+

$('.fix-z-index').bgiframe({ top: '-1em' });

+
+
left
+
+

The iframe must be offset to the left by the width of the left border. This should be a negative number representing the border-left-width. If a number is used here, pixels will be assumed. Otherwise, be sure to specify a unit. An expression could also be used. By default the value is "auto" which will use an expression to get the border-left-width if it is in pixels.

+

$('.fix-z-index').bgiframe({ left: '-1em' });

+
+
width
+
+

This is the width of the iframe. If a number is used here, pixels will be assume. Otherwise, be sure to specify a unit. An expression could also be used. By default the value is "auto" which will use an expression to get the offsetWidth.

+

$('.fix-z-index').bgiframe({ width: 100 });

+
+
height
+
+

This is the height of the iframe. If a number is used here, pixels will be assume. Otherwise, be sure to specify a unit. An expression could also be used. By default the value is "auto" which will use an expression to get the offsetHeight.

+

$('.fix-z-index').bgiframe({ height: 100 });

+
+
opacity
+
+

This is a boolean representing whether or not to use opacity. If set to true, the opacity of 0 is applied. If set to false, the opacity filter is not applied. Default: true.

+

$('.fix-z-index').bgiframe({ opacity: false });

+
+
src
+
+

This setting is provided so that one could change the src of the iframe to whatever they need. Default: "javascript:false;"

+

$('.fix-z-index').bgiframe({ src: '#' });

+
+
+
+ +
How does it work?
+
+

The bgiframe plugin works by prepending an iframe to the element. The iframe is given a class of bgiframe and positioned below all the other children of the element. In the default configuration it automatically adjusts to the width and height of the element (including the borders) and the opacity is set to 0. The element needs to have position (relative or absolute) and should have a background (color or image).

+

Check out the test page to see the plugin in action.

+
+ +
Where can I get it?
+
+
    +
  • 2.1 zip from the bgiframe project page.
  • +
  • Latest SVN: http://jqueryjs.googlecode.com/svn/trunk/plugins/bgiframe/
  • +
  • Tagged Versions in SVN: Latest SVN: http://jqueryjs.googlecode.com/svn/tags/plugins/bgiframe/
  • +
+
+ +
Suggestions? Bugs? Patches?
+
+

Feel free to make any suggestions, bug reports or add any patches via the project page.

+
+
+

The bgiframe plugin is authored by Brandon Aaron (http://brandonaaron.net/)

+
+
+ + \ No newline at end of file diff --git a/external/bgiframe/jquery.bgiframe.js b/external/bgiframe/jquery.bgiframe.js new file mode 100644 index 000000000..3a01f6eba --- /dev/null +++ b/external/bgiframe/jquery.bgiframe.js @@ -0,0 +1,100 @@ +/* Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net) + * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) + * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. + * + * $LastChangedDate: 2007-07-21 18:44:59 -0500 (Sat, 21 Jul 2007) $ + * $Rev: 2446 $ + * + * Version 2.1.1 + */ + +(function($){ + +/** + * The bgiframe is chainable and applies the iframe hack to get + * around zIndex issues in IE6. It will only apply itself in IE6 + * and adds a class to the iframe called 'bgiframe'. The iframe + * is appeneded as the first child of the matched element(s) + * with a tabIndex and zIndex of -1. + * + * By default the plugin will take borders, sized with pixel units, + * into account. If a different unit is used for the border's width, + * then you will need to use the top and left settings as explained below. + * + * NOTICE: This plugin has been reported to cause perfromance problems + * when used on elements that change properties (like width, height and + * opacity) a lot in IE6. Most of these problems have been caused by + * the expressions used to calculate the elements width, height and + * borders. Some have reported it is due to the opacity filter. All + * these settings can be changed if needed as explained below. + * + * @example $('div').bgiframe(); + * @before

Paragraph

+ * @result