<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — I want to understand how ajax is working here]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8953&amp;type=atom" />
	<updated>2020-08-28T07:23:20Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=8953</id>
		<entry>
			<title type="html"><![CDATA[Re: I want to understand how ajax is working here]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38184#p38184" />
			<content type="html"><![CDATA[<p>The files you will need to refer are:<br /></p><div class="codebox"><pre><code>includes/ajax.inc
includes/JsHttpRequest.php
js/JsHttpRequest.js</code></pre></div><p>The functions <strong>in_ajax()</strong> and <strong>absolute_url($url)</strong> are <span class="bbu">outside</span> of the extended class.</p><p>The various ajax trigger commands executed are for:<br /></p><div class="codebox"><pre><code>rd =&gt; redirect
pu =&gt; popup
js =&gt; javascript
as =&gt; assign
up =&gt; update
di =&gt; disable target / enable target
fc =&gt; focus</code></pre></div><p>There difference between the disable and enable methods for the &quot;n=&#039;di&#039;&quot; command attribute is the boolean value of the argument $sData.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2020-08-28T07:23:20Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38184#p38184</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: I want to understand how ajax is working here]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38177#p38177" />
			<content type="html"><![CDATA[<p>Hi apmuthu,</p><p>I read this wiki, I did not get it clearly.</p><p>I want to know when you say for example $Ajax-&gt;activate(&#039;price&#039;);</p><p>then how it know the code that should be executed to get the content in the price field?</p>]]></content>
			<author>
				<name><![CDATA[trainer2008]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45577</uri>
			</author>
			<updated>2020-08-27T18:53:46Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38177#p38177</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: I want to understand how ajax is working here]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38154#p38154" />
			<content type="html"><![CDATA[<p>https://frontaccounting.com/fawiki/index.php?n=Devel.AjaxInFA</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2020-08-25T16:31:55Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38154#p38154</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[I want to understand how ajax is working here]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38141#p38141" />
			<content type="html"><![CDATA[<p>Hi,<br />I have a hard time looking for how to use ajax in FA,</p><p>I read about $Ajax-&gt;activate() but I have doubts using it,</p><p>let us make a simple example so that it can be clear how it works.</p><p>say I started div with id mydiv, after that i have a function (named as myfunction) that I want it to fill the div with a some text data based on an input field value when I click a submit button.</p><p>What I need to understand how to link the submit button to execute the myfunction function by ajax to fill the mydiv div?</p><p>hope you understand my question.</p>]]></content>
			<author>
				<name><![CDATA[trainer2008]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45577</uri>
			</author>
			<updated>2020-08-24T18:54:31Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38141#p38141</id>
		</entry>
</feed>
