<?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: Calling All Creative Impromptu Users</title> <atom:link href="http://trentrichardson.com/2007/10/03/calling-all-creative-impromptu-users/feed/" rel="self" type="application/rss+xml" /><link>http://trentrichardson.com/2007/10/03/calling-all-creative-impromptu-users/</link> <description>practical web design &#38; development</description> <lastBuildDate>Wed, 16 May 2012 12:15:11 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>By: trent</title><link>http://trentrichardson.com/2007/10/03/calling-all-creative-impromptu-users/comment-page-1/#comment-1954</link> <dc:creator>trent</dc:creator> <pubDate>Sun, 28 Oct 2007 22:00:48 +0000</pubDate> <guid
isPermaLink="false">http://trentrichardson.com/?p=26#comment-1954</guid> <description>Chris,I come up with an example to help you out!http://www.trentrichardson.com/Impromptu/demos/demo1.html</description> <content:encoded><![CDATA[<p>Chris,</p><p>I come up with an example to help you out!</p><p><a
href="http://www.trentrichardson.com/Impromptu/demos/demo1.html" rel="nofollow">http://www.trentrichardson.com/Impromptu/demos/demo1.html</a></p> ]]></content:encoded> </item> <item><title>By: trent</title><link>http://trentrichardson.com/2007/10/03/calling-all-creative-impromptu-users/comment-page-1/#comment-1953</link> <dc:creator>trent</dc:creator> <pubDate>Sun, 28 Oct 2007 20:43:42 +0000</pubDate> <guid
isPermaLink="false">http://trentrichardson.com/?p=26#comment-1953</guid> <description>Hi Chris,This plugin is exactly what you need for such as this.  First off take a look at question and answer 10 and 11 on this page:http://trentrichardson.com/?p=23
and my example 8 here
http://www.trentrichardson.com/Impromptu/This is how you would want to start out. For your prompt you will want to use two buttons, Delete and Cancel:buttons:{Delete:true,Cancel:false},and the callback.  (look at question and answer 10 and 11 on the first link above)  If Delete was clicked( if(v){...} ) you will want to do an ajax post.  jQuery ajax docs here:http://docs.jquery.com/AjaxHow do you get the database user id for each user?  When printing out your delete buttons for the users I would include an html input element within the prompt text where the value is the userid.  Now we can get the value of the user of the delete button that is clicked.  so to get the value from the prompt that was clicked might look like...function myCallback(v,m){
if(v){uid = m.find(&#039;input.userid&#039;).val();
jQuery.post(&#039;removeuser.php&#039;,{user:uid},removedcallback);}
else{}}After this successfully posts, it will call the removecallback() function.  Here you will want to remove the user(consider we just removed user 3 from your list of users..removecallback = function(){
$(&#039;div.userid3&#039;).remove();
}Hope this helps, I will try to whip up a simple example of such sometime today!</description> <content:encoded><![CDATA[<p>Hi Chris,</p><p>This plugin is exactly what you need for such as this.  First off take a look at question and answer 10 and 11 on this page:</p><p><a
href="http://trentrichardson.com/?p=23" rel="nofollow">http://trentrichardson.com/?p=23</a><br
/> and my example 8 here<br
/> <a
href="http://www.trentrichardson.com/Impromptu/" rel="nofollow">http://www.trentrichardson.com/Impromptu/</a></p><p>This is how you would want to start out. For your prompt you will want to use two buttons, Delete and Cancel:</p><p>buttons:{Delete:true,Cancel:false},</p><p>and the callback.  (look at question and answer 10 and 11 on the first link above)  If Delete was clicked( if(v){&#8230;} ) you will want to do an ajax post.  jQuery ajax docs here:</p><p><a
href="http://docs.jquery.com/Ajax" rel="nofollow">http://docs.jquery.com/Ajax</a></p><p>How do you get the database user id for each user?  When printing out your delete buttons for the users I would include an html input element within the prompt text where the value is the userid.  Now we can get the value of the user of the delete button that is clicked.  so to get the value from the prompt that was clicked might look like&#8230;</p><p>function myCallback(v,m){<br
/> if(v){</p><p>uid = m.find(&#8216;input.userid&#8217;).val();<br
/> jQuery.post(&#8216;removeuser.php&#8217;,{user:uid},removedcallback);</p><p>}<br
/> else{}</p><p>}</p><p>After this successfully posts, it will call the removecallback() function.  Here you will want to remove the user(consider we just removed user 3 from your list of users..</p><p>removecallback = function(){<br
/> $(&#8216;div.userid3&#8242;).remove();<br
/> }</p><p>Hope this helps, I will try to whip up a simple example of such sometime today!</p> ]]></content:encoded> </item> <item><title>By: Chris</title><link>http://trentrichardson.com/2007/10/03/calling-all-creative-impromptu-users/comment-page-1/#comment-1952</link> <dc:creator>Chris</dc:creator> <pubDate>Sun, 28 Oct 2007 18:27:24 +0000</pubDate> <guid
isPermaLink="false">http://trentrichardson.com/?p=26#comment-1952</guid> <description>Trent,Just like to say great stuff here. I&#039;m new with JQuery and I was looking for a nice modal pop-up window to integrate with a new web app we&#039;re creating and this fits the bill nicely.Quick Question...In my web app I have a page that will list out say users and for each user there would be a delete link beside them which when clicked would bring up the modal pop-up window.Issue is when the window comes up and the user for instance clicks &quot;yes&quot; to delete something I need to somehow capture that action and perform the necessary deletion in the dbase.Im assuming the page I use to spawn the modal window needs some sort of listener to listen for a particular action whcih would come from the modal pop-up window. Other issue is how do I take the javascript action and actually do the deletion of a specific record utilizing php?This might not be the correct forum for this but I&#039;ve looked high and low for answers but I cannot seem to find anything.I&#039;d appreciate any help you might be able to offer or any links to a tutorial that might deal with this.</description> <content:encoded><![CDATA[<p>Trent,</p><p>Just like to say great stuff here. I&#8217;m new with JQuery and I was looking for a nice modal pop-up window to integrate with a new web app we&#8217;re creating and this fits the bill nicely.</p><p>Quick Question&#8230;</p><p>In my web app I have a page that will list out say users and for each user there would be a delete link beside them which when clicked would bring up the modal pop-up window.</p><p>Issue is when the window comes up and the user for instance clicks &#8220;yes&#8221; to delete something I need to somehow capture that action and perform the necessary deletion in the dbase.</p><p>Im assuming the page I use to spawn the modal window needs some sort of listener to listen for a particular action whcih would come from the modal pop-up window. Other issue is how do I take the javascript action and actually do the deletion of a specific record utilizing php?</p><p>This might not be the correct forum for this but I&#8217;ve looked high and low for answers but I cannot seem to find anything.</p><p>I&#8217;d appreciate any help you might be able to offer or any links to a tutorial that might deal with this.</p> ]]></content:encoded> </item> <item><title>By: trent</title><link>http://trentrichardson.com/2007/10/03/calling-all-creative-impromptu-users/comment-page-1/#comment-1865</link> <dc:creator>trent</dc:creator> <pubDate>Tue, 16 Oct 2007 12:59:22 +0000</pubDate> <guid
isPermaLink="false">http://trentrichardson.com/?p=26#comment-1865</guid> <description>I&#039;ve added a couple new themes to the docs page as examples 12 and 13:http://trentrichardson.com/Impromptu/Please feel free to send in your designs if you would like to share.  Show off your CSS flexibility!</description> <content:encoded><![CDATA[<p>I&#8217;ve added a couple new themes to the docs page as examples 12 and 13:</p><p><a
href="http://trentrichardson.com/Impromptu/" rel="nofollow">http://trentrichardson.com/Impromptu/</a></p><p>Please feel free to send in your designs if you would like to share.  Show off your CSS flexibility!</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/10 queries in 0.021 seconds using disk: basic
Object Caching 260/260 objects using disk: basic

Served from: trentrichardson.com @ 2012-05-16 23:29:03 -->
