<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: SimpleModal</title>
	<atom:link href="http://www.ericmmartin.com/projects/simplemodal_v101/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ericmmartin.com</link>
	<description></description>
	<pubDate>Sun, 20 Jul 2008 01:09:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: chazzuka</title>
		<link>http://www.ericmmartin.com/projects/simplemodal_v101/#comment-1160</link>
		<dc:creator>chazzuka</dc:creator>
		<pubDate>Tue, 27 May 2008 19:15:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericmmartin.com//simplemodal/#comment-1160</guid>
		<description>Excellent ! i am gong to use this for my classic ASP application, and has featured in my blog http://www.chazzuka.com/blog/?p=179</description>
		<content:encoded><![CDATA[<p>Excellent ! i am gong to use this for my classic ASP application, and has featured in my blog <a href="http://www.chazzuka.com/blog/?p=179" rel="nofollow">http://www.chazzuka.com/blog/?p=179</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Martin</title>
		<link>http://www.ericmmartin.com/projects/simplemodal_v101/#comment-71</link>
		<dc:creator>Eric Martin</dc:creator>
		<pubDate>Fri, 04 Jan 2008 23:24:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericmmartin.com//simplemodal/#comment-71</guid>
		<description>@Kan - Happy New Year to you too!

I think I have an answer for you. I'm not sure what happends when a flash movie ends, but if you can trigger a JavaScript event, the following should close the modal dialog that contains the iframe:

&lt;pre&gt;&lt;code&gt;&#60;script type=&#39;text/javscript&#39;&#62;
function flashEnded() {
    window.parent.jQuery.modal.close(true); // true means it's an external close call
}
&#60;/script&#62;&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>@Kan - Happy New Year to you too!</p>
<p>I think I have an answer for you. I&#8217;m not sure what happends when a flash movie ends, but if you can trigger a JavaScript event, the following should close the modal dialog that contains the iframe:</p>
<pre><code>&lt;script type=&#39;text/javscript&#39;&gt;
function flashEnded() {
    window.parent.jQuery.modal.close(true); // true means it's an external close call
}
&lt;/script&gt;</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kan Ishigami</title>
		<link>http://www.ericmmartin.com/projects/simplemodal_v101/#comment-64</link>
		<dc:creator>Kan Ishigami</dc:creator>
		<pubDate>Fri, 04 Jan 2008 12:12:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericmmartin.com//simplemodal/#comment-64</guid>
		<description>Hi Eric, Happy New Year.

Well, I have a flash movie inside an iframe, and this iframe is inside a SimpleModal. Well, I need to call a function that closes the SimpleModal when the flash movie ends.

I'd tried some codes but I can't close the SimpleModal from the inside of iframe. Do you have any idea?

Sorry but my English isn't good.</description>
		<content:encoded><![CDATA[<p>Hi Eric, Happy New Year.</p>
<p>Well, I have a flash movie inside an iframe, and this iframe is inside a SimpleModal. Well, I need to call a function that closes the SimpleModal when the flash movie ends.</p>
<p>I&#8217;d tried some codes but I can&#8217;t close the SimpleModal from the inside of iframe. Do you have any idea?</p>
<p>Sorry but my English isn&#8217;t good.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Rouse</title>
		<link>http://www.ericmmartin.com/projects/simplemodal_v101/#comment-61</link>
		<dc:creator>Aaron Rouse</dc:creator>
		<pubDate>Tue, 01 Jan 2008 02:04:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericmmartin.com//simplemodal/#comment-61</guid>
		<description>Eric, no I have not tried the onClose and actually have not tried anything in regards to the UID because was trying to figure out the odd behavior I was getting with the enter key on my attempt vs. using your code on your contact form example.  I will wait for the change you are doing to the contact form then modify my code and making a note to use the onClose.  Thanks for the help on this, been a little bit of a struggle for me since new to jQuery at the same time but overall not been too bad of a learning curve.</description>
		<content:encoded><![CDATA[<p>Eric, no I have not tried the onClose and actually have not tried anything in regards to the UID because was trying to figure out the odd behavior I was getting with the enter key on my attempt vs. using your code on your contact form example.  I will wait for the change you are doing to the contact form then modify my code and making a note to use the onClose.  Thanks for the help on this, been a little bit of a struggle for me since new to jQuery at the same time but overall not been too bad of a learning curve.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Martin</title>
		<link>http://www.ericmmartin.com/projects/simplemodal_v101/#comment-60</link>
		<dc:creator>Eric Martin</dc:creator>
		<pubDate>Mon, 31 Dec 2007 22:38:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericmmartin.com//simplemodal/#comment-60</guid>
		<description>@Robin - The WordPress plugin is almost ready. I ended up making some changes to SimpleModal, which has delayed the plugin.

@Aaron - I also am making some changes to the contact demo. One of those changes is to make the send and cancel images input type=image, so when the enter button is pressed, it will submit the form.

As for the question about populating the UID and closing the dialog...there are a lot of options. Have you tried using the onClose event to grab the UID, place it in the page, then close the dialog?

@Francesco - Here is a crude example of what I think you are asking for:
HTML:
&lt;pre&gt;&lt;code&gt;&#60;a href=&#39;#&#39; id=&#39;records&#39;&#62;records&#60;/a&#62;
&#60;form id=&#39;myForm&#39;&#62;
&#60;/form&#62;&lt;/code&gt;&lt;/pre&gt;

JavaScript:
&lt;pre&gt;&lt;code&gt;$(document).ready(function () {
  $(&#39;#records&#39;).click(function (e) {
    e.preventDefault();

    var select = $(&#39;&#60;select&#62;&#39;).attr(&#39;name&#39;, &#39;records&#39;);
    select.append($(&#39;&#60;option&#62;&#39;).attr(&#39;value&#39;, -1).html(&#39;Number of Records&#39;));
    
    for (var i = 1; i &#60;= 10; i  ) {
      select.append($(&#39;&#60;option&#62;&#39;).attr(&#39;value&#39;, i).html(i));
    }
    
    select.modal({onShow: function (dialog) {
      dialog.data.change(function () {
        if (this.value &#38;&#38; this.value &#62; 0) {
          var form = $(&#39;#myForm&#39;);

          for (var i = 1; i &#60;= this.value; i  ) {
            var label = $(&#39;&#60;label&#62;&#39;).attr(&#39;for&#39;, &#39;record_&#39;   1).text(&#39;Record &#39;   i   &#39;:&#39;);
            var input = $(&#39;&#60;input type=&#34;text&#34;&#62;&#39;).attr(&#39;id&#39;, &#39;record_&#39;   1).attr(&#39;name&#39;, &#39;record_&#39;   i);
            form.append($(&#39;&#60;div&#62;&#39;).append(label).append(input));
          }
        
        $.modal.close(); // for SimpleModal 1.1
        }
      });
    }});
  });
});&lt;/code&gt;&lt;/pre&gt;

@Kan - I'm not really sure ;) If you can email me an example link or code, I could take a look.

@Bill - Glad you understand...it is a little convoluted =)</description>
		<content:encoded><![CDATA[<p>@Robin - The WordPress plugin is almost ready. I ended up making some changes to SimpleModal, which has delayed the plugin.</p>
<p>@Aaron - I also am making some changes to the contact demo. One of those changes is to make the send and cancel images input type=image, so when the enter button is pressed, it will submit the form.</p>
<p>As for the question about populating the UID and closing the dialog&#8230;there are a lot of options. Have you tried using the onClose event to grab the UID, place it in the page, then close the dialog?</p>
<p>@Francesco - Here is a crude example of what I think you are asking for:<br />
HTML:</p>
<pre><code>&lt;a href=&#39;#&#39; id=&#39;records&#39;&gt;records&lt;/a&gt;
&lt;form id=&#39;myForm&#39;&gt;
&lt;/form&gt;</code></pre>
<p>JavaScript:</p>
<pre><code>$(document).ready(function () {
  $(&#39;#records&#39;).click(function (e) {
    e.preventDefault();

    var select = $(&#39;&lt;select&gt;&#39;).attr(&#39;name&#39;, &#39;records&#39;);
    select.append($(&#39;&lt;option&gt;&#39;).attr(&#39;value&#39;, -1).html(&#39;Number of Records&#39;));

    for (var i = 1; i &lt;= 10; i  ) {
      select.append($(&#39;&lt;option&gt;&#39;).attr(&#39;value&#39;, i).html(i));
    }

    select.modal({onShow: function (dialog) {
      dialog.data.change(function () {
        if (this.value &amp;&amp; this.value &gt; 0) {
          var form = $(&#39;#myForm&#39;);

          for (var i = 1; i &lt;= this.value; i  ) {
            var label = $(&#39;&lt;label&gt;&#39;).attr(&#39;for&#39;, &#39;record_&#39;   1).text(&#39;Record &#39;   i   &#39;:&#39;);
            var input = $(&#39;&lt;input type=&quot;text&quot;&gt;&#39;).attr(&#39;id&#39;, &#39;record_&#39;   1).attr(&#39;name&#39;, &#39;record_&#39;   i);
            form.append($(&#39;&lt;div&gt;&#39;).append(label).append(input));
          }

        $.modal.close(); // for SimpleModal 1.1
        }
      });
    }});
  });
});</code></pre>
<p>@Kan - I&#8217;m not really sure <img src='http://www.ericmmartin.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> If you can email me an example link or code, I could take a look.</p>
<p>@Bill - Glad you understand&#8230;it is a little convoluted =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://www.ericmmartin.com/projects/simplemodal_v101/#comment-59</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Mon, 31 Dec 2007 20:13:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericmmartin.com//simplemodal/#comment-59</guid>
		<description>Please ignore my last question. I understand it now.</description>
		<content:encoded><![CDATA[<p>Please ignore my last question. I understand it now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://www.ericmmartin.com/projects/simplemodal_v101/#comment-58</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Mon, 31 Dec 2007 20:08:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericmmartin.com//simplemodal/#comment-58</guid>
		<description>How to understand these settings in your sample CSS:

position:fixed;
left:50%;
top:15%;
margin-left:-300px;

Are you trying to center anything?</description>
		<content:encoded><![CDATA[<p>How to understand these settings in your sample CSS:</p>
<p>position:fixed;<br />
left:50%;<br />
top:15%;<br />
margin-left:-300px;</p>
<p>Are you trying to center anything?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kan Ishigami</title>
		<link>http://www.ericmmartin.com/projects/simplemodal_v101/#comment-57</link>
		<dc:creator>Kan Ishigami</dc:creator>
		<pubDate>Mon, 31 Dec 2007 04:09:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericmmartin.com//simplemodal/#comment-57</guid>
		<description>Hi Eric, thanks for the code. I've one question: how can I close the modal from a page inside an iframe. I've tried to write a function to close the modal, but with no success. 

I created a flash movie that is displayed inside the simplemodal through an iframe. When the movie ends, it executes a function to close the simplemodal. But I can`t close this modal.

There is a easy way to make this?</description>
		<content:encoded><![CDATA[<p>Hi Eric, thanks for the code. I&#8217;ve one question: how can I close the modal from a page inside an iframe. I&#8217;ve tried to write a function to close the modal, but with no success. </p>
<p>I created a flash movie that is displayed inside the simplemodal through an iframe. When the movie ends, it executes a function to close the simplemodal. But I can`t close this modal.</p>
<p>There is a easy way to make this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Francesco</title>
		<link>http://www.ericmmartin.com/projects/simplemodal_v101/#comment-56</link>
		<dc:creator>Francesco</dc:creator>
		<pubDate>Mon, 31 Dec 2007 00:37:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericmmartin.com//simplemodal/#comment-56</guid>
		<description>I have a .NET page (PAGE ONE - for simplicity) with a form and many many fields and buttons.
When the user clicks a particular button (LOAD BUTTON) I want to open a modal overlay window that asks for the record number the user wish to load.

So I already have FORM tags in PAGE ONE. All I want to do is opening a window with a text box and an OK button and finally post back to PAGE ONE once the user clicks on the OK button. Can this be done using this module you have created? I am confused by the fact you load an HTML snippet through AJAX (I don't need to do this, right?) that contains FORM tags (I cannot do this since I already have form tags on my page, right?)

Any help would be really appreciated</description>
		<content:encoded><![CDATA[<p>I have a .NET page (PAGE ONE - for simplicity) with a form and many many fields and buttons.<br />
When the user clicks a particular button (LOAD BUTTON) I want to open a modal overlay window that asks for the record number the user wish to load.</p>
<p>So I already have FORM tags in PAGE ONE. All I want to do is opening a window with a text box and an OK button and finally post back to PAGE ONE once the user clicks on the OK button. Can this be done using this module you have created? I am confused by the fact you load an HTML snippet through AJAX (I don&#8217;t need to do this, right?) that contains FORM tags (I cannot do this since I already have form tags on my page, right?)</p>
<p>Any help would be really appreciated</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Rouse</title>
		<link>http://www.ericmmartin.com/projects/simplemodal_v101/#comment-55</link>
		<dc:creator>Aaron Rouse</dc:creator>
		<pubDate>Sun, 30 Dec 2007 00:55:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericmmartin.com//simplemodal/#comment-55</guid>
		<description>Eric,

Thanks for the code, when I place that into your example form it seems to work as expected in both IE and FireFox.  For some reason though the test code I am working on, it does not function 100%.  

On mine in Firefox if I type a character and hit the backspace then press enter I get the message about the field being required.  If I type in some search criteria it begins to search but the closes out, happens that way in IE and Firefox.  I copied the code up into a temp directory on my site so that you could see it:

http://www.happyhacker.com/demo/index.html

A search criteria that would return something would be: Rouse

The other issue I will need to address that I have not is how to trigger a click on the Close button.  Once a user has been selected I want it to populate their UID into the main page and close out the Modal.  I will also need to figure out how to integrate it into existing forms, when I first put up the test code I got some odd display behavior in IE7 so for a temp solution I just slimmed down your demo page for testing purposes.</description>
		<content:encoded><![CDATA[<p>Eric,</p>
<p>Thanks for the code, when I place that into your example form it seems to work as expected in both IE and FireFox.  For some reason though the test code I am working on, it does not function 100%.  </p>
<p>On mine in Firefox if I type a character and hit the backspace then press enter I get the message about the field being required.  If I type in some search criteria it begins to search but the closes out, happens that way in IE and Firefox.  I copied the code up into a temp directory on my site so that you could see it:</p>
<p><a href="http://www.happyhacker.com/demo/index.html" rel="nofollow">http://www.happyhacker.com/demo/index.html</a></p>
<p>A search criteria that would return something would be: Rouse</p>
<p>The other issue I will need to address that I have not is how to trigger a click on the Close button.  Once a user has been selected I want it to populate their UID into the main page and close out the Modal.  I will also need to figure out how to integrate it into existing forms, when I first put up the test code I got some odd display behavior in IE7 so for a temp solution I just slimmed down your demo page for testing purposes.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
