<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — FA WITH AUTOCOMPLETE  DOWNLOAD]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=6198</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6198&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in FA WITH AUTOCOMPLETE  DOWNLOAD.]]></description>
		<lastBuildDate>Thu, 21 Apr 2022 15:17:45 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: FA WITH AUTOCOMPLETE  DOWNLOAD]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=40907#p40907</link>
			<description><![CDATA[<p>@anoopmb<br />If any value with &amp; is selected in the dropdown, after clicking on it the selected value turns into &amp;<br />so i have changed the typer.value = selectedoption.innerHTML; to typer.value = selectedoption.innerText;<br />in the following:</p><p>selectedoption.innerHTML = selectedoption.innerHTML.replace(/ /gi, &#039; &#039;);<br />&nbsp; &nbsp; typer.setAttribute(&quot;value&quot;, selectedoption.innerHTML);<br />&nbsp; &nbsp; // typer.value = selectedoption.innerHTML;<br />&nbsp; &nbsp; typer.value = selectedoption.innerText;<br />&nbsp; &nbsp; var hidden = document.createElement(&#039;INPUT&#039;);</p><br /><p>I also added the following regex in the typer.onblur<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + selval = selval.replace(/&amp;/gi, &#039;&amp;&#039;);</p><p>here is the updated code:<br />&nbsp; &nbsp; typer.onblur = function (event) {</p><p>&nbsp; &nbsp; &nbsp; &nbsp; if (optgropc != 1) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pop(&quot;none&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; optgropc = 0;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (typer.value == null || typer.value == &#039;&#039; || typer.value != selectedoption.innerHTML) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var selval = selectedoption.innerHTML;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + selval = selval.replace(/&amp;/gi, &#039;&amp;&#039;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; selval = selval.replace(/\&lt;u\&gt;/ig, &#039;&#039;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; selval = selval.replace(/\&lt;\/u\&gt;/ig, &#039;&#039;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; selval = selval.replace(/ /gi, &#039; &#039;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; typer.value = selval;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hidden.value = selectedvalue;</p>]]></description>
			<author><![CDATA[null@example.com (dz)]]></author>
			<pubDate>Thu, 21 Apr 2022 15:17:45 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=40907#p40907</guid>
		</item>
		<item>
			<title><![CDATA[Re: FA WITH AUTOCOMPLETE  DOWNLOAD]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=33793#p33793</link>
			<description><![CDATA[<p>thanks Braath and i will upadate the code shortly with your changes</p>]]></description>
			<author><![CDATA[null@example.com (anoopmb)]]></author>
			<pubDate>Sun, 30 Dec 2018 15:05:59 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=33793#p33793</guid>
		</item>
		<item>
			<title><![CDATA[Re: FA WITH AUTOCOMPLETE  DOWNLOAD]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=33787#p33787</link>
			<description><![CDATA[<p><a href="https://gist.github.com/braathwaate/94fdbf7dfad04c1f4a1768d745c837db">Code fixes for special characters and lost focus</a></p>]]></description>
			<author><![CDATA[null@example.com (Braath Waate)]]></author>
			<pubDate>Sat, 29 Dec 2018 16:28:31 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=33787#p33787</guid>
		</item>
		<item>
			<title><![CDATA[Re: FA WITH AUTOCOMPLETE  DOWNLOAD]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=33786#p33786</link>
			<description><![CDATA[<p>@Braath Waate</p><p>yeah, please do your contribution so everyone can get benefit of it<br />thanks for notifying these issues</p>]]></description>
			<author><![CDATA[null@example.com (anoopmb)]]></author>
			<pubDate>Sat, 29 Dec 2018 14:17:17 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=33786#p33786</guid>
		</item>
		<item>
			<title><![CDATA[Re: FA WITH AUTOCOMPLETE  DOWNLOAD]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=33781#p33781</link>
			<description><![CDATA[<p>The lists need special character handling so that names like &quot;A &amp; L&quot; Foods appear properly.&nbsp; One possible fix is to call</p><div class="codebox"><pre><code>function decodeHtml(html) {
    var txt = document.createElement(&quot;textarea&quot;);
    txt.innerHTML = html;
    return txt.value;
}</code></pre></div><p>where the code currently uses &quot;selval&quot; and</p><p>selectedoption.innerHTML= selectedoption.innerHTML.replace(/&amp;nbsp;/gi,&#039; &#039;);</p><p>which currently may not be doing anything because the browser just converts back.</p><p>Another minor problem is lost focus because FA does not expect to focus on a hidden variable, which in the new code has the old list name (the new list being named &quot;name&quot; + mselect).&nbsp; I have a simple fix for this if you are interested.</p><p>Thanks for the contribution.&nbsp; I already had autocomplete lists running on my site but I like yours better because it modular and non-invasive, so I replaced my code with yours.</p>]]></description>
			<author><![CDATA[null@example.com (Braath Waate)]]></author>
			<pubDate>Sat, 29 Dec 2018 01:48:26 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=33781#p33781</guid>
		</item>
		<item>
			<title><![CDATA[Re: FA WITH AUTOCOMPLETE  DOWNLOAD]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=33775#p33775</link>
			<description><![CDATA[<p>I&#039;m also eagerly waiting for this <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />Thanks u so much in advance Anoop, you are doing awesome work <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /> <br /></p><div class="quotebox"><cite>anoopmb wrote:</cite><blockquote><p>@ kvvaradha</p><p>yeah we can try that&nbsp; as the popup search type is available now&nbsp; in combo input function.</p><p>let me take a look</p><p>thanks for testing</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (phpninja123)]]></author>
			<pubDate>Fri, 28 Dec 2018 14:53:25 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=33775#p33775</guid>
		</item>
		<item>
			<title><![CDATA[Re: FA WITH AUTOCOMPLETE  DOWNLOAD]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=33772#p33772</link>
			<description><![CDATA[<p>@ kvvaradha</p><p>yeah we can try that&nbsp; as the popup search type is available now&nbsp; in combo input function.</p><p>let me take a look</p><p>thanks for testing</p>]]></description>
			<author><![CDATA[null@example.com (anoopmb)]]></author>
			<pubDate>Fri, 28 Dec 2018 08:23:21 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=33772#p33772</guid>
		</item>
		<item>
			<title><![CDATA[Re: FA WITH AUTOCOMPLETE  DOWNLOAD]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=33767#p33767</link>
			<description><![CDATA[<p>@anoopmb - I have tested your auto complete.&nbsp; Its working well. You have done a&nbsp; great job. There is one suggestion from my side. <br />When It comes with large list of options in select. Like more than 1000 items in the list. It will freeze the system for a while and will go on. </p><p>So if possible rewrite it to perform Ajax call and get results from server. By default you can show 20, items in the list. Rest should not be added to the list. When user start typing the related items should show here.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Thu, 27 Dec 2018 10:40:35 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=33767#p33767</guid>
		</item>
		<item>
			<title><![CDATA[Re: FA WITH AUTOCOMPLETE  DOWNLOAD]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=33766#p33766</link>
			<description><![CDATA[<p>@boxygen - you can use a software named &quot;, Meld&quot; ,it&#039;s available for Linux, windows and OS x. Can see the file differences if you compare the files with default core. You can get difference from it . Hope it helps you</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Thu, 27 Dec 2018 10:35:10 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=33766#p33766</guid>
		</item>
		<item>
			<title><![CDATA[Re: FA WITH AUTOCOMPLETE  DOWNLOAD]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=33763#p33763</link>
			<description><![CDATA[<p>@boxygen</p><p> please use a file compare utility.</p><br /><p>i changed ui_lists.inc and auto_select_box.inc </p><p>changed $auto_select_box to $SysPrefs-&gt;auto_select_box</p>]]></description>
			<author><![CDATA[null@example.com (anoopmb)]]></author>
			<pubDate>Thu, 27 Dec 2018 07:26:21 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=33763#p33763</guid>
		</item>
		<item>
			<title><![CDATA[Re: FA WITH AUTOCOMPLETE  DOWNLOAD]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=33762#p33762</link>
			<description><![CDATA[<p>@anoopmb can you mention the changes you made in the core. Overwriting my files with your files will overwrite some of my modifications too.</p><p>Thanks in Advance</p>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Thu, 27 Dec 2018 05:41:24 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=33762#p33762</guid>
		</item>
		<item>
			<title><![CDATA[Re: FA WITH AUTOCOMPLETE  DOWNLOAD]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=33760#p33760</link>
			<description><![CDATA[<p>@pswamis</p><p>Hi,</p><p>you can download the changed files from here </p><p><a href="https://membtech.in/demo/downloads/fa-autocomplete-2.4.6.zip">Download files</a></p><p>its updated to latest version 2.4.6</p><p>thanks for using this</p>]]></description>
			<author><![CDATA[null@example.com (anoopmb)]]></author>
			<pubDate>Thu, 27 Dec 2018 03:49:44 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=33760#p33760</guid>
		</item>
		<item>
			<title><![CDATA[Re: FA WITH AUTOCOMPLETE  DOWNLOAD]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=33759#p33759</link>
			<description><![CDATA[<p>To make this work with v2.4.6:<br />add in the auto_select_box lines in ui_lists.inc and auto_select_box.inc but change them to @$SysPrefs-&gt;auto_select_box and define the global SysPrefs.&nbsp; Then add in the MBCODE block in js/inserts.js and the escapeRegExp (late adder) outside the MBCODE block and the call to mbselect in the &#039;select&#039; block.&nbsp; Add the MBCODE block in the desired theme.</p>]]></description>
			<author><![CDATA[null@example.com (Braath Waate)]]></author>
			<pubDate>Thu, 27 Dec 2018 00:57:35 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=33759#p33759</guid>
		</item>
		<item>
			<title><![CDATA[Re: FA WITH AUTOCOMPLETE  DOWNLOAD]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=33754#p33754</link>
			<description><![CDATA[<p>Hi Anoop,<br />I&#039;m using Front Account v2.4.6 and I&#039;m completely new to this..<br />I was trying to apply your solution for autocomplete dropdown, but its not working, can you please help me here, it&#039;s a very urgent requirement for me..<br />Thanks in advance.</p>]]></description>
			<author><![CDATA[null@example.com (pswamis)]]></author>
			<pubDate>Wed, 26 Dec 2018 16:05:59 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=33754#p33754</guid>
		</item>
		<item>
			<title><![CDATA[Re: FA WITH AUTOCOMPLETE  DOWNLOAD]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=27768#p27768</link>
			<description><![CDATA[<p>In Post 16 bogeyman has given the link to download</p><p>http://stuff.w3shaman.com/others/fa-autocomplete.zip</p>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Fri, 05 May 2017 15:19:16 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=27768#p27768</guid>
		</item>
	</channel>
</rss>
