<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1003140" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1003140</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/pass-data-between-windows#comment-1013880</link>
    <description> &lt;p&gt;Thank you very much !!! &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;With the OPENER object you&#039;ve saved me!!&lt;br /&gt;
now I can access to the main window object easily.&lt;/p&gt;
&lt;p&gt;Thank you Vincent.&lt;/p&gt;
 </description>
     <pubDate>Thu, 25 May 2000 17:50:00 +0000</pubDate>
 <dc:creator>Akim</dc:creator>
 <guid isPermaLink="false">comment 1013880 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/pass-data-between-windows#comment-1013878</link>
    <description> &lt;p&gt;thanks Vincent,&lt;/p&gt;
&lt;p&gt;- But the thing is that the popup window which should reference the main one and not the inverse : There is not waiting time between the 2 instructions &lt;/p&gt;
&lt;p&gt;myTreeWin = window.open(blah, blah....&lt;br /&gt;
popChoice = myTreeWin.popChoice; &lt;/p&gt;
&lt;p&gt;- Is there a way to reference a window by for example Windows collection (if exists)? &lt;/p&gt;
&lt;p&gt;- Or It&#039;s not a good practice to design my web app like that... And I should find another method??&lt;/p&gt;
&lt;p&gt;Thank you for your help.&lt;/p&gt;
 </description>
     <pubDate>Thu, 25 May 2000 13:51:00 +0000</pubDate>
 <dc:creator>Akim</dc:creator>
 <guid isPermaLink="false">comment 1013878 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/pass-data-between-windows#comment-1013879</link>
    <description> &lt;p&gt;Hi Akim,&lt;/p&gt;
&lt;p&gt;   Guess I&#039;m confused, but...&lt;/p&gt;
&lt;p&gt;  1) you reference the main window with:&lt;br /&gt;
   opener.varname;&lt;br /&gt;
   opener.document.formname.elementname.value;&lt;br /&gt;
   2) The two statements I made are not necessarily one after the other (I don&#039;t know your code, so I can&#039;t tell you where to put them.) They are examples.&lt;br /&gt;
   3) re: &quot;There is not waiting time between the 2 instructions&quot;&lt;br /&gt;
   You do not need waiting time. Windows do not automatically close.  I&#039;m presuming your TreeView is some sort of form that collects a value (popChoice). Once you have that value you can pass it back to the main window (if that is what you want to do) and focus the main window (&quot;opener.focus()&quot;), and then close the popUp (if that is what you wnat to do.)&lt;/p&gt;
&lt;p&gt;Vinny&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;a href=&quot;http://members.aol.com/grassblad&quot; class=&quot;bb-url&quot;&gt;GrassBlade: cut&amp;amp;paste javascript&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.javaplace.co.uk&quot; class=&quot;bb-url&quot;&gt;The Javascript Place Forums&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 25 May 2000 04:54:00 +0000</pubDate>
 <dc:creator>Vincent Puglia</dc:creator>
 <guid isPermaLink="false">comment 1013879 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/pass-data-between-windows#comment-1013877</link>
    <description> &lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;  Try something like:&lt;/p&gt;
&lt;p&gt;  1) name your popUp&lt;br /&gt;
  myTreeWin = window.open(blah, blah....&lt;br /&gt;
  2) pass the selection back to the main window&lt;br /&gt;
   popChoice = myTreeWin.popChoice; (this assumes you have declared the var in both windows.)&lt;br /&gt;
  3) Once you have the var, close the popUp, then redirect the window.&lt;/p&gt;
&lt;p&gt;   myTreeWin.close();&lt;br /&gt;
   location.href = popChoice;&lt;/p&gt;
&lt;p&gt;Vinny&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;a href=&quot;http://members.aol.com/grassblad&quot; class=&quot;bb-url&quot;&gt;GrassBlade: cut&amp;amp;paste javascript&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.javaplace.co.uk&quot; class=&quot;bb-url&quot;&gt;The Javascript Place Forums&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 24 May 2000 23:54:00 +0000</pubDate>
 <dc:creator>Vincent Puglia</dc:creator>
 <guid isPermaLink="false">comment 1013877 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
