<?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"
	>
<channel>
	<title>Comments on: AJAX-enabled Smarty plugins</title>
	<atom:link href="http://kpumuk.info/ajax/ajax-enabled-smarty-plugins/feed/" rel="self" type="application/rss+xml" />
	<link>http://kpumuk.info/ajax/ajax-enabled-smarty-plugins/</link>
	<description>In my blog I'll try to describe about interesting technologies, my discovery in IT and some useful things about programming.</description>
	<pubDate>Tue, 07 Oct 2008 04:42:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: raj</title>
		<link>http://kpumuk.info/ajax/ajax-enabled-smarty-plugins/#comment-238789</link>
		<dc:creator>raj</dc:creator>
		<pubDate>Sun, 30 Nov 2008 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/ajax/ajax-enabled-smarty-pluginsajax-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd%d1%8b-%d0%b4%d0%bb%d1%8f-smarty/#comment-238789</guid>
		<description>

&lt;code lang="html"&gt;
&lt;SELECT NAME="sel_art" onchange="{ajax_update update_id="get_collections" function="show_collections" url="get_collections.php" params="artist_id=1"}"&gt;			
			{foreach from=$artist item=arti}			
				&lt;OPTION VALUE="{$arti.id}"&gt;{$arti.artist_fname}&lt;/OPTION&gt;
			{/foreach}


&lt;SELECT NAME="sel_art" id="get_collections"&gt;&lt;/SELECT&gt;
			&lt;/SELECT&gt;
&lt;/code&gt;

</description>
		<content:encoded><![CDATA[<div class="codecolorer-container html"><div class="codecolorer" style="font-family: monospace;"><span class="sc2"><span class="kw2">&lt;SELECT</span> <span class="kw3">NAME</span>=<span class="st0">&quot;sel_art&quot;</span> <span class="kw3">onchange</span>=<span class="st0">&quot;{ajax_update update_id=&quot;</span>get_collections<span class="st0">&quot; function=&quot;</span>show_collections<span class="st0">&quot; url=&quot;</span>get_collections.php<span class="st0">&quot; params=&quot;</span>artist_id=<span class="nu0">1</span><span class="st0">&quot;}&quot;</span><span class="kw2">&gt;</span></span>&nbsp;&nbsp;&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {foreach from=$artist item=arti}&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc2"><span class="kw2">&lt;OPTION</span> <span class="kw3">VALUE</span>=<span class="st0">&quot;{$arti.id}&quot;</span><span class="kw2">&gt;</span></span>{$arti.artist_fname}<span class="sc2"><span class="kw2">&lt;/OPTION&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {/foreach}<br />
<br />
<br />
<span class="sc2"><span class="kw2">&lt;SELECT</span> <span class="kw3">NAME</span>=<span class="st0">&quot;sel_art&quot;</span> <span class="kw3">id</span>=<span class="st0">&quot;get_collections&quot;</span><span class="kw2">&gt;</span></span><span class="sc2"><span class="kw2">&lt;/SELECT&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc2"><span class="kw2">&lt;/SELECT&gt;</span></span></div></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexey@towndwarf</title>
		<link>http://kpumuk.info/ajax/ajax-enabled-smarty-plugins/#comment-219073</link>
		<dc:creator>Alexey@towndwarf</dc:creator>
		<pubDate>Sat, 30 Nov 2002 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/ajax/ajax-enabled-smarty-pluginsajax-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd%d1%8b-%d0%b4%d0%bb%d1%8f-smarty/#comment-219073</guid>
		<description>Fatal error: Smarty error: unable to write to $compile_dir '/home/hosting/kpumuk.info/samples/smarty_ajax/resources/templates_c'. Be sure $compile_dir is writable by the web server user. in /home/hosting/kpumuk.info/samples/smarty_ajax/include/smarty/Smarty.class.php on line 1095

:-(</description>
		<content:encoded><![CDATA[<p>Fatal error: Smarty error: unable to write to $compile_dir &#8216;/home/hosting/kpumuk.info/samples/smarty_ajax/resources/templates_c&#8217;. Be sure $compile_dir is writable by the web server user. in /home/hosting/kpumuk.info/samples/smarty_ajax/include/smarty/Smarty.class.php on line 1095</p>
<p> <img src='http://kpumuk.info/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Андрей</title>
		<link>http://kpumuk.info/ajax/ajax-enabled-smarty-plugins/#comment-180195</link>
		<dc:creator>Андрей</dc:creator>
		<pubDate>Sun, 30 Nov 2008 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/ajax/ajax-enabled-smarty-pluginsajax-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd%d1%8b-%d0%b4%d0%bb%d1%8f-smarty/#comment-180195</guid>
		<description>Добрый день.

Дмитрий, у меня вопрос. Есть форма калькулятора.

&lt;code lang="php"&gt;
{ajax_form method="post" id="calculator" url="index.php" params="task=calculator&#38;param=$someparam"}
&lt;/code&gt;

После submit возвращает на index.php, get параметры не передаются. Если в функции smarty_block_ajax_form убрать action='' - работает, но с перезагрузкой... 
Чего не так?</description>
		<content:encoded><![CDATA[<p>Добрый день.</p>
<p>Дмитрий, у меня вопрос. Есть форма калькулятора.</p>
<div class="codecolorer-container php" style="height:35px;"><div class="codecolorer" style="font-family: monospace;"><span class="br0">&#123;</span>ajax_form method=<span class="st0">&quot;post&quot;</span> id=<span class="st0">&quot;calculator&quot;</span> url=<span class="st0">&quot;index.php&quot;</span> params=<span class="st0">&quot;task=calculator&amp;amp;param=$someparam&quot;</span><span class="br0">&#125;</span></div></div>
<p>После submit возвращает на index.php, get параметры не передаются. Если в функции smarty_block_ajax_form убрать action=&#8221; - работает, но с перезагрузкой&#8230;<br />
Чего не так?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fauzia</title>
		<link>http://kpumuk.info/ajax/ajax-enabled-smarty-plugins/#comment-174860</link>
		<dc:creator>fauzia</dc:creator>
		<pubDate>Mon, 30 Nov 2009 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/ajax/ajax-enabled-smarty-pluginsajax-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd%d1%8b-%d0%b4%d0%bb%d1%8f-smarty/#comment-174860</guid>
		<description>hi,

I solved previouse problem.Now I am using ajax_update without function to send params to certain url.I want to send cat_id which is I am getting in section of template page.here is code:

[cc lang="html"]
{section name=cat loop="$category"}		
 &lt;tr&gt;
 &lt;td id="category_trid{$category[cat].id}" class="contenttext2"&gt;{$category[cat].id}
 &lt;a href="#" onclick="{ajax_update update_id='productlist_div'   params='catid=`$category[cat].id`&#038;page=product_list_ajax'}"&gt;{$category[cat].title}&lt;/a&gt;
 &lt;/td&gt;&lt;/tr&gt;
 {sectionelse}
 &lt;tr&gt;&lt;td&gt;No category..&lt;/td&gt;&lt;/tr&gt;
{/section}
[/cc]

I am not getting catid value but "$category[cat].id".why?
but it is giving code text in params not its value</description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>I solved previouse problem.Now I am using ajax_update without function to send params to certain url.I want to send cat_id which is I am getting in section of template page.here is code:</p>
<div class="codecolorer-container html"><div class="codecolorer" style="font-family: monospace;">{section name=cat loop=&quot;$category&quot;}&nbsp;&nbsp;<br />
&nbsp;<span class="sc2"><span class="kw2">&lt;tr&gt;</span></span><br />
&nbsp;<span class="sc2"><span class="kw2">&lt;td</span> <span class="kw3">id</span>=<span class="st0">&quot;category_trid{$category[cat].id}&quot;</span> <span class="kw3">class</span>=<span class="st0">&quot;contenttext2&quot;</span><span class="kw2">&gt;</span></span>{$category[cat].id}<br />
&nbsp;<span class="sc2"><span class="kw2">&lt;a</span> <span class="kw3">href</span>=<span class="st0">&quot;#&quot;</span> <span class="kw3">onclick</span>=<span class="st0">&quot;{ajax_update update_id='productlist_div'&nbsp; &nbsp;params='catid=`$category[cat].id`&amp;page=product_list_ajax'}&quot;</span><span class="kw2">&gt;</span></span>{$category[cat].title}<span class="sc2"><span class="kw2">&lt;/a&gt;</span></span><br />
&nbsp;<span class="sc2"><span class="kw2">&lt;/td&gt;</span></span><span class="sc2"><span class="kw2">&lt;/tr&gt;</span></span><br />
&nbsp;{sectionelse}<br />
&nbsp;<span class="sc2"><span class="kw2">&lt;tr&gt;</span></span><span class="sc2"><span class="kw2">&lt;td&gt;</span></span>No category..<span class="sc2"><span class="kw2">&lt;/td&gt;</span></span><span class="sc2"><span class="kw2">&lt;/tr&gt;</span></span><br />
{/section}</div></div>
<p>I am not getting catid value but &#8220;$category[cat].id&#8221;.why?<br />
but it is giving code text in params not its value</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fauzia</title>
		<link>http://kpumuk.info/ajax/ajax-enabled-smarty-plugins/#comment-174832</link>
		<dc:creator>fauzia</dc:creator>
		<pubDate>Sun, 30 Nov 2008 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/ajax/ajax-enabled-smarty-pluginsajax-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd%d1%8b-%d0%b4%d0%bb%d1%8f-smarty/#comment-174832</guid>
		<description>hi,

I made a function in index.php getting list of products.
I tpl i called ajax-update function to get list of products in a box.It is giving js-error "Object SmartyAjax not found".What is my mistake?</description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>I made a function in index.php getting list of products.<br />
I tpl i called ajax-update function to get list of products in a box.It is giving js-error &#8220;Object SmartyAjax not found&#8221;.What is my mistake?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nattaphon</title>
		<link>http://kpumuk.info/ajax/ajax-enabled-smarty-plugins/#comment-171060</link>
		<dc:creator>Nattaphon</dc:creator>
		<pubDate>Fri, 30 Nov 2001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/ajax/ajax-enabled-smarty-pluginsajax-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd%d1%8b-%d0%b4%d0%bb%d1%8f-smarty/#comment-171060</guid>
		<description>hello kpumuk,
great work, thank you very much.

i found the params isn’t working when using ajax_update.
can’t figure out why.

this code

[cc lang="html"]
{foreach from=$DB_RESULTS item=row_obj key=news_id }
&lt;li&gt;
&lt;a href="#" onclick="{ajax_update update_id='intro_content'  function='view_news' params='page=news&#038;&#038;news_id='$row_obj-&gt;news_id' '}"&gt;read news&lt;/a&gt;
&lt;/li&gt;
 {foreachelse}
[/cc]

error display

[cc]
Catchable fatal error: Object of class stdClass could not be converted to string in F:\Website\www\e-job_V2\resources\templates_c\%%3C^3CF^3CFBC54C%%news.tpl.php on line 43
[/cc]

&lt;tt&gt;$row_obj-&gt;news_id&lt;/tt&gt; isn’t working

regards,
Nattaphon</description>
		<content:encoded><![CDATA[<p>hello kpumuk,<br />
great work, thank you very much.</p>
<p>i found the params isn’t working when using ajax_update.<br />
can’t figure out why.</p>
<p>this code</p>
<div class="codecolorer-container html"><div class="codecolorer" style="font-family: monospace;">{foreach from=$DB_RESULTS item=row_obj key=news_id }<br />
<span class="sc2"><span class="kw2">&lt;li&gt;</span></span><br />
<span class="sc2"><span class="kw2">&lt;a</span> <span class="kw3">href</span>=<span class="st0">&quot;#&quot;</span> <span class="kw3">onclick</span>=<span class="st0">&quot;{ajax_update update_id='intro_content'&nbsp; function='view_news' params='page=news&amp;&amp;news_id='$row_obj-&gt;</span>news_id' '}&quot;&gt;read news<span class="sc2">&lt;/a&gt;</span><br />
<span class="sc2">&lt;/li&gt;</span><br />
&nbsp;{foreachelse}</span></div></div>
<p>error display</p>
<div class="codecolorer-container text" style="height:35px;">Catchable fatal error: Object of class stdClass could not be converted to string in F:\Website\www\e-job_V2\resources\templates_c\%%3C^3CF^3CFBC54C%%news.tpl.php on line 43</div>
<p><tt>$row_obj->news_id</tt> isn’t working</p>
<p>regards,<br />
Nattaphon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: digitalapha</title>
		<link>http://kpumuk.info/ajax/ajax-enabled-smarty-plugins/#comment-148575</link>
		<dc:creator>digitalapha</dc:creator>
		<pubDate>Wed, 30 Nov 2005 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/ajax/ajax-enabled-smarty-pluginsajax-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd%d1%8b-%d0%b4%d0%bb%d1%8f-smarty/#comment-148575</guid>
		<description>I am having difficluty processing the ajax form 
here. I m building a simple form, which display info in a table format like Name, Age, etc.

 e.g. in the register.php example

{ajax_form method="post" id="myform"="index.php?}
...
...
...
if $_POST()...
  echo???

{/ajax_form}

is it possible in the $_POST {

instead of using the echo to put the value to an array, can we display a smarty template out e.g.

$smarty-&#62;display(outputgrid.tpl"

i.e. want to process the form, and then assign smart values, and then give back to a smarty template.</description>
		<content:encoded><![CDATA[<p>I am having difficluty processing the ajax form<br />
here. I m building a simple form, which display info in a table format like Name, Age, etc.</p>
<p> e.g. in the register.php example</p>
<p>{ajax_form method=&#8221;post&#8221; id=&#8221;myform&#8221;=&#8221;index.php?}<br />
&#8230;<br />
&#8230;<br />
&#8230;<br />
if $_POST()&#8230;<br />
  echo???</p>
<p>{/ajax_form}</p>
<p>is it possible in the $_POST {</p>
<p>instead of using the echo to put the value to an array, can we display a smarty template out e.g.</p>
<p>$smarty-&gt;display(outputgrid.tpl&#8221;</p>
<p>i.e. want to process the form, and then assign smart values, and then give back to a smarty template.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vovanovski</title>
		<link>http://kpumuk.info/ajax/ajax-enabled-smarty-plugins/#comment-127163</link>
		<dc:creator>Vovanovski</dc:creator>
		<pubDate>Sat, 30 Nov 2002 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/ajax/ajax-enabled-smarty-pluginsajax-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd%d1%8b-%d0%b4%d0%bb%d1%8f-smarty/#comment-127163</guid>
		<description>Привет Критик!
Такой вот вопросик по ajax_form:
у тебя в примерах форма сабмититься без перезагрузки страницы по нажатию на кнопку типа submit, а как сделать так, чтобы форма сабмитилась, если например внутри формы есть элемент select и должен происходить сабмит по onchange селекта? Если я пишу в селекте this.form.submit() то происходит перезагрузка страницы.</description>
		<content:encoded><![CDATA[<p>Привет Критик!<br />
Такой вот вопросик по ajax_form:<br />
у тебя в примерах форма сабмититься без перезагрузки страницы по нажатию на кнопку типа submit, а как сделать так, чтобы форма сабмитилась, если например внутри формы есть элемент select и должен происходить сабмит по onchange селекта? Если я пишу в селекте this.form.submit() то происходит перезагрузка страницы.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Дмитрий</title>
		<link>http://kpumuk.info/ajax/ajax-enabled-smarty-plugins/#comment-119390</link>
		<dc:creator>Дмитрий</dc:creator>
		<pubDate>Mon, 30 Nov 2009 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/ajax/ajax-enabled-smarty-pluginsajax-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd%d1%8b-%d0%b4%d0%bb%d1%8f-smarty/#comment-119390</guid>
		<description>Дмитрий, а Вы не могли бы уделить немного времени и написать третью часть по использованию данных плагинах, но в этой статье более подробно описать принцип создания и взаимодействия.... если честно, уже столько времени бьюсь и не понимаю многих вещей...вроде и и понятно, но в тоже время не получается... Где то в комментах, некий гражданин выложил улучшенную версию с поддержкой ООП - а это именно то, что меня интересует... просто хочется увидеть мануал, где по этапам расписано, как и что применять...))) Ну если не сложно... Заранее спасибо.</description>
		<content:encoded><![CDATA[<p>Дмитрий, а Вы не могли бы уделить немного времени и написать третью часть по использованию данных плагинах, но в этой статье более подробно описать принцип создания и взаимодействия&#8230;. если честно, уже столько времени бьюсь и не понимаю многих вещей&#8230;вроде и и понятно, но в тоже время не получается&#8230; Где то в комментах, некий гражданин выложил улучшенную версию с поддержкой ООП - а это именно то, что меня интересует&#8230; просто хочется увидеть мануал, где по этапам расписано, как и что применять&#8230;))) Ну если не сложно&#8230; Заранее спасибо.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Александр</title>
		<link>http://kpumuk.info/ajax/ajax-enabled-smarty-plugins/#comment-106169</link>
		<dc:creator>Александр</dc:creator>
		<pubDate>Sat, 30 Nov 2002 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/ajax/ajax-enabled-smarty-pluginsajax-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd%d1%8b-%d0%b4%d0%bb%d1%8f-smarty/#comment-106169</guid>
		<description>В общем товарищи конечно без обид, но лучше используйте библиотеку xajax ! 
Под смарти затачивается на раз !</description>
		<content:encoded><![CDATA[<p>В общем товарищи конечно без обид, но лучше используйте библиотеку xajax !<br />
Под смарти затачивается на раз !</p>
]]></content:encoded>
	</item>
</channel>
</rss>
