1Jquery_plugin_ifram_ide<?xml version="1.0" encoding="utf-8"?>

 2Jquery_plugin_ifram_ide<html>

 3Jquery_plugin_ifram_ide   <head>

 4Jquery_plugin_ifram_ide      <script type="text/javascript" src="jquery.js"></script>

 5Jquery_plugin_ifram_ide      <script type="text/javascript" src="jquery.form.js"></script>

 6Jquery_plugin_ifram_ide      <script type="text/javascript" src="jquery.jframe.js"></script>

 7Jquery_plugin_ifram_ide   </head>

 8Jquery_plugin_ifram_ide   <body>

 9Jquery_plugin_ifram_ide

10Jquery_plugin_ifram_ide       <div id="jframe1" src="#">

11Jquery_plugin_ifram_ide           <a href="index.html" target="jframe2">

12Jquery_plugin_ifram_ide              on click, index.html will be loaded in "jframe2" div

13Jquery_plugin_ifram_ide           </a>

14Jquery_plugin_ifram_ide

15Jquery_plugin_ifram_ide           <a href="test.html">

16Jquery_plugin_ifram_ide              Without target, test.html will be loaded in the first parent jFrame : jframe1

17Jquery_plugin_ifram_ide           </a>

18Jquery_plugin_ifram_ide

19Jquery_plugin_ifram_ide           Form inside jFrame. Note the target attribute on submit button.

20Jquery_plugin_ifram_ide           <form method="post" action="test.html">

21Jquery_plugin_ifram_ide               <input name="toto" value="popo" />

22Jquery_plugin_ifram_ide               <input type="submit" name="submit" value="Search" target="jframe2" />

23Jquery_plugin_ifram_ide           </form>

24Jquery_plugin_ifram_ide       </div>

25Jquery_plugin_ifram_ide

26Jquery_plugin_ifram_ide       <div id="jframe2" src="test.html">

27Jquery_plugin_ifram_ide            Second jFrame. This content will be replaced by "test.html"

28Jquery_plugin_ifram_ide       </div>

29Jquery_plugin_ifram_ide

30Jquery_plugin_ifram_ide       <a href="index.html">Normal link outside jframe</a>

31Jquery_plugin_ifram_ide   </body>

32Jquery_plugin_ifram_ide</html>

33Jquery_plugin_ifram_ide


A jFrame is a DIV tag with a src attribute. In a jFrame, click events on <a> and <input type="submit"> tags will be handled by jframe and loaded in ajax.