<?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: jQuery Impromptu 2.8 &#8211; A Couple Tweaks</title> <atom:link href="http://trentrichardson.com/2009/12/18/jquery-impromptu-2-8-a-couple-tweaks/feed/" rel="self" type="application/rss+xml" /><link>http://trentrichardson.com/2009/12/18/jquery-impromptu-2-8-a-couple-tweaks/</link> <description>practical web design &#38; development</description> <lastBuildDate>Fri, 18 May 2012 18:53:09 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>By: Irakli</title><link>http://trentrichardson.com/2009/12/18/jquery-impromptu-2-8-a-couple-tweaks/comment-page-1/#comment-23051</link> <dc:creator>Irakli</dc:creator> <pubDate>Fri, 18 Feb 2011 09:07:20 +0000</pubDate> <guid
isPermaLink="false">http://trentrichardson.com/?p=434#comment-23051</guid> <description>hello!
Can you help me with Mootools Impromptu.
How can i set callback function when &quot;X&quot;-clicked?
In &quot;callback&quot; - window is empty
Somthing like this:
close: function (v, m, f) {...}</description> <content:encoded><![CDATA[<p>hello!<br
/> Can you help me with Mootools Impromptu.<br
/> How can i set callback function when &#8220;X&#8221;-clicked?<br
/> In &#8220;callback&#8221; &#8211; window is empty<br
/> Somthing like this:<br
/> close: function (v, m, f) {&#8230;}</p> ]]></content:encoded> </item> <item><title>By: Gareth</title><link>http://trentrichardson.com/2009/12/18/jquery-impromptu-2-8-a-couple-tweaks/comment-page-1/#comment-14677</link> <dc:creator>Gareth</dc:creator> <pubDate>Tue, 16 Feb 2010 17:02:42 +0000</pubDate> <guid
isPermaLink="false">http://trentrichardson.com/?p=434#comment-14677</guid> <description>Yes! Certainly adding a class the top-most container would be perfect. For me a single class is all that&#039;s required, and I guess we culd just space-separate multiple classes if required.</description> <content:encoded><![CDATA[<p>Yes! Certainly adding a class the top-most container would be perfect. For me a single class is all that&#8217;s required, and I guess we culd just space-separate multiple classes if required.</p> ]]></content:encoded> </item> <item><title>By: trent</title><link>http://trentrichardson.com/2009/12/18/jquery-impromptu-2-8-a-couple-tweaks/comment-page-1/#comment-14672</link> <dc:creator>trent</dc:creator> <pubDate>Mon, 15 Feb 2010 15:32:50 +0000</pubDate> <guid
isPermaLink="false">http://trentrichardson.com/?p=434#comment-14672</guid> <description>Would a solution possibly be adding an option for classes, and for this you can pass a string or an array of classes to append.  This way you can keep the jqi prefixes, and add a class the container (container being the div which holds the fade and the prompt itself).  So then if you wanted to change the fade color for classes: &#039;jqidark&#039; just make one line after your default jqi classes instead of a new theme:.jqiwide .jqi{ width: 600px; }Is that more like what you&#039;re looking for?  I&#039;ve encountered similar problems with needing to adjust the width, so this will help me also.</description> <content:encoded><![CDATA[<p>Would a solution possibly be adding an option for classes, and for this you can pass a string or an array of classes to append.  This way you can keep the jqi prefixes, and add a class the container (container being the div which holds the fade and the prompt itself).  So then if you wanted to change the fade color for classes: &#8216;jqidark&#8217; just make one line after your default jqi classes instead of a new theme:</p><p>.jqiwide .jqi{ width: 600px; }</p><p>Is that more like what you&#8217;re looking for?  I&#8217;ve encountered similar problems with needing to adjust the width, so this will help me also.</p> ]]></content:encoded> </item> <item><title>By: Gareth</title><link>http://trentrichardson.com/2009/12/18/jquery-impromptu-2-8-a-couple-tweaks/comment-page-1/#comment-14671</link> <dc:creator>Gareth</dc:creator> <pubDate>Mon, 15 Feb 2010 13:21:47 +0000</pubDate> <guid
isPermaLink="false">http://trentrichardson.com/?p=434#comment-14671</guid> <description>Hi Trent. I was using the id attribute as an example - a class would do just as well.
It is the CSS prefix that I&#039;m referring to. Consider I&#039;ve got styles for a prompt that&#039;s intended to replace the typical alert box. I&#039;ve set up styles on the default &quot;jqi&quot; prefix for the fade, borders and background, close gadget, buttons, text and so on. These are of course on classes prefixed by &quot;jqi&quot;.If I want to create a prompt for something like an image lightbox or feedback form, I&#039;d probably want to differentiate it from an alert but it may share a lot of the existing styles.To do this currently I&#039;d set a different prefix, say &quot;litebox&quot;, but that would lose any &quot;jqi&quot; prefix-based styles, so I&#039;d have to go through all the common style in the CSS and insert selectors for &#039;litebox&quot; alongside &quot;jqi&quot;. Soon the CSS starts to get a cumbersome. E.g.div.jqi {background:#fff; border:solid #000 2px; width: 400px;}
div.jqibuttons {background-color:#eee; font-weight:bold;}
div.jqi .jqiclose {position:absolute;top:0;right:0}
div.jqi .jqimessage {color:#000; padding:10px 5px;}...becomes...div.jqi, div.litebox {background:#fff; border:solid #000 2px; width: 400px;}
div.jqibuttons, div.liteboxbuttons {background-color:#eee; font-weight:bold;}
div.jqi .jqiclose, div.litebox .liteboxclose {position:absolute;top:0;right:0}
div.jqi .jqimessage, div.litebox .liteboxclose {color:#000; padding:10px 5px;}div.litebox {border:dotted #999 2px;}
div.liteboxbuttons {background-color:#fff;}
div.litebox .liteboxclose {left:0}Obviously this is a hugely simplified version of real CSS, which quickly gets difficult to manage, especially if you add another style of prompt. However if there was a way to set a unique selector &quot;handle&quot; (class or id) on the top-most container, all my prompts could use the same existing prefix and associated CSS but I could override a select few by adding CSS entries to change only the properties that apply to the new prompt. E.g.div.jqi {background:#fff; border:solid #000 2px; width: 400px;}
div.jqibuttons {background-color:#eee; font-weight:bold;}
div.jqi .jqiclose {position:absolute;top:0;right:0}
div.jqi .jqimessage {color:#000; padding:10px 5px;}.litebox div.jqi {border:dotted #999 2px;}
.litebox div.jqibuttons {background-color:#fff;}
.litebox .jqiclose {left:0}Hope that demonstrates what I was referring to! :)</description> <content:encoded><![CDATA[<p>Hi Trent. I was using the id attribute as an example &#8211; a class would do just as well.<br
/> It is the CSS prefix that I&#8217;m referring to. Consider I&#8217;ve got styles for a prompt that&#8217;s intended to replace the typical alert box. I&#8217;ve set up styles on the default &#8220;jqi&#8221; prefix for the fade, borders and background, close gadget, buttons, text and so on. These are of course on classes prefixed by &#8220;jqi&#8221;.</p><p>If I want to create a prompt for something like an image lightbox or feedback form, I&#8217;d probably want to differentiate it from an alert but it may share a lot of the existing styles.</p><p>To do this currently I&#8217;d set a different prefix, say &#8220;litebox&#8221;, but that would lose any &#8220;jqi&#8221; prefix-based styles, so I&#8217;d have to go through all the common style in the CSS and insert selectors for &#8216;litebox&#8221; alongside &#8220;jqi&#8221;. Soon the CSS starts to get a cumbersome. E.g.</p><p>div.jqi {background:#fff; border:solid #000 2px; width: 400px;}<br
/> div.jqibuttons {background-color:#eee; font-weight:bold;}<br
/> div.jqi .jqiclose {position:absolute;top:0;right:0}<br
/> div.jqi .jqimessage {color:#000; padding:10px 5px;}</p><p>&#8230;becomes&#8230;</p><p>div.jqi, div.litebox {background:#fff; border:solid #000 2px; width: 400px;}<br
/> div.jqibuttons, div.liteboxbuttons {background-color:#eee; font-weight:bold;}<br
/> div.jqi .jqiclose, div.litebox .liteboxclose {position:absolute;top:0;right:0}<br
/> div.jqi .jqimessage, div.litebox .liteboxclose {color:#000; padding:10px 5px;}</p><p>div.litebox {border:dotted #999 2px;}<br
/> div.liteboxbuttons {background-color:#fff;}<br
/> div.litebox .liteboxclose {left:0}</p><p>Obviously this is a hugely simplified version of real CSS, which quickly gets difficult to manage, especially if you add another style of prompt. However if there was a way to set a unique selector &#8220;handle&#8221; (class or id) on the top-most container, all my prompts could use the same existing prefix and associated CSS but I could override a select few by adding CSS entries to change only the properties that apply to the new prompt. E.g.</p><p>div.jqi {background:#fff; border:solid #000 2px; width: 400px;}<br
/> div.jqibuttons {background-color:#eee; font-weight:bold;}<br
/> div.jqi .jqiclose {position:absolute;top:0;right:0}<br
/> div.jqi .jqimessage {color:#000; padding:10px 5px;}</p><p>.litebox div.jqi {border:dotted #999 2px;}<br
/> .litebox div.jqibuttons {background-color:#fff;}<br
/> .litebox .jqiclose {left:0}</p><p>Hope that demonstrates what I was referring to! :)</p> ]]></content:encoded> </item> <item><title>By: trent</title><link>http://trentrichardson.com/2009/12/18/jquery-impromptu-2-8-a-couple-tweaks/comment-page-1/#comment-14649</link> <dc:creator>trent</dc:creator> <pubDate>Fri, 12 Feb 2010 19:56:25 +0000</pubDate> <guid
isPermaLink="false">http://trentrichardson.com/?p=434#comment-14649</guid> <description>Hey Gareth,  prefix is mainly for the css, in case you have more than one layout or theme, its easy to toggle between the two by just changing prefix.  As far as id goes there should never be more than one prompt at the time on a page, so not sure how that would harm anything.  Could you shed a little more light on your situation?</description> <content:encoded><![CDATA[<p>Hey Gareth,  prefix is mainly for the css, in case you have more than one layout or theme, its easy to toggle between the two by just changing prefix.  As far as id goes there should never be more than one prompt at the time on a page, so not sure how that would harm anything.  Could you shed a little more light on your situation?</p> ]]></content:encoded> </item> <item><title>By: Gareth</title><link>http://trentrichardson.com/2009/12/18/jquery-impromptu-2-8-a-couple-tweaks/comment-page-1/#comment-14647</link> <dc:creator>Gareth</dc:creator> <pubDate>Fri, 12 Feb 2010 18:13:59 +0000</pubDate> <guid
isPermaLink="false">http://trentrichardson.com/?p=434#comment-14647</guid> <description>I&#039;ve been using Impromptu for a couple of year and one thing that keeps niggling at me is the &quot;prefix&quot; option; because it prefixes the id and all class attributes, it means the CSS for subtly different prompts is pretty much mass duplication.Any chance an future update could have an additional &quot;idprefix&quot;? That way I can ensure the classes are distinct with the regular prefix option, and change the &quot;idprefix&quot; to switch different types of prompt without having to dupe my CSSCheers, G</description> <content:encoded><![CDATA[<p>I&#8217;ve been using Impromptu for a couple of year and one thing that keeps niggling at me is the &#8220;prefix&#8221; option; because it prefixes the id and all class attributes, it means the CSS for subtly different prompts is pretty much mass duplication.</p><p>Any chance an future update could have an additional &#8220;idprefix&#8221;? That way I can ensure the classes are distinct with the regular prefix option, and change the &#8220;idprefix&#8221; to switch different types of prompt without having to dupe my CSS</p><p>Cheers, G</p> ]]></content:encoded> </item> <item><title>By: trent</title><link>http://trentrichardson.com/2009/12/18/jquery-impromptu-2-8-a-couple-tweaks/comment-page-1/#comment-14596</link> <dc:creator>trent</dc:creator> <pubDate>Thu, 04 Feb 2010 18:29:49 +0000</pubDate> <guid
isPermaLink="false">http://trentrichardson.com/?p=434#comment-14596</guid> <description>Thanks liz!  And glad you got it working!</description> <content:encoded><![CDATA[<p>Thanks liz!  And glad you got it working!</p> ]]></content:encoded> </item> <item><title>By: liz</title><link>http://trentrichardson.com/2009/12/18/jquery-impromptu-2-8-a-couple-tweaks/comment-page-1/#comment-14593</link> <dc:creator>liz</dc:creator> <pubDate>Thu, 04 Feb 2010 16:32:28 +0000</pubDate> <guid
isPermaLink="false">http://trentrichardson.com/?p=434#comment-14593</guid> <description>Thanks a million Trent - the external load worked like a charm and makes everything alot cleaner.  Talk about callbacks:  I used the impromptu loaded callback to do a jq .load of my html form which specified a callback to load my fields and bind the data validation.Life is good - thank you for your help!  Coffee/beer on me!</description> <content:encoded><![CDATA[<p>Thanks a million Trent &#8211; the external load worked like a charm and makes everything alot cleaner.  Talk about callbacks:  I used the impromptu loaded callback to do a jq .load of my html form which specified a callback to load my fields and bind the data validation.</p><p>Life is good &#8211; thank you for your help!  Coffee/beer on me!</p> ]]></content:encoded> </item> <item><title>By: trent</title><link>http://trentrichardson.com/2009/12/18/jquery-impromptu-2-8-a-couple-tweaks/comment-page-1/#comment-14584</link> <dc:creator>trent</dc:creator> <pubDate>Wed, 03 Feb 2010 21:16:50 +0000</pubDate> <guid
isPermaLink="false">http://trentrichardson.com/?p=434#comment-14584</guid> <description>Is your code sort of copying the form into impromptu? so there are technically two elements with the same ID?  What you might try doing is place the form in an external html file and load it with ajax (I have an impromptu example of doing this: http://trentrichardson.com/Impromptu/demos/demoajax.php )  Otherwise you could try destroying the old form before tying the events to the new one you&#039;re placing in Impromptu.</description> <content:encoded><![CDATA[<p>Is your code sort of copying the form into impromptu? so there are technically two elements with the same ID?  What you might try doing is place the form in an external html file and load it with ajax (I have an impromptu example of doing this: <a
href="http://trentrichardson.com/Impromptu/demos/demoajax.php" rel="nofollow">http://trentrichardson.com/Impromptu/demos/demoajax.php</a> )  Otherwise you could try destroying the old form before tying the events to the new one you&#8217;re placing in Impromptu.</p> ]]></content:encoded> </item> <item><title>By: liz</title><link>http://trentrichardson.com/2009/12/18/jquery-impromptu-2-8-a-couple-tweaks/comment-page-1/#comment-14582</link> <dc:creator>liz</dc:creator> <pubDate>Wed, 03 Feb 2010 20:24:37 +0000</pubDate> <guid
isPermaLink="false">http://trentrichardson.com/?p=434#comment-14582</guid> <description>Hi Trent -Love Impromptu and you have done a great job documenting it!  I was wondering if I could impose and ask a question (more js related than Impromptu) that you would know off the top of your head as to my not having any luck googling anything for this so far....I want to have a form (which I&#039;m using jquery validator plug in) loaded by Impromptu that I have defined in my html file (not dynamically constructed in my js).  I am setting the visibility via jq, calling my validation init fn, then using the $(&#039;#myForm&#039;).html() for my impromptu html parameter.  It displays the form correctly, but none of my validation, any events binded nor field values that I&#039;ve loaded are carried through.Are there any hints that you can see right off as to what I as a &#039;not-expert&#039; js person isn&#039;t seeing?  I know this isn&#039;t specifically Impromptu - Greatly appreciated!</description> <content:encoded><![CDATA[<p>Hi Trent -</p><p>Love Impromptu and you have done a great job documenting it!  I was wondering if I could impose and ask a question (more js related than Impromptu) that you would know off the top of your head as to my not having any luck googling anything for this so far&#8230;.</p><p>I want to have a form (which I&#8217;m using jquery validator plug in) loaded by Impromptu that I have defined in my html file (not dynamically constructed in my js).  I am setting the visibility via jq, calling my validation init fn, then using the $(&#8216;#myForm&#8217;).html() for my impromptu html parameter.  It displays the form correctly, but none of my validation, any events binded nor field values that I&#8217;ve loaded are carried through.</p><p>Are there any hints that you can see right off as to what I as a &#8216;not-expert&#8217; js person isn&#8217;t seeing?  I know this isn&#8217;t specifically Impromptu &#8211; Greatly appreciated!</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 3/16 queries in 0.009 seconds using disk: basic
Object Caching 350/350 objects using disk: basic

Served from: trentrichardson.com @ 2012-05-21 04:36:34 -->
