<?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 Part 2: ajax_form</title>
	<atom:link href="http://kpumuk.info/ajax/ajax-enabled-smarty-plugins-part-2-ajax_form/feed/" rel="self" type="application/rss+xml" />
	<link>http://kpumuk.info/ajax/ajax-enabled-smarty-plugins-part-2-ajax_form/</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>Sun, 12 Oct 2008 15:22:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Grassus</title>
		<link>http://kpumuk.info/ajax/ajax-enabled-smarty-plugins-part-2-ajax_form/#comment-240777</link>
		<dc:creator>Grassus</dc:creator>
		<pubDate>Wed, 30 Nov 2011 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/ajax/ajax-enabled-smarty-plugins-part-2-ajax_formajax-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd%d1%8b-%d0%b4%d0%bb%d1%8f-smarty-%d1%87%d0%b0%d1%81%d1%82%d1%8c-2-ajax_form/#comment-240777</guid>
		<description>как нужно обрабатывать параметры params
шаблон

&lt;code&gt;
{ajax_form method="post" id="form_register" params="opt=save"}
&lt;/code&gt;

php-файл

&lt;code lang="php"&gt;
if (!isset($_REQUEST['opt']))
  {$opt = 'view';}
else
  {$opt = $_REQUEST['opt'];}
&lt;/code&gt;

у меня не передается параметр в php файл
пробывал и $_REQUEST, $_POST, $_GET</description>
		<content:encoded><![CDATA[<p>как нужно обрабатывать параметры params<br />
шаблон</p>
<div class="codecolorer-container text" style="height:35px;">{ajax_form method="post" id="form_register" params="opt=save"}</div>
<p>php-файл</p>
<div class="codecolorer-container php"><div class="codecolorer" style="font-family: monospace;"><span class="kw1">if</span> <span class="br0">&#40;</span>!<span class="kw3">isset</span><span class="br0">&#40;</span><span class="re0">$_REQUEST</span><span class="br0">&#91;</span><span class="st0">'opt'</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><br />
&nbsp; <span class="br0">&#123;</span><span class="re0">$opt</span> = <span class="st0">'view'</span>;<span class="br0">&#125;</span><br />
<span class="kw1">else</span><br />
&nbsp; <span class="br0">&#123;</span><span class="re0">$opt</span> = <span class="re0">$_REQUEST</span><span class="br0">&#91;</span><span class="st0">'opt'</span><span class="br0">&#93;</span>;<span class="br0">&#125;</span></div></div>
<p>у меня не передается параметр в php файл<br />
пробывал и $_REQUEST, $_POST, $_GET</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AL</title>
		<link>http://kpumuk.info/ajax/ajax-enabled-smarty-plugins-part-2-ajax_form/#comment-198681</link>
		<dc:creator>AL</dc:creator>
		<pubDate>Tue, 30 Nov 2010 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/ajax/ajax-enabled-smarty-plugins-part-2-ajax_formajax-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd%d1%8b-%d0%b4%d0%bb%d1%8f-smarty-%d1%87%d0%b0%d1%81%d1%82%d1%8c-2-ajax_form/#comment-198681</guid>
		<description>Кто-нить может объяснить нормально, как в любой цивилизованной документации к любому плагину (например, к тому же Smarty), как использовать эти плагины? 
Если полностью скачать архив и запустить - работает... Но как только начинаешь приспосабливать к своему проекту, ничего не пашет. Вообще ничего!
1. Какие файлы из Smarty нужно заменить?
2. В какие каталоги какие файлы нужно добавить?
3. Где и какие пути должны быть прописаны?
4. Где можно скачать каждый из, с позволения сказать - плагин, по отдельности?
5. Как вообще его устанавливать?
И много других вопросов. Такое ошущение, что те, кто тут обсуждают это дополнение месяц сидели, это всё писаль, а тут просто продолжают обсуждать... А где начало?
Понятно, что тут мне никто ничего не должен, но тем не менее... Возможно плагин и хорош, во всяко случае необходим однозначно, но как он приподносится - ужас!!!</description>
		<content:encoded><![CDATA[<p>Кто-нить может объяснить нормально, как в любой цивилизованной документации к любому плагину (например, к тому же Smarty), как использовать эти плагины?<br />
Если полностью скачать архив и запустить - работает&#8230; Но как только начинаешь приспосабливать к своему проекту, ничего не пашет. Вообще ничего!<br />
1. Какие файлы из Smarty нужно заменить?<br />
2. В какие каталоги какие файлы нужно добавить?<br />
3. Где и какие пути должны быть прописаны?<br />
4. Где можно скачать каждый из, с позволения сказать - плагин, по отдельности?<br />
5. Как вообще его устанавливать?<br />
И много других вопросов. Такое ошущение, что те, кто тут обсуждают это дополнение месяц сидели, это всё писаль, а тут просто продолжают обсуждать&#8230; А где начало?<br />
Понятно, что тут мне никто ничего не должен, но тем не менее&#8230; Возможно плагин и хорош, во всяко случае необходим однозначно, но как он приподносится - ужас!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raul</title>
		<link>http://kpumuk.info/ajax/ajax-enabled-smarty-plugins-part-2-ajax_form/#comment-144144</link>
		<dc:creator>Raul</dc:creator>
		<pubDate>Sun, 30 Nov 2003 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/ajax/ajax-enabled-smarty-plugins-part-2-ajax_formajax-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd%d1%8b-%d0%b4%d0%bb%d1%8f-smarty-%d1%87%d0%b0%d1%81%d1%82%d1%8c-2-ajax_form/#comment-144144</guid>
		<description>я имел ввиду тег select</description>
		<content:encoded><![CDATA[<p>я имел ввиду тег select</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raul</title>
		<link>http://kpumuk.info/ajax/ajax-enabled-smarty-plugins-part-2-ajax_form/#comment-144143</link>
		<dc:creator>Raul</dc:creator>
		<pubDate>Sun, 30 Nov 2003 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/ajax/ajax-enabled-smarty-plugins-part-2-ajax_formajax-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd%d1%8b-%d0%b4%d0%bb%d1%8f-smarty-%d1%87%d0%b0%d1%81%d1%82%d1%8c-2-ajax_form/#comment-144143</guid>
		<description>Очень бы пригодилось,если бы объяснили как сделать автоматический запрос данных при смене опций в теге ... а как продолжение как составить цепочку зависимых </description>
		<content:encoded><![CDATA[<p>Очень бы пригодилось,если бы объяснили как сделать автоматический запрос данных при смене опций в теге &#8230; а как продолжение как составить цепочку зависимых</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Valerij</title>
		<link>http://kpumuk.info/ajax/ajax-enabled-smarty-plugins-part-2-ajax_form/#comment-142439</link>
		<dc:creator>Valerij</dc:creator>
		<pubDate>Fri, 30 Nov 2007 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/ajax/ajax-enabled-smarty-plugins-part-2-ajax_formajax-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd%d1%8b-%d0%b4%d0%bb%d1%8f-smarty-%d1%87%d0%b0%d1%81%d1%82%d1%8c-2-ajax_form/#comment-142439</guid>
		<description>а можно прикрутить к mootools  smarty ?</description>
		<content:encoded><![CDATA[<p>а можно прикрутить к mootools  smarty ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander</title>
		<link>http://kpumuk.info/ajax/ajax-enabled-smarty-plugins-part-2-ajax_form/#comment-91949</link>
		<dc:creator>Alexander</dc:creator>
		<pubDate>Sat, 30 Nov 2002 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/ajax/ajax-enabled-smarty-plugins-part-2-ajax_formajax-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd%d1%8b-%d0%b4%d0%bb%d1%8f-smarty-%d1%87%d0%b0%d1%81%d1%82%d1%8c-2-ajax_form/#comment-91949</guid>
		<description>Hello Dmytro,

I'm trying to use ajax_form with the callback to change to nextpage.php if the form is OK.
The callback is called, but allways, also if the form is NOT good.
I did not understand the solution you gave to David, since that is from the chat example.
Can you help ?

I have:

&lt;code lang="javascript"&gt;
function finishfunc()
{
	document.form_register.action = "nextpage.php";
	document.form_register.submit();
	return false;  // Is this required??
}

var finishcallback = finishfunc;
&lt;/code&gt;

and

&lt;code lang="smarty"&gt;
{ajax_form method="post" id="form_register" callback='finishcallback'}
...
{/ajax_form}
&lt;/code&gt;

Thanks, Alexander</description>
		<content:encoded><![CDATA[<p>Hello Dmytro,</p>
<p>I&#8217;m trying to use ajax_form with the callback to change to nextpage.php if the form is OK.<br />
The callback is called, but allways, also if the form is NOT good.<br />
I did not understand the solution you gave to David, since that is from the chat example.<br />
Can you help ?</p>
<p>I have:</p>
<div class="codecolorer-container javascript"><div class="codecolorer" style="font-family: monospace;"><span class="kw2">function</span> finishfunc<span class="br0">&#40;</span><span class="br0">&#41;</span><br />
<span class="br0">&#123;</span><br />
&nbsp; &nbsp; document.<span class="me1">form_register</span>.<span class="me1">action</span> = <span class="st0">&quot;nextpage.php&quot;</span>;<br />
&nbsp; &nbsp; document.<span class="me1">form_register</span>.<span class="me1">submit</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; <span class="kw1">return</span> <span class="kw2">false</span>;&nbsp; <span class="co1">// Is this required??</span><br />
<span class="br0">&#125;</span><br />
<br />
<span class="kw2">var</span> finishcallback = finishfunc;</div></div>
<p>and</p>
<div class="codecolorer-container smarty"><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;form_register&quot;</span> callback=<span class="st0">'finishcallback'</span><span class="br0">&#125;</span><br />
...<br />
<span class="br0">&#123;</span>/ajax_form<span class="br0">&#125;</span></div></div>
<p>Thanks, Alexander</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andes Tang</title>
		<link>http://kpumuk.info/ajax/ajax-enabled-smarty-plugins-part-2-ajax_form/#comment-56361</link>
		<dc:creator>Andes Tang</dc:creator>
		<pubDate>Tue, 30 Nov 2010 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/ajax/ajax-enabled-smarty-plugins-part-2-ajax_formajax-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd%d1%8b-%d0%b4%d0%bb%d1%8f-smarty-%d1%87%d0%b0%d1%81%d1%82%d1%8c-2-ajax_form/#comment-56361</guid>
		<description>Is there any way to incorporate $_FILE for file upload support?</description>
		<content:encoded><![CDATA[<p>Is there any way to incorporate $_FILE for file upload support?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmytro Shteflyuk</title>
		<link>http://kpumuk.info/ajax/ajax-enabled-smarty-plugins-part-2-ajax_form/#comment-23417</link>
		<dc:creator>Dmytro Shteflyuk</dc:creator>
		<pubDate>Thu, 30 Nov 2000 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/ajax/ajax-enabled-smarty-plugins-part-2-ajax_formajax-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd%d1%8b-%d0%b4%d0%bb%d1%8f-smarty-%d1%87%d0%b0%d1%81%d1%82%d1%8c-2-ajax_form/#comment-23417</guid>
		<description>Linin, файлы невозможно загрузить, используя технологию AJAX. Для этого можно воспользоваться отправкой формы в скрытый iframe, более подробно описано &lt;a href="http://kpumuk.info/ruby-on-rails/in-place-file-upload-with-ruby-on-rails/" rel="nofollow"&gt;здесь&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Linin, файлы невозможно загрузить, используя технологию AJAX. Для этого можно воспользоваться отправкой формы в скрытый iframe, более подробно описано <a href="http://kpumuk.info/ruby-on-rails/in-place-file-upload-with-ruby-on-rails/" rel="nofollow">здесь</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmytro Shteflyuk</title>
		<link>http://kpumuk.info/ajax/ajax-enabled-smarty-plugins-part-2-ajax_form/#comment-23416</link>
		<dc:creator>Dmytro Shteflyuk</dc:creator>
		<pubDate>Thu, 30 Nov 2000 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/ajax/ajax-enabled-smarty-plugins-part-2-ajax_formajax-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd%d1%8b-%d0%b4%d0%bb%d1%8f-smarty-%d1%87%d0%b0%d1%81%d1%82%d1%8c-2-ajax_form/#comment-23416</guid>
		<description>Sorry, I never worked with Rico :-(
</description>
		<content:encoded><![CDATA[<p>Sorry, I never worked with Rico <img src='http://kpumuk.info/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guido Smit</title>
		<link>http://kpumuk.info/ajax/ajax-enabled-smarty-plugins-part-2-ajax_form/#comment-20797</link>
		<dc:creator>Guido Smit</dc:creator>
		<pubDate>Fri, 30 Nov 2001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/ajax/ajax-enabled-smarty-plugins-part-2-ajax_formajax-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd%d1%8b-%d0%b4%d0%bb%d1%8f-smarty-%d1%87%d0%b0%d1%81%d1%82%d1%8c-2-ajax_form/#comment-20797</guid>
		<description>I like this initiative, much easier than xajax.
I tried it, but ran into a problem:

When using a pulldown, the value does not get posted back.
e.g.: [...options...]


{literal}
var getmaand = {
  params: function() {
  return {
    showmonth: $F("showmonth")
    }
  }
}
{/literal}


Checking my php with print_r($_GET) and print_r($_POST) the month does not return.

Please advise.</description>
		<content:encoded><![CDATA[<p>I like this initiative, much easier than xajax.<br />
I tried it, but ran into a problem:</p>
<p>When using a pulldown, the value does not get posted back.<br />
e.g.: [...options...]</p>
<p>{literal}<br />
var getmaand = {<br />
  params: function() {<br />
  return {<br />
    showmonth: $F(&#8221;showmonth&#8221;)<br />
    }<br />
  }<br />
}<br />
{/literal}</p>
<p>Checking my php with print_r($_GET) and print_r($_POST) the month does not return.</p>
<p>Please advise.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
