<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Back links close window]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=4308&amp;type=atom" />
	<updated>2013-08-20T16:07:24Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=4308</id>
		<entry>
			<title type="html"><![CDATA[Re: Back links close window]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17457#p17457" />
			<content type="html"><![CDATA[<p>Some pages are used in FA both in main and popups windows, so the &#039;Back&#039; link have to support both situations differently (see customer_inquiry.php which is available under &#039;Customer Transactions&#039;&nbsp; menu option, and used in popup under&nbsp; &#039;Current Credit&#039; link in Direct Sales Invoice).</p><p>If you can provide a patch ready to apply on current FA code, which would be both usefull for you and would not interfere with current user interface, we will consider integrate it in the next FA release.</p><p>Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2013-08-20T16:07:24Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17457#p17457</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Back links close window]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17454#p17454" />
			<content type="html"><![CDATA[<p>@itronics<br />I understand what&#039;s happening and why you choose to use popups and have them close to return to the main working window. I guess I&#039;m wondering why you chose to use the same function for back and close. Is it not possible to write a function that allows both to happen for someone who chooses to run FA in a popup?</p><p>It&#039;s certainly not a big problem for me, and if you can&#039;t or won&#039;t change it I&#039;ll still use FA, but because I use popup windows a lot - I don&#039;t need every window to have menu, bookmarks, etc. - I opened this thread because I thought it was a bug because I&#039;ve never had this problem before. Now I understand it&#039;s a design decision, but I feel that it must be possible to do both, if the code were changed. So I ask again, if there are no adverse affects by allowing both, could you, Joe, or someone with the right experience, provide the code that would work? You don&#039;t have to change the application for everyone, I&#039;ll just change the code in my little setup, and the solution can be available here to anyone else wanting the same ability.</p><p>Thanks again.</p>]]></content>
			<author>
				<name><![CDATA[Strongman]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18294</uri>
			</author>
			<updated>2013-08-20T12:43:21Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17454#p17454</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Back links close window]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17451#p17451" />
			<content type="html"><![CDATA[<p>@Strongman<br />Back link is FA navigation element which is designed to close popup windows. This is our design decision, and rationale here is rather obvious. All over the FA application popups are used as temporary windows opened to allow user some operations (transaction viewing, customer edition or selection etc) without abandoning current form in main browser window. Therefore in popup windows Back link&nbsp; just abandon the auxiliary operation and return to main window, where the popup was triggered. <br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2013-08-20T12:14:18Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17451#p17451</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Back links close window]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17435#p17435" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>FA was necer planned to be used in a popup window.</p></blockquote></div><p>For you maybe.</p><p>Though I&#039;ve found the code that controls this behaviour I can prevent the <span class="bbu">back</span> links from closing my popup window, but at the expense of the <span class="bbu">close</span> links not working.</p><p>I&#039;ve no idea about javascript so I&#039;m not sure how to get both to work. If there are no adverse affects by allowing both, could you, Joe, or someone with the right experience, provide the code that would work?</p><p>Currently it&#039;s...<br /></p><div class="codebox"><pre><code>function goBack(deep) {
    if (window.opener)
     window.close();
    else
     window.history.go(deep || -1);
}</code></pre></div><p>Many thanks.</p>]]></content>
			<author>
				<name><![CDATA[Strongman]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18294</uri>
			</author>
			<updated>2013-08-17T09:29:18Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17435#p17435</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Back links close window]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17427#p17427" />
			<content type="html"><![CDATA[<p>This is the way FA works. FA was necer planned to be used in a popup window.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2013-08-17T08:54:37Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17427#p17427</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Back links close window]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17426#p17426" />
			<content type="html"><![CDATA[<p>Joe,</p><p>Is that to say it <em>can&#039;t</em> be fixed, or is that just <em>why</em> it&#039;s happening? Is such a thing a browser restriction or a code feature?</p>]]></content>
			<author>
				<name><![CDATA[Strongman]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18294</uri>
			</author>
			<updated>2013-08-17T08:21:50Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17426#p17426</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Back links close window]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17425#p17425" />
			<content type="html"><![CDATA[<p>If you open FA in a popup window, this will happen. It is done inside a JavaScript routine.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2013-08-17T06:01:44Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17425#p17425</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Back links close window]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17421#p17421" />
			<content type="html"><![CDATA[<p>I open my locally hosted FrontAccounting (v2.3.17) in a popup window generated as follows</p><div class="codebox"><pre><code>&lt;a href=&quot;javascript:void(0)&quot; onclick=&quot;window.open(&#039;https://frontaccounting.myhomeserver.net&#039;,&#039;FrntAcc&#039;,&#039;scrollbars=yes,height=569,width=1032,left=1706,top=430&#039;);return false;&quot;&gt;FrontAccounting&lt;/a&gt;</code></pre></div><p>Whenever I click on any of the &quot;Back&quot; links, my FrontAccounting window closes. This is happening in both Firefox (v22.0) and Chrome (Version 28.0.1500.71 m).</p><p>Any ideas how to fix this?</p><p>Many thanks.</p>]]></content>
			<author>
				<name><![CDATA[Strongman]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18294</uri>
			</author>
			<updated>2013-08-16T23:12:29Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17421#p17421</id>
		</entry>
</feed>
