typescript.bgiframe

This plugin a implementation of the original jQuery.bgiframe plugin, without jQuery function calls. jQuery.bgiframe plugin repositore url: https://github.com/brandonaaron/bgiframe The package licensed under Mozilla Pulic License(MPL) and MIT. Copyrights for the jQuery plugin: Copyright (c) 2013 Brandon Aaron (http://brandonaaron.net) Copyrights for native javascript implementations: Copyright (c) 2013 Zoltan Sumegi (http://sumegi.net)


Keywords
javascript, typescript, IE6, bgiframe
Install
Install-Package typescript.bgiframe -Version 1.0.0

Documentation

BgiFrame

bgiframe for IE6 - without jQuery

The original jQuery.bgiframe plugin in pure javascript.

Based on

https://github.com/brandonaaron/bgiframe

The jQuery plugin copyrights: Copyright (c) 2013 Brandon Aaron (http://brandonaaron.net)

NuGet package

https://nuget.org/packages/typescript.bgiframe

Usage

Usage of the native javascript plugin:

<html>
<head>
    <meta charset="utf-8" />
    <title>TypeScript HTML App</title>
    <script type="text/javascript" src="Scripts/typescript.bgiframe.js"></script>
</head>
<body>
  <h1>TypeScript HTML App for plugin bgiframe (IE6)</h1>

  <div id="content">content</div>
  <div id="content2">content2</div>

  <input type="button" name="btnRefresh" value="refresh content2" onclick="refresh();" />

  <script type="text/javascript">
      var content = document.getElementById('content');
      var bgiframe = new BgiFrame.Bgiframe(content);

      function refresh() {
          if (bgiframe) {
              // bgiframe.fire(document.getElementById('content'));
              bgiframe.fire(document.getElementById('content2'));
          }
      }
  </script>
</body>
</html>