<?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: CRUD using jQuery and Codeigniter – III</title>
	<atom:link href="http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/</link>
	<description>Web Development Blog</description>
	<lastBuildDate>Wed, 25 Jan 2012 20:21:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: jorolino</title>
		<link>http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/comment-page-1/#comment-621</link>
		<dc:creator>jorolino</dc:creator>
		<pubDate>Thu, 12 Aug 2010 09:56:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.ifadey.com/?p=210#comment-621</guid>
		<description>Thanks its works i add this code to display select option $( &#039;#seriesselect&#039; ).html(&quot;Select&quot;);</description>
		<content:encoded><![CDATA[<p>Thanks its works i add this code to display select option $( &#8216;#seriesselect&#8217; ).html(&#8220;Select&#8221;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iFadey</title>
		<link>http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/comment-page-1/#comment-584</link>
		<dc:creator>iFadey</dc:creator>
		<pubDate>Wed, 11 Aug 2010 05:22:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.ifadey.com/?p=210#comment-584</guid>
		<description>If you mean the series are concatenating in the select element instead of replacing, add following line of code where your wrote the comment &quot;//need to clear old data&quot;:

$( &#039;#seriesselect&#039; ).html( &#039;&#039; );</description>
		<content:encoded><![CDATA[<p>If you mean the series are concatenating in the select element instead of replacing, add following line of code where your wrote the comment &#8220;//need to clear old data&#8221;:</p>
<p>$( &#8216;#seriesselect&#8217; ).html( &#8221; );</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jorolino</title>
		<link>http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/comment-page-1/#comment-575</link>
		<dc:creator>jorolino</dc:creator>
		<pubDate>Tue, 10 Aug 2010 10:07:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.ifadey.com/?p=210#comment-575</guid>
		<description>Hello i try this in view 

                            select
                                       
                       

    ${brands_name};
 


                            select
    
                                            
    ${series_name};
  


in js file
$.ajax({
        url: &#039;admin/models/get_brands&#039;,
        dataType: &#039;json&#039;,
       success: function( response ) {
            $( &#039;#brandTemplate&#039; ).render( response ).appendTo( &quot;#brandsselect&quot; );
        }
    });
   
  
    $(&#039;#brandsselect&#039;).change(function() {
        brands_id = $(&#039;#brandsselect&#039;) .val();
        //need to clear old data
        $.ajax({
            url: &#039;admin/models/get_series_one/&#039; + brands_id,
            dataType: &#039;json&#039;,
             success: function( response ) {
             $( &#039;#seriesTemplate&#039; ).render( response ).appendTo( &quot;#seriesselect&quot; );
            }
        });
    });

problem is after change the brand several times , series select is populated with multiple records , i need to reset every time after change the brands. How to do this ?</description>
		<content:encoded><![CDATA[<p>Hello i try this in view </p>
<p>                            select</p>
<p>    ${brands_name};</p>
<p>                            select</p>
<p>    ${series_name};</p>
<p>in js file<br />
$.ajax({<br />
        url: &#8216;admin/models/get_brands&#8217;,<br />
        dataType: &#8216;json&#8217;,<br />
       success: function( response ) {<br />
            $( &#8216;#brandTemplate&#8217; ).render( response ).appendTo( &#8220;#brandsselect&#8221; );<br />
        }<br />
    });</p>
<p>    $(&#8216;#brandsselect&#8217;).change(function() {<br />
        brands_id = $(&#8216;#brandsselect&#8217;) .val();<br />
        //need to clear old data<br />
        $.ajax({<br />
            url: &#8216;admin/models/get_series_one/&#8217; + brands_id,<br />
            dataType: &#8216;json&#8217;,<br />
             success: function( response ) {<br />
             $( &#8216;#seriesTemplate&#8217; ).render( response ).appendTo( &#8220;#seriesselect&#8221; );<br />
            }<br />
        });<br />
    });</p>
<p>problem is after change the brand several times , series select is populated with multiple records , i need to reset every time after change the brands. How to do this ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iFadey</title>
		<link>http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/comment-page-1/#comment-433</link>
		<dc:creator>iFadey</dc:creator>
		<pubDate>Fri, 30 Jul 2010 05:41:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.ifadey.com/?p=210#comment-433</guid>
		<description>Your welcome and Part 4 is out now</description>
		<content:encoded><![CDATA[<p>Your welcome and Part 4 is out now</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: saija</title>
		<link>http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/comment-page-1/#comment-420</link>
		<dc:creator>saija</dc:creator>
		<pubDate>Thu, 29 Jul 2010 14:44:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.ifadey.com/?p=210#comment-420</guid>
		<description>it works, Hassan, thanks... :)
can&#039;t hardly wait for the next part of your tutorial</description>
		<content:encoded><![CDATA[<p>it works, Hassan, thanks&#8230; <img src='http://www.ifadey.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
can&#8217;t hardly wait for the next part of your tutorial</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iFadey</title>
		<link>http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/comment-page-1/#comment-416</link>
		<dc:creator>iFadey</dc:creator>
		<pubDate>Thu, 29 Jul 2010 07:35:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.ifadey.com/?p=210#comment-416</guid>
		<description>Yeah I got the point. To do so you need to make a READ Ajax call to a controller method which returns the list of countries. The process is very similar to READ operation as explained in Part 1 of this series. All you need to do is change template:

&lt;script type=&quot;text/template&quot; id=&quot;countryListTemplate&quot;&gt;
   &lt;option value=&quot;${id}&quot;&gt;${country}&lt;/option&gt;
&lt;/script&gt;

Then give an id countryList to select element:
&lt;select id=&quot;countryList&quot; name=&quot;countryList&quot;&gt;&lt;/select&gt;

Finally add following lines of code in your script file:

$( function() {
    $.ajax({
        url: &#039;url_to_controller_method_OR_php_file&#039;,
        dataType: &#039;json&#039;,
        success: function( response ) {
            $( &#039;#countryListTemplate&#039; ).render( response ).appendTo( &quot;#countryList&quot; );
        }
    });
});

That&#039;s it :)</description>
		<content:encoded><![CDATA[<p>Yeah I got the point. To do so you need to make a READ Ajax call to a controller method which returns the list of countries. The process is very similar to READ operation as explained in Part 1 of this series. All you need to do is change template:</p>
<p>&lt;script type=&#8221;text/template&#8221; id=&#8221;countryListTemplate&#8221;&gt;<br />
   &lt;option value=&#8221;${id}&#8221;&gt;${country}&lt;/option&gt;<br />
&lt;/script&gt;</p>
<p>Then give an id countryList to select element:<br />
&lt;select id=&#8221;countryList&#8221; name=&#8221;countryList&#8221;&gt;&lt;/select&gt;</p>
<p>Finally add following lines of code in your script file:</p>
<p>$( function() {<br />
    $.ajax({<br />
        url: &#8216;url_to_controller_method_OR_php_file&#8217;,<br />
        dataType: &#8216;json&#8217;,<br />
        success: function( response ) {<br />
            $( &#8216;#countryListTemplate&#8217; ).render( response ).appendTo( &#8220;#countryList&#8221; );<br />
        }<br />
    });<br />
});</p>
<p>That&#8217;s it <img src='http://www.ifadey.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: saija</title>
		<link>http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/comment-page-1/#comment-414</link>
		<dc:creator>saija</dc:creator>
		<pubDate>Thu, 29 Jul 2010 06:44:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.ifadey.com/?p=210#comment-414</guid>
		<description>Hi, many thanks for your reply.

In my database, I add one more table called &quot;origin&quot;, the fields are &quot;id&quot;, &quot;country&quot; and &quot;capital&quot;. 
I also add a field called &quot;id_origin&quot; in &quot;user&quot; table. the &quot;id_origin&quot; refers to &quot;id&quot; in &quot;origin&quot; table.

what I want is, every time I click update, in the update dialog shows a dropdown which values and labels are populated from &quot;id&quot; and &quot;country&quot; in &quot;origin&quot; table.

hope this is clear enough :)</description>
		<content:encoded><![CDATA[<p>Hi, many thanks for your reply.</p>
<p>In my database, I add one more table called &#8220;origin&#8221;, the fields are &#8220;id&#8221;, &#8220;country&#8221; and &#8220;capital&#8221;.<br />
I also add a field called &#8220;id_origin&#8221; in &#8220;user&#8221; table. the &#8220;id_origin&#8221; refers to &#8220;id&#8221; in &#8220;origin&#8221; table.</p>
<p>what I want is, every time I click update, in the update dialog shows a dropdown which values and labels are populated from &#8220;id&#8221; and &#8220;country&#8221; in &#8220;origin&#8221; table.</p>
<p>hope this is clear enough <img src='http://www.ifadey.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iFadey</title>
		<link>http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/comment-page-1/#comment-413</link>
		<dc:creator>iFadey</dc:creator>
		<pubDate>Thu, 29 Jul 2010 05:16:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.ifadey.com/?p=210#comment-413</guid>
		<description>I didn&#039;t understood your question. Kindly can explain clearly?
You want dropdown in update dialog for what purpose?</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t understood your question. Kindly can explain clearly?<br />
You want dropdown in update dialog for what purpose?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: saija</title>
		<link>http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/comment-page-1/#comment-409</link>
		<dc:creator>saija</dc:creator>
		<pubDate>Wed, 28 Jul 2010 18:37:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.ifadey.com/?p=210#comment-409</guid>
		<description>great tutorial, Hassan. thank you very much.  
I have a question for you, I want to add a dropdown list in the update dialog which data is populated from database by ajax call, but I don&#039;t know how to do. could you explain the solution?</description>
		<content:encoded><![CDATA[<p>great tutorial, Hassan. thank you very much.<br />
I have a question for you, I want to add a dropdown list in the update dialog which data is populated from database by ajax call, but I don&#8217;t know how to do. could you explain the solution?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iFadey</title>
		<link>http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/comment-page-1/#comment-384</link>
		<dc:creator>iFadey</dc:creator>
		<pubDate>Mon, 26 Jul 2010 07:09:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.ifadey.com/?p=210#comment-384</guid>
		<description>After a week because I only get time to write tutorials on weekend.</description>
		<content:encoded><![CDATA[<p>After a week because I only get time to write tutorials on weekend.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iFadey</title>
		<link>http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/comment-page-1/#comment-383</link>
		<dc:creator>iFadey</dc:creator>
		<pubDate>Mon, 26 Jul 2010 07:08:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.ifadey.com/?p=210#comment-383</guid>
		<description>Are you using the demo app or you created your own from scratch?</description>
		<content:encoded><![CDATA[<p>Are you using the demo app or you created your own from scratch?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kieren</title>
		<link>http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/comment-page-1/#comment-381</link>
		<dc:creator>kieren</dc:creator>
		<pubDate>Mon, 26 Jul 2010 03:15:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.ifadey.com/?p=210#comment-381</guid>
		<description>When will you be posting up the create part of the tutorial?</description>
		<content:encoded><![CDATA[<p>When will you be posting up the create part of the tutorial?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: littleflow3r</title>
		<link>http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/comment-page-1/#comment-380</link>
		<dc:creator>littleflow3r</dc:creator>
		<pubDate>Mon, 26 Jul 2010 00:51:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.ifadey.com/?p=210#comment-380</guid>
		<description>hassan, when the update dialog closed after i make an update, the list wont change automatically. i have to refresh the page first before it changed the value. what&#039;s wrong with my script...?</description>
		<content:encoded><![CDATA[<p>hassan, when the update dialog closed after i make an update, the list wont change automatically. i have to refresh the page first before it changed the value. what&#8217;s wrong with my script&#8230;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iFadey</title>
		<link>http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/comment-page-1/#comment-360</link>
		<dc:creator>iFadey</dc:creator>
		<pubDate>Sat, 24 Jul 2010 11:13:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.ifadey.com/?p=210#comment-360</guid>
		<description>Your welcome Aslam. Yeah sure I shall try my best to include such features. Thanks for the suggestion.</description>
		<content:encoded><![CDATA[<p>Your welcome Aslam. Yeah sure I shall try my best to include such features. Thanks for the suggestion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aslam doctor</title>
		<link>http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/comment-page-1/#comment-356</link>
		<dc:creator>aslam doctor</dc:creator>
		<pubDate>Sat, 24 Jul 2010 02:16:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.ifadey.com/?p=210#comment-356</guid>
		<description>very nice tutorial. I have a heartily request. Will you plz include paging, sorting &amp; searching feature in &quot;Read&quot; tab. Will be appreciated.

Thank you</description>
		<content:encoded><![CDATA[<p>very nice tutorial. I have a heartily request. Will you plz include paging, sorting &amp; searching feature in &#8220;Read&#8221; tab. Will be appreciated.</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joro</title>
		<link>http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/comment-page-1/#comment-344</link>
		<dc:creator>joro</dc:creator>
		<pubDate>Wed, 21 Jul 2010 12:46:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.ifadey.com/?p=210#comment-344</guid>
		<description>Again good work, waiting for next part!!!</description>
		<content:encoded><![CDATA[<p>Again good work, waiting for next part!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iFadey</title>
		<link>http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/comment-page-1/#comment-343</link>
		<dc:creator>iFadey</dc:creator>
		<pubDate>Wed, 21 Jul 2010 08:16:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.ifadey.com/?p=210#comment-343</guid>
		<description>Yeah I fully understand the limitation of demo app.

Don&#039;t worry, in Part 5, validation will be covered :)</description>
		<content:encoded><![CDATA[<p>Yeah I fully understand the limitation of demo app.</p>
<p>Don&#8217;t worry, in Part 5, validation will be covered <img src='http://www.ifadey.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: littleflow3r</title>
		<link>http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/comment-page-1/#comment-342</link>
		<dc:creator>littleflow3r</dc:creator>
		<pubDate>Wed, 21 Jul 2010 08:09:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.ifadey.com/?p=210#comment-342</guid>
		<description>how about the form validation? i think its quite important..,</description>
		<content:encoded><![CDATA[<p>how about the form validation? i think its quite important..,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Musta</title>
		<link>http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/comment-page-1/#comment-341</link>
		<dc:creator>Musta</dc:creator>
		<pubDate>Wed, 21 Jul 2010 07:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.ifadey.com/?p=210#comment-341</guid>
		<description>Very interesting as usual. I liked the way you have explained everything. keep the good work and I&#039;m looking forward to reading the next tutorial.</description>
		<content:encoded><![CDATA[<p>Very interesting as usual. I liked the way you have explained everything. keep the good work and I&#8217;m looking forward to reading the next tutorial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: littleflow3r</title>
		<link>http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/comment-page-1/#comment-331</link>
		<dc:creator>littleflow3r</dc:creator>
		<pubDate>Tue, 20 Jul 2010 00:44:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.ifadey.com/?p=210#comment-331</guid>
		<description>Great, the next tutorial please..., i really want to know how to perform create.</description>
		<content:encoded><![CDATA[<p>Great, the next tutorial please&#8230;, i really want to know how to perform create.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jose</title>
		<link>http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/comment-page-1/#comment-330</link>
		<dc:creator>Jose</dc:creator>
		<pubDate>Tue, 20 Jul 2010 00:14:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.ifadey.com/?p=210#comment-330</guid>
		<description>Great details. Very good read for anyone trying get started with jquery and CI</description>
		<content:encoded><![CDATA[<p>Great details. Very good read for anyone trying get started with jquery and CI</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 14/36 queries in 0.290 seconds using disk: basic

Served from: www.ifadey.com @ 2012-02-04 21:42:09 -->
