<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Impromptu: An Ajax Form Framework</title>
	<atom:link href="http://trentrichardson.com/2008/11/25/impromptu-an-ajax-form-framework/feed/" rel="self" type="application/rss+xml" />
	<link>http://trentrichardson.com/2008/11/25/impromptu-an-ajax-form-framework/</link>
	<description>practical web design &#38; development</description>
	<lastBuildDate>Tue, 07 Sep 2010 11:25:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: will</title>
		<link>http://trentrichardson.com/2008/11/25/impromptu-an-ajax-form-framework/comment-page-1/#comment-9770</link>
		<dc:creator>will</dc:creator>
		<pubDate>Fri, 13 Feb 2009 14:30:29 +0000</pubDate>
		<guid isPermaLink="false">http://trentrichardson.com/?p=149#comment-9770</guid>
		<description>Ok, you&#039;re fully right !
I should thought about it, to get the value in the submit part.
Thanks a lot for your quick answer, you do a really good job, good luck for the next.</description>
		<content:encoded><![CDATA[<p>Ok, you&#8217;re fully right !<br />
I should thought about it, to get the value in the submit part.<br />
Thanks a lot for your quick answer, you do a really good job, good luck for the next.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: trent</title>
		<link>http://trentrichardson.com/2008/11/25/impromptu-an-ajax-form-framework/comment-page-1/#comment-9768</link>
		<dc:creator>trent</dc:creator>
		<pubDate>Fri, 13 Feb 2009 13:24:20 +0000</pubDate>
		<guid isPermaLink="false">http://trentrichardson.com/?p=149#comment-9768</guid>
		<description>Is this function within the submit or the callback function?  I&#039;ve recently found a bug within ie6 retaining checked attributes when traversing the dom after the elements have been technically removed(in the callback function the prompt is gone, a copy of it is passed to the callback function, where as the submit function actually passes a reference to the dom since the prompt is still alive.  So given that The solution might be something like this in my function that calls the prompt:

function myfunc(){
    var formvals = {};
   
    $.prompt(&#039;...&#039;,{
        submit: function(v,m){
            //save the vals into formvals
            formvals.val1 = m.find(&#039;#val1&#039;).val();
            //now do my normal validation....
        },
        callback: function(v,m){
            //now i have access to the submitted formvals and don&#039;t have to traverse the dom again...
        }
}

So in the end this actually works out to be faster than writing the selectors twice, we just save them and use them in the callback.</description>
		<content:encoded><![CDATA[<p>Is this function within the submit or the callback function?  I&#8217;ve recently found a bug within ie6 retaining checked attributes when traversing the dom after the elements have been technically removed(in the callback function the prompt is gone, a copy of it is passed to the callback function, where as the submit function actually passes a reference to the dom since the prompt is still alive.  So given that The solution might be something like this in my function that calls the prompt:</p>
<p>function myfunc(){<br />
    var formvals = {};</p>
<p>    $.prompt(&#8216;&#8230;&#8217;,{<br />
        submit: function(v,m){<br />
            //save the vals into formvals<br />
            formvals.val1 = m.find(&#8216;#val1&#8242;).val();<br />
            //now do my normal validation&#8230;.<br />
        },<br />
        callback: function(v,m){<br />
            //now i have access to the submitted formvals and don&#8217;t have to traverse the dom again&#8230;<br />
        }<br />
}</p>
<p>So in the end this actually works out to be faster than writing the selectors twice, we just save them and use them in the callback.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: will</title>
		<link>http://trentrichardson.com/2008/11/25/impromptu-an-ajax-form-framework/comment-page-1/#comment-9767</link>
		<dc:creator>will</dc:creator>
		<pubDate>Fri, 13 Feb 2009 10:33:51 +0000</pubDate>
		<guid isPermaLink="false">http://trentrichardson.com/?p=149#comment-9767</guid>
		<description>Hello Trent,
I have the same problems than Chaitsu : 
IE6 cannot detect the m.find(&quot;#...&quot;).is(&quot;:checked&quot;)
==&gt; It always returns &#039;false&#039;
But on FF it works.
Could you tell me how i could resolve that
(may you please reply on mail too)

Thanks for that great plugin</description>
		<content:encoded><![CDATA[<p>Hello Trent,<br />
I have the same problems than Chaitsu :<br />
IE6 cannot detect the m.find(&#8220;#&#8230;&#8221;).is(&#8220;:checked&#8221;)<br />
==&gt; It always returns &#8216;false&#8217;<br />
But on FF it works.<br />
Could you tell me how i could resolve that<br />
(may you please reply on mail too)</p>
<p>Thanks for that great plugin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: trent</title>
		<link>http://trentrichardson.com/2008/11/25/impromptu-an-ajax-form-framework/comment-page-1/#comment-9755</link>
		<dc:creator>trent</dc:creator>
		<pubDate>Thu, 12 Feb 2009 12:52:28 +0000</pubDate>
		<guid isPermaLink="false">http://trentrichardson.com/?p=149#comment-9755</guid>
		<description>pangzh,

Can you please provide the english translation for the html string passed to the prompt?

Also I have encountered a bug with IE in the past with checkboxes in the call back function, you can&#039;t track whether it&#039;s checked or not(not sure if that&#039;s the case).  Also be aware that .children() will only find immediate children, if it is embeded deaper into your object you should use .find().  Hope that helps.</description>
		<content:encoded><![CDATA[<p>pangzh,</p>
<p>Can you please provide the english translation for the html string passed to the prompt?</p>
<p>Also I have encountered a bug with IE in the past with checkboxes in the call back function, you can&#8217;t track whether it&#8217;s checked or not(not sure if that&#8217;s the case).  Also be aware that .children() will only find immediate children, if it is embeded deaper into your object you should use .find().  Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pangzh</title>
		<link>http://trentrichardson.com/2008/11/25/impromptu-an-ajax-form-framework/comment-page-1/#comment-9754</link>
		<dc:creator>pangzh</dc:creator>
		<pubDate>Thu, 12 Feb 2009 09:52:30 +0000</pubDate>
		<guid isPermaLink="false">http://trentrichardson.com/?p=149#comment-9754</guid>
		<description>please help me</description>
		<content:encoded><![CDATA[<p>please help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pangzh</title>
		<link>http://trentrichardson.com/2008/11/25/impromptu-an-ajax-form-framework/comment-page-1/#comment-9753</link>
		<dc:creator>pangzh</dc:creator>
		<pubDate>Thu, 12 Feb 2009 09:52:01 +0000</pubDate>
		<guid isPermaLink="false">http://trentrichardson.com/?p=149#comment-9753</guid>
		<description>
function hello(){
      var str = &#039;&#039;;
      str += &quot;è¯·éæ©èŠçœ®é¡¶ççé¢ïŒ&quot;;
      str += &quot;æåºçŠç¹åº &quot;;
      str += &quot;æåºå¬åæ¿ &quot;;
      str += &quot;æå®¹æè² &quot;;
      str += &quot;è­Šæéå &quot;;
      str += &quot;ææ°é£é &quot;;
      str += &quot;ç¹è²ç»è¥ &quot;;
      str += &quot;ææ°å®¶å®¶äº &quot;;
      str += &quot;&quot;;
      str += &quot;&quot;;
      str += &quot;&quot;;
      $.prompt(str,{buttons: {Ok: true, Cance: false },callback: village_top});
}

function village_top(v,m){
      if(v == true){

            
            //var location = m.children(&quot;:radio:checked&quot;).val();
            var location = m.find(&#039;input&#039;).is(&#039;:checked&#039;);
            alert(location.val());
            //var location = m.find(&quot;input[@name=location][@checked=checked]&quot;).val();
            //alert(location);
            var webid = m.children(&#039;#top_webid&#039;).val();
            var infoid = m.children(&#039;#top_infoid&#039;).val();
            alert(infoid);
            alert(webid);
            
      }

}

dot work</description>
		<content:encoded><![CDATA[<p>function hello(){<br />
      var str = &#8221;;<br />
      str += &#8220;è¯·éæ©èŠçœ®é¡¶ççé¢ïŒ&#8221;;<br />
      str += &#8220;æåºçŠç¹åº &#8220;;<br />
      str += &#8220;æåºå¬åæ¿ &#8220;;<br />
      str += &#8220;æå®¹æè² &#8220;;<br />
      str += &#8220;è­Šæéå &#8220;;<br />
      str += &#8220;ææ°é£é &#8220;;<br />
      str += &#8220;ç¹è²ç»è¥ &#8220;;<br />
      str += &#8220;ææ°å®¶å®¶äº &#8220;;<br />
      str += &#8220;&#8221;;<br />
      str += &#8220;&#8221;;<br />
      str += &#8220;&#8221;;<br />
      $.prompt(str,{buttons: {Ok: true, Cance: false },callback: village_top});<br />
}</p>
<p>function village_top(v,m){<br />
      if(v == true){</p>
<p>            //var location = m.children(&#8220;:radio:checked&#8221;).val();<br />
            var location = m.find(&#8216;input&#8217;).is(&#8216;:checked&#8217;);<br />
            alert(location.val());<br />
            //var location = m.find(&#8220;input[@name=location][@checked=checked]&#8220;).val();<br />
            //alert(location);<br />
            var webid = m.children(&#8216;#top_webid&#8217;).val();<br />
            var infoid = m.children(&#8216;#top_infoid&#8217;).val();<br />
            alert(infoid);<br />
            alert(webid);</p>
<p>      }</p>
<p>}</p>
<p>dot work</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: trent</title>
		<link>http://trentrichardson.com/2008/11/25/impromptu-an-ajax-form-framework/comment-page-1/#comment-9686</link>
		<dc:creator>trent</dc:creator>
		<pubDate>Mon, 26 Jan 2009 12:56:07 +0000</pubDate>
		<guid isPermaLink="false">http://trentrichardson.com/?p=149#comment-9686</guid>
		<description>Yes, its very simple.  I do this all the time with json or xml.

jQuery.getScript(&#039;myJSON.cfm&#039;, function(data,textStatus){

$.prompt(&#039;test&#039;);

});

This would also work with $.post and $.get, you just simply need to place impromtu within the callback of the ajax post.</description>
		<content:encoded><![CDATA[<p>Yes, its very simple.  I do this all the time with json or xml.</p>
<p>jQuery.getScript(&#8216;myJSON.cfm&#8217;, function(data,textStatus){</p>
<p>$.prompt(&#8216;test&#8217;);</p>
<p>});</p>
<p>This would also work with $.post and $.get, you just simply need to place impromtu within the callback of the ajax post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Freidgeim</title>
		<link>http://trentrichardson.com/2008/11/25/impromptu-an-ajax-form-framework/comment-page-1/#comment-9685</link>
		<dc:creator>Michael Freidgeim</dc:creator>
		<pubDate>Sun, 25 Jan 2009 23:34:32 +0000</pubDate>
		<guid isPermaLink="false">http://trentrichardson.com/?p=149#comment-9685</guid>
		<description>I need to show popup info message with single close button, but content is located in separate html file. Is it possible to do with Impromptu?</description>
		<content:encoded><![CDATA[<p>I need to show popup info message with single close button, but content is located in separate html file. Is it possible to do with Impromptu?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kev</title>
		<link>http://trentrichardson.com/2008/11/25/impromptu-an-ajax-form-framework/comment-page-1/#comment-9505</link>
		<dc:creator>Kev</dc:creator>
		<pubDate>Tue, 16 Dec 2008 23:05:05 +0000</pubDate>
		<guid isPermaLink="false">http://trentrichardson.com/?p=149#comment-9505</guid>
		<description>problem is on jqModal end, when attribute &#039;modal&#039; is set to true, it blocks key strokes outside the jqModal dialog area (http://dev.iceburg.net/jquery/jqModal/#etc): 

sorry for wasting your time</description>
		<content:encoded><![CDATA[<p>problem is on jqModal end, when attribute &#8216;modal&#8217; is set to true, it blocks key strokes outside the jqModal dialog area (<a href="http://dev.iceburg.net/jquery/jqModal/#etc" rel="nofollow">http://dev.iceburg.net/jquery/jqModal/#etc</a>): </p>
<p>sorry for wasting your time</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: trent</title>
		<link>http://trentrichardson.com/2008/11/25/impromptu-an-ajax-form-framework/comment-page-1/#comment-9504</link>
		<dc:creator>trent</dc:creator>
		<pubDate>Tue, 16 Dec 2008 22:34:47 +0000</pubDate>
		<guid isPermaLink="false">http://trentrichardson.com/?p=149#comment-9504</guid>
		<description>I&#039;ve had a few people mention problems with jqModal.  I&#039;m not sure whether the problem is on the jqModal end or Impromptu end.  Hopefully when I find a little time in the next few days I can provide a little more input.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve had a few people mention problems with jqModal.  I&#8217;m not sure whether the problem is on the jqModal end or Impromptu end.  Hopefully when I find a little time in the next few days I can provide a little more input.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.419 seconds -->
