<br><br><div class="gmail_quote">On Nov 8, 2007 8:54 PM, Steve H &lt;<a href="mailto:s_t_e_v_e_h@hotmail.com">s_t_e_v_e_h@hotmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Hi,<br>I was experiencing some unanticipated behaviour when I created multiple instances of a page region that referred to the same fragment.<br>I have for example a table that lists order headers. In a row beneath the order header details, I create a page region whose associated fragment has code that, depending on it&#39;s arg values, will display a link like &#39;show items&#39; or a nested table of the items and a link of &#39;hide items&#39;. &nbsp;(
i.e there would be page region created for each order header listed).<br>In my proof of concept code/test, I had 2 order headers that dutifully display along with the &#39;show items&#39; link in the region/fragment under them. &nbsp;When clicking on the link for order header 1, the fragment then dutifully changes to show the items, along with the &#39;hide items&#39; link. &nbsp;Problem was though, that when I clicked the &#39;show items&#39; beneath the 2nd order hearder, it again updated the fragment under the 1st order header... albeit displaying items belonging to the order header 2; the link under order header 2 remained as &#39;show items.
</blockquote><div><br>Make sure when declaring your regions that you have used different names for each:<br><br>&lt;% Jifty-&gt;web-&gt;region( name =&gt; &#39;region-1&#39;, path =&gt; &#39;/fragment/test&#39; ); %&gt;<br>
&lt;% Jifty-&gt;web-&gt;region( name =&gt; &#39;region-2&#39;, path =&gt; &#39;/fragment/test&#39; ); %&gt;<br><br>You can reuse paths all you want in your various regions, but region names should not be reused unless they&#39;re nested in separate regions. (
I.e., if /fragment/test has a nested region with the same name in each, that&#39;s fine).<br><br>I don&#39;t know if that&#39;s your problem or not, but that&#39;s what it sounds like to me.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>In the main fragment that creates these n page regions beneath their respective order headers, I also tried specifying a unique name... to no avail. &nbsp;In the &#39;show/hide item&#39; links, I merely declare them with name=&gt; and args=&gt;; &nbsp;are there any other params that I should specify to cause them to target/update the correct page region (
i.e. the one in which the link appears)?</blockquote><div><br>You onclick handler should use the region=&gt; parameter to specify which region is targeted. This could also be your problem.<br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Does that explain the issue? or might I need to send code samples?<br>thanks<br>SteveH<br><br>_________________________________________________________________<br>Overpaid or Underpaid? Check our comprehensive Salary Centre
<br><a href="http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fcontent%2Emycareer%2Ecom%2Eau%2Fsalary%2Dcentre%3Fs%5Fcid%3D595810&amp;_t=766724125&amp;_r=Hotmail_Email_Tagline_MyCareer_Oct07&amp;_m=EXT_______________________________________________jifty-devel" target="_blank">
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fcontent%2Emycareer%2Ecom%2Eau%2Fsalary%2Dcentre%3Fs%5Fcid%3D595810&amp;_t=766724125&amp;_r=Hotmail_Email_Tagline_MyCareer_Oct07&amp;_m=EXT_______________________________________________
<br>jifty-devel</a> mailing list<br><a href="mailto:jifty-devel@lists.jifty.org">jifty-devel@lists.jifty.org</a><br><a href="http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel" target="_blank">http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
</a><br></blockquote></div><br>