<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — [javascript bug +fix] front accounting 2.2.8]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=1332&amp;type=atom" />
	<updated>2010-05-22T15:30:51Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=1332</id>
		<entry>
			<title type="html"><![CDATA[Re: [javascript bug +fix] front accounting 2.2.8]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=5964#p5964" />
			<content type="html"><![CDATA[<p>No, the compressing function works just right, because in the algorithm&nbsp; all literal strings (in single or double quotes) are temporary superseded by markers&nbsp; before removing comments, then the strings are restored.</p><p>Therefore if you have any problem here, this is probably due to your customizations. Just look into our 2.2.8 demo server which simply works as it should.<br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2010-05-22T15:30:51Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=5964#p5964</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [javascript bug +fix] front accounting 2.2.8]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=5963#p5963" />
			<content type="html"><![CDATA[<p>ok Janusz, here where problem arise.</p><p>file: /includes/main.inc<br />line 230 - 231, this part of function js_compress($sJS)</p><p>&nbsp; &nbsp; //remove comments<br />&nbsp; &nbsp; $line = preg_replace(&quot;/\/\/(.*)/&quot;,&quot;&quot;,$line);</p><p>and file: /js/JsHttpRequest.js<br />line 463<br />&nbsp; &nbsp; &nbsp; &nbsp;if (this.url.match(new RegExp(&#039;^([a-z]+:<strong>//</strong>[^\\/]+)(.*)((:[0-9]*)+)&#039;, &#039;i&#039;))) {</p><p>see after bold text. <br />this regex command will treated as remark, and removed after process in line 231 from file /includes/main.inc, like this:<br />if (this.url.match(new RegExp(&#039;^([a-z]+:</p>]]></content>
			<author>
				<name><![CDATA[separatis]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=1014</uri>
			</author>
			<updated>2010-05-22T12:57:08Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=5963#p5963</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [javascript bug +fix] front accounting 2.2.8]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=5957#p5957" />
			<content type="html"><![CDATA[<p>Just a nonsense.</p><p>If you think you have found a bug do not give advice to other users how to hide the problem, but please explain what is the problem instead.</p><p>Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2010-05-22T09:16:52Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=5957#p5957</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[[javascript bug +fix] front accounting 2.2.8]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=5956#p5956" />
			<content type="html"><![CDATA[<p>i think i&#039;ve found bug,on javascript function,prevent normal operation.<br />first,<br />frontaccount\includes\ui\ui_view.inc<br />line 1102 - 1103<br />replace code:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; table += \&quot;&lt;td&gt;&lt;a class=&#039;\&quot;+css_class+\&quot;&#039; href=\\\&#039;javascript:setCCDate(\&quot;+currentYear+\&quot;,\&quot;+currentMonth+\&quot;,\&quot;+dayOfMonth+\&quot;)\\\&#039;&gt;\&quot;+dayOfMonth+\&quot;&lt;/a&gt;&lt;/td&gt;\&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dayOfMonth++;</p><p>second,<br />javascript compressor malfunction(?), using file xajaxCompress.php from xajaxproject.org<br />temporary,disable js_compress function in:<br />frontaccount\includes\main.inc<br />function cache_js_file($fpath, $text) <br />{<br />&nbsp; &nbsp; global $go_debug;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//disable javascript compress<br />&nbsp; &nbsp; //if(!$go_debug) $text = js_compress($text);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; $file = fopen($fpath, &#039;w&#039;);<br />&nbsp; &nbsp; if (!$file) return false;<br />&nbsp; &nbsp; if (!fwrite($file, $text)) return false;<br />&nbsp; &nbsp; return fclose($file);<br />}</p>]]></content>
			<author>
				<name><![CDATA[separatis]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=1014</uri>
			</author>
			<updated>2010-05-22T07:24:22Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=5956#p5956</id>
		</entry>
</feed>
