vincetam2010 / jquery-swip

Automatically exported from code.google.com/p/jquery-swip
0 stars 0 forks source link

Cannot figure out how to insert a *working* close button/link in an iframe DOMWindow #43

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a DOMWindow with code like:

        $('.edit-user').openDOMWindow({
          height:400, width:700,
          eventType:'click',
          loader:1,
          loaderImagePath:DOM_LoadingAnimation,
          loaderWidth:208,
          loaderHeight:13,
          windowSource:'iframe',
          windowHTTPType:'get',
          windowPadding:0
        });
     (The href attribute of the link contains the URL to load the iframe from.
2.
    In the loaded iframe, include code like this:
<h3 class="dialog-header">Some Title<a href="#" class="closeEditUser">Close</a>
    <script type="text/javascript">
    $('.closeEditUser').closeDOMWindow({eventType:'click',closeNow:1}); 
    </script></h3>

3.
   Click on the Close link.

What is the expected output? What do you see instead?

The DOMWindow should go away.  What happens is nothing.

What version of the product are you using? On what operating system?

  jquery.DOMWindow.js downloaded on Jan 27, 2012.  There is no version info supplied.

  I am using FireFox 3.6.24 x86_64 under Linux (CentOS 5.7).

Please provide any additional information below.

  There is no real documentation on how to do this, just a limited set of demos. I have no clue as to whether this is a code bug, documentation bug, or a wetwear bug (my lack of understanding how DOMWindow is supposed to work).

Where can I get complete reference documentation for this code?  Or does such 
documentation even exist?

Original issue reported on code.google.com by hel...@deepsoft.com on 5 Feb 2012 at 10:20