<?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: Welcome jQuery Impromptu 2.6</title> <atom:link href="http://trentrichardson.com/2009/05/27/welcome-jquery-impromptu-26/feed/" rel="self" type="application/rss+xml" /><link>http://trentrichardson.com/2009/05/27/welcome-jquery-impromptu-26/</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: Hill20Kerry</title><link>http://trentrichardson.com/2009/05/27/welcome-jquery-impromptu-26/comment-page-1/#comment-16157</link> <dc:creator>Hill20Kerry</dc:creator> <pubDate>Thu, 08 Apr 2010 16:23:30 +0000</pubDate> <guid
isPermaLink="false">http://trentrichardson.com/?p=346#comment-16157</guid> <description>I opine that to receive the &lt;a href=&quot;http://lowest-rate-loans.com/topics/personal-loans&quot; rel=&quot;nofollow&quot;&gt;personal loans&lt;/a&gt; from banks you should present a good motivation. But, once I have got a sba loan, just because I was willing to buy a bike.</description> <content:encoded><![CDATA[<p>I opine that to receive the <a
href="http://lowest-rate-loans.com/topics/personal-loans" rel="nofollow">personal loans</a> from banks you should present a good motivation. But, once I have got a sba loan, just because I was willing to buy a bike.</p> ]]></content:encoded> </item> <item><title>By: Jon Anderson</title><link>http://trentrichardson.com/2009/05/27/welcome-jquery-impromptu-26/comment-page-1/#comment-11942</link> <dc:creator>Jon Anderson</dc:creator> <pubDate>Tue, 21 Jul 2009 20:38:40 +0000</pubDate> <guid
isPermaLink="false">http://trentrichardson.com/?p=346#comment-11942</guid> <description>Yep, I was plucking away at it while waiting for your answer.  Learned a lot in a short time.  Thank you again!</description> <content:encoded><![CDATA[<p>Yep, I was plucking away at it while waiting for your answer.  Learned a lot in a short time.  Thank you again!</p> ]]></content:encoded> </item> <item><title>By: trent</title><link>http://trentrichardson.com/2009/05/27/welcome-jquery-impromptu-26/comment-page-1/#comment-11941</link> <dc:creator>trent</dc:creator> <pubDate>Tue, 21 Jul 2009 20:33:52 +0000</pubDate> <guid
isPermaLink="false">http://trentrichardson.com/?p=346#comment-11941</guid> <description>so you got it to work?  Sorry I noticed I had a couple small errors, but looks like you caught them.</description> <content:encoded><![CDATA[<p>so you got it to work?  Sorry I noticed I had a couple small errors, but looks like you caught them.</p> ]]></content:encoded> </item> <item><title>By: Jon Anderson</title><link>http://trentrichardson.com/2009/05/27/welcome-jquery-impromptu-26/comment-page-1/#comment-11940</link> <dc:creator>Jon Anderson</dc:creator> <pubDate>Tue, 21 Jul 2009 20:21:04 +0000</pubDate> <guid
isPermaLink="false">http://trentrichardson.com/?p=346#comment-11940</guid> <description>Uh...minus the extra semi-colon  :)</description> <content:encoded><![CDATA[<p>Uh&#8230;minus the extra semi-colon  :)</p> ]]></content:encoded> </item> <item><title>By: Jon Anderson</title><link>http://trentrichardson.com/2009/05/27/welcome-jquery-impromptu-26/comment-page-1/#comment-11939</link> <dc:creator>Jon Anderson</dc:creator> <pubDate>Tue, 21 Jul 2009 20:20:29 +0000</pubDate> <guid
isPermaLink="false">http://trentrichardson.com/?p=346#comment-11939</guid> <description>Ended up with this at top:$(function(){
$(&#039;a.popup&#039;).click(function(){
var linkurl = $(this).attr(&#039;href&#039;);
$.prompt(&#039;Are you able to sign in to your account?You\&#039;ll need to sign in to submit a support ticket.&#039;,{ buttons: { Yes: true, No: false },
callback: function(v,m,f){
if(v == false){window.location = &quot;page1.html&quot;;
}
else { window.location = linkurl;; }
}
});
return false; //automatically return false
});
});And links looking like:&lt;a href=&quot;page2.html&quot; rel=&quot;nofollow&quot;&gt;Page 2&lt;/a&gt;</description> <content:encoded><![CDATA[<p>Ended up with this at top:</p><p>$(function(){<br
/> $(&#8216;a.popup&#8217;).click(function(){<br
/> var linkurl = $(this).attr(&#8216;href&#8217;);<br
/> $.prompt(&#8216;Are you able to sign in to your account?You\&#8217;ll need to sign in to submit a support ticket.&#8217;,{ buttons: { Yes: true, No: false },<br
/> callback: function(v,m,f){<br
/> if(v == false){window.location = &#8220;page1.html&#8221;;<br
/> }<br
/> else { window.location = linkurl;; }<br
/> }<br
/> });<br
/> return false; //automatically return false<br
/> });<br
/> });</p><p>And links looking like:</p><p><a
href="page2.html" rel="nofollow">Page 2</a></p> ]]></content:encoded> </item> <item><title>By: Jon Anderson</title><link>http://trentrichardson.com/2009/05/27/welcome-jquery-impromptu-26/comment-page-1/#comment-11938</link> <dc:creator>Jon Anderson</dc:creator> <pubDate>Tue, 21 Jul 2009 20:18:40 +0000</pubDate> <guid
isPermaLink="false">http://trentrichardson.com/?p=346#comment-11938</guid> <description>Got it!  Woo!  Thanks..</description> <content:encoded><![CDATA[<p>Got it!  Woo!  Thanks..</p> ]]></content:encoded> </item> <item><title>By: trent</title><link>http://trentrichardson.com/2009/05/27/welcome-jquery-impromptu-26/comment-page-1/#comment-11937</link> <dc:creator>trent</dc:creator> <pubDate>Tue, 21 Jul 2009 20:18:16 +0000</pubDate> <guid
isPermaLink="false">http://trentrichardson.com/?p=346#comment-11937</guid> <description>Ok, now you can just add some buttons to Impromptu and handle the event accordingly.  First we need to get the url in the link that was clicked.  So just before the $.prompt add this:var linkurl = $(this).attr(&#039;href&#039;);Now we will replace the $.prompt with one more complex:$.prompt(&#039;Hello World!&#039;,{buttons:{Yes:true,No:false}, function(v,m,f){
if(v) { window.location = linkurl; }
else { window.location = &quot;http://yahoo.com&quot;; }//do something different
}
});leave everything else the same.</description> <content:encoded><![CDATA[<p>Ok, now you can just add some buttons to Impromptu and handle the event accordingly.  First we need to get the url in the link that was clicked.  So just before the $.prompt add this:</p><p>var linkurl = $(this).attr(&#8216;href&#8217;);</p><p>Now we will replace the $.prompt with one more complex:</p><p>$.prompt(&#8216;Hello World!&#8217;,{buttons:{Yes:true,No:false}, function(v,m,f){<br
/> if(v) { window.location = linkurl; }<br
/> else { window.location = &#8220;http://yahoo.com&#8221;; }//do something different<br
/> }<br
/> });</p><p>leave everything else the same.</p> ]]></content:encoded> </item> <item><title>By: Jon Anderson</title><link>http://trentrichardson.com/2009/05/27/welcome-jquery-impromptu-26/comment-page-1/#comment-11936</link> <dc:creator>Jon Anderson</dc:creator> <pubDate>Tue, 21 Jul 2009 20:10:13 +0000</pubDate> <guid
isPermaLink="false">http://trentrichardson.com/?p=346#comment-11936</guid> <description>I added in your script (top) and just did a simple &quot;hello world&quot; test on the link and it works fine (thank you!).  The problem now seems to be my more complex prompt for false in the onclick event. can&#039;t get it to do anything..</description> <content:encoded><![CDATA[<p>I added in your script (top) and just did a simple &#8220;hello world&#8221; test on the link and it works fine (thank you!).  The problem now seems to be my more complex prompt for false in the onclick event. can&#8217;t get it to do anything..</p> ]]></content:encoded> </item> <item><title>By: Jon Anderson</title><link>http://trentrichardson.com/2009/05/27/welcome-jquery-impromptu-26/comment-page-1/#comment-11935</link> <dc:creator>Jon Anderson</dc:creator> <pubDate>Tue, 21 Jul 2009 20:03:07 +0000</pubDate> <guid
isPermaLink="false">http://trentrichardson.com/?p=346#comment-11935</guid> <description>Okay, stupidness.  Probably important to have jquery load first.Now your sample works.</description> <content:encoded><![CDATA[<p>Okay, stupidness.  Probably important to have jquery load first.</p><p>Now your sample works.</p> ]]></content:encoded> </item> <item><title>By: trent</title><link>http://trentrichardson.com/2009/05/27/welcome-jquery-impromptu-26/comment-page-1/#comment-11932</link> <dc:creator>trent</dc:creator> <pubDate>Tue, 21 Jul 2009 19:50:24 +0000</pubDate> <guid
isPermaLink="false">http://trentrichardson.com/?p=346#comment-11932</guid> <description>be sure to replace any weird &#039; or &quot; with true single or double quotes.. the blog likes to make the funny characters..</description> <content:encoded><![CDATA[<p>be sure to replace any weird &#8216; or &#8221; with true single or double quotes.. the blog likes to make the funny characters..</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 2/16 queries in 0.028 seconds using disk: basic
Object Caching 350/350 objects using disk: basic

Served from: trentrichardson.com @ 2012-05-21 04:11:12 -->
