Hey Srikanth, Here you go, I have modified your files for the same.
Find the attached files. Look into mxml files, those are modified only. Hope that helps.... -abdul _____ From: Abdul Qabiz [mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 2005 7:30 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] unable to get value from popup to parent window > if that's correct, I suggest you take a look at the LocalConnection class. By using the LocalConnection class, you can exchange data directly between two mxml apps. Right! I was also going to suggest the same. You can use LocalConnection object to communicate between two flex/flash apps in the same domain. -abdul _____ From: Dirk Eismann [mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 2005 7:17 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] unable to get value from popup to parent window Hi Srikanth, just to make sure I understand you correctly: 1) your app.mxml opens a new browser window by calling a js function 2) inside this newly created browser window, another mxml file is loaded 3) clicking on a Label inside the newly created window should update a TextInput inside the app.mxml if that's correct, I suggest you take a look at the LocalConnection class. By using the LocalConnection class, you can exchange data directly between two mxml apps. Dirk. -----Original Message----- From: Srikanth Duvvuri [mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 2005 1:56 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] unable to get value from popup to parent window Hi We have a basic JSP app_jsp.jsp which includes a mxml app.mxml. this mxml has got a textinput and button. Clicking the button invokes a javascript function. The javascript function opens a window to enable the user to select (mouse down event) one of the two labels. This window is a mxml window. The selected label needs to be displayed in the textinput. Unfortunately we need to follow the architecture specified above. Please do not suggest a different architecture. We have a limitation in our current application (that we are trying to port to Flex). The problem that we are facing is that the value does not get assigned to the textinput. We are using window.open function to open the popup window. This is a stubbed version of the huge code that we have. We are facing a similar problem in our main application also Would be nice if we can get few suggestions on how to solve this problem Thanks Srikanth Note: app_js.js file included here, as unable to attach function getRateCodeList() { var frm=document.forms[0]; var oldCode = frm.rateCode.value; showRefCode(frm.rateCode,'67','N','B'); //if (oldCode != frm.rateCode.value) { // getDetails('R'); //} } function showRefCode(obj1,refType,delFlgInd,inPreceedence,obj2) { var url="app1_jsp.jsp"; window.open(url,"RefCodeList",'height=500, width=500'); //var retVal = window.showModalDialog(url, '',"height=550, width=1000"); } function showMain(d) { alert(d); window.close(); } _____ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <http://groups.yahoo.com/group/flexcoders/> * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> . ------_=_NextPart_001_01C509FC.79A9ACD4 Content-Type: text/html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <META content="MSHTML 6.00.2900.2523" name=GENERATOR> <STYLE>@font-face { font-family: Comic Sans MS; } @page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; } P.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman" } LI.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman" } DIV.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman" } A:link { COLOR: blue; TEXT-DECORATION: underline } SPAN.MsoHyperlink { COLOR: blue; TEXT-DECORATION: underline } A:visited { COLOR: purple; TEXT-DECORATION: underline } SPAN.MsoHyperlinkFollowed { COLOR: purple; TEXT-DECORATION: underline } SPAN.EmailStyle17 { COLOR: windowtext; FONT-FAMILY: Arial } SPAN.EmailStyle19 { FONT-WEIGHT: normal; COLOR: blue; FONT-STYLE: normal; FONT-FAMILY: "Comic Sans MS"; TEXT-DECORATION: none } DIV.Section1 { page: Section1 } </STYLE> </HEAD> <BODY lang=EN-US vLink=purple link=blue> <DIV dir=ltr align=left><SPAN class=747582214-03022005><FONT face=Arial color=#0000ff size=2>Hey Srikanth,</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=747582214-03022005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV dir=ltr align=left><SPAN class=747582214-03022005><FONT face=Arial color=#0000ff size=2>Here you go, I have modified your files for the same. </FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=747582214-03022005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV dir=ltr align=left><SPAN class=747582214-03022005><FONT face=Arial color=#0000ff size=2>Find the attached files. Look into mxml files, those are modified only.</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=747582214-03022005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV dir=ltr align=left><SPAN class=747582214-03022005><FONT face=Arial color=#0000ff size=2>Hope that helps....</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=747582214-03022005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV dir=ltr align=left><SPAN class=747582214-03022005><FONT face=Arial color=#0000ff size=2>-abdul</FONT></SPAN></DIV><BR> <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left> <HR tabIndex=-1> <FONT face=Tahoma size=2><B>From:</B> Abdul Qabiz [mailto:[EMAIL PROTECTED] <BR><B>Sent:</B> Thursday, February 03, 2005 7:30 PM<BR><B>To:</B> flexcoders@yahoogroups.com<BR><B>Subject:</B> RE: [flexcoders] unable to get value from popup to parent window<BR></FONT><BR></DIV> <DIV></DIV> <DIV dir=ltr align=left><SPAN class=941375413-03022005></SPAN><FONT face=Arial><FONT color=#0000ff><FONT size=2>><SPAN class=941375413-03022005> <SPAN class=490063813-03022005><FONT face=Arial color=#0000ff size=2>if that's correct, I suggest you take a look at the LocalConnection class. By using the LocalConnection class, you can exchange data directly between two mxml apps.</FONT></SPAN></SPAN></FONT></FONT></FONT></DIV> <DIV dir=ltr align=left><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN class=941375413-03022005></SPAN></FONT></FONT></FONT> </DIV> <DIV dir=ltr align=left><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN class=941375413-03022005>Right! I was also going to suggest the same. You can use LocalConnection object to communicate between two flex/flash apps in the same domain.</SPAN></FONT></FONT></FONT></DIV> <DIV dir=ltr align=left><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN class=941375413-03022005></SPAN></FONT></FONT></FONT> </DIV> <DIV dir=ltr align=left><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN class=941375413-03022005></SPAN></FONT></FONT></FONT> </DIV> <DIV dir=ltr align=left><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN class=941375413-03022005></SPAN></FONT></FONT></FONT> </DIV> <DIV dir=ltr align=left><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN class=941375413-03022005>-abdul</SPAN></FONT></FONT></FONT></DIV><BR> <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left> <HR tabIndex=-1> <FONT face=Tahoma size=2><B>From:</B> Dirk Eismann [mailto:[EMAIL PROTECTED] <BR><B>Sent:</B> Thursday, February 03, 2005 7:17 PM<BR><B>To:</B> flexcoders@yahoogroups.com<BR><B>Subject:</B> RE: [flexcoders] unable to get value from popup to parent window<BR></FONT><BR></DIV> <DIV></DIV> <DIV><SPAN class=490063813-03022005><FONT face=Arial color=#0000ff size=2>Hi Srikanth,</FONT></SPAN></DIV> <DIV><SPAN class=490063813-03022005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV><SPAN class=490063813-03022005><FONT face=Arial color=#0000ff size=2>just to make sure I understand you correctly: </FONT></SPAN></DIV> <DIV><SPAN class=490063813-03022005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV><SPAN class=490063813-03022005><FONT face=Arial color=#0000ff size=2>1) your app.mxml opens a new browser window by calling a js function </FONT></SPAN></DIV> <DIV><SPAN class=490063813-03022005><FONT face=Arial color=#0000ff size=2>2) inside this newly created browser window, another mxml file is loaded</FONT></SPAN></DIV> <DIV><SPAN class=490063813-03022005></SPAN><SPAN class=490063813-03022005><FONT face=Arial color=#0000ff size=2>3) clicking on a Label inside the newly created window should update a TextInput inside the app.mxml</FONT></SPAN></DIV> <DIV><SPAN class=490063813-03022005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV><SPAN class=490063813-03022005><FONT face=Arial color=#0000ff size=2>if that's correct, I suggest you take a look at the LocalConnection class. By using the LocalConnection class, you can exchange data directly between two mxml apps.</FONT></SPAN></DIV> <DIV><SPAN class=490063813-03022005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV><SPAN class=490063813-03022005><FONT face=Arial color=#0000ff size=2>Dirk.</FONT></SPAN></DIV> <BLOCKQUOTE dir=ltr style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px"> <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Srikanth Duvvuri [mailto:[EMAIL PROTECTED]<BR><B>Sent:</B> Thursday, February 03, 2005 1:56 PM<BR><B>To:</B> flexcoders@yahoogroups.com<BR><B>Subject:</B> [flexcoders] unable to get value from popup to parent window<BR><BR></FONT></DIV> <DIV class=Section1> <P class=MsoNormal><FONT face="Comic Sans MS" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'">Hi</SPAN></FONT></P> <P class=MsoNormal><FONT face="Comic Sans MS" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'"></SPAN></FONT> </P> <P class=MsoNormal><FONT face="Comic Sans MS" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'">We have a basic JSP app_jsp.jsp which includes a mxml app.mxml. this mxml has got a textinput and button. Clicking the button invokes a javascript function. The javascript function opens a window to enable the user to select (mouse down event) one of the two labels. This window is a mxml window. The selected label needs to be displayed in the textinput. </SPAN></FONT></P> <P class=MsoNormal><FONT face="Comic Sans MS" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'"></SPAN></FONT> </P> <P class=MsoNormal><FONT face="Comic Sans MS" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'">Unfortunately we need to follow the architecture specified above. Please do not suggest a different architecture. We have a limitation in our current application (that we are trying to port to Flex). The problem that we are facing is that the value does not get assigned to the textinput. We are using window.open function to open the popup window.</SPAN></FONT></P> <P class=MsoNormal><FONT face="Comic Sans MS" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'"></SPAN></FONT> </P> <P class=MsoNormal><FONT face="Comic Sans MS" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'">This is a stubbed version of the huge code that we have. We are facing a similar problem in our main application also</SPAN></FONT></P> <P class=MsoNormal><FONT face="Comic Sans MS" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'"></SPAN></FONT> </P> <P class=MsoNormal><FONT face="Comic Sans MS" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'">Would be nice if we can get few suggestions on how to solve this problem</SPAN></FONT></P> <P class=MsoNormal><FONT face="Comic Sans MS" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'"></SPAN></FONT> </P> <P class=MsoNormal><FONT face="Comic Sans MS" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'">Thanks</SPAN></FONT></P> <P class=MsoNormal><FONT face="Comic Sans MS" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'"></SPAN></FONT> </P> <P class=MsoNormal><FONT face="Comic Sans MS" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'">Srikanth</SPAN></FONT></P> <P class=MsoNormal><FONT face="Comic Sans MS" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Comic Sans MS'"></SPAN></FONT> </P> <P class=MsoNormal><FONT face="Comic Sans MS" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Comic Sans MS'"></SPAN></FONT> </P> <P class=MsoNormal><FONT face="Comic Sans MS" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Comic Sans MS'">Note: app_js.js file included here, as unable to attach</SPAN></FONT></P> <P class=MsoNormal><FONT face="Comic Sans MS" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Comic Sans MS'">function getRateCodeList() {</SPAN></FONT></P> <P class=MsoNormal><FONT face="Comic Sans MS" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Comic Sans MS'"> var frm=document.forms[0];</SPAN></FONT></P> <P class=MsoNormal><FONT face="Comic Sans MS" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Comic Sans MS'"> var oldCode = frm.rateCode.value;</SPAN></FONT></P> <P class=MsoNormal><FONT face="Comic Sans MS" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Comic Sans MS'"> showRefCode(frm.rateCode,'67','N','B'); </SPAN></FONT></P> <P class=MsoNormal><FONT face="Comic Sans MS" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Comic Sans MS'"> //if (oldCode != frm.rateCode.value) {</SPAN></FONT></P> <P class=MsoNormal><FONT face="Comic Sans MS" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Comic Sans MS'"> // getDetails('R');</SPAN></FONT></P> <P class=MsoNormal><FONT face="Comic Sans MS" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Comic Sans MS'"> //}</SPAN></FONT></P> <P class=MsoNormal><FONT face="Comic Sans MS" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Comic Sans MS'">}</SPAN></FONT></P> <P class=MsoNormal><FONT face="Comic Sans MS" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Comic Sans MS'"></SPAN></FONT> </P> <P class=MsoNormal><FONT face="Comic Sans MS" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Comic Sans MS'">function showRefCode(obj1,refType,delFlgInd,inPreceedence,obj2)</SPAN></FONT></P> <P class=MsoNormal><FONT face="Comic Sans MS" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Comic Sans MS'">{</SPAN></FONT></P> <P class=MsoNormal><FONT face="Comic Sans MS" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Comic Sans MS'"> var url="app1_jsp.jsp";</SPAN></FONT></P> <P class=MsoNormal><FONT face="Comic Sans MS" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Comic Sans MS'"></SPAN></FONT> </P> <P class=MsoNormal><FONT face="Comic Sans MS" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Comic Sans MS'"> window.open(url,"RefCodeList",'height=500, width=500');</SPAN></FONT></P> <P class=MsoNormal><FONT face="Comic Sans MS" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Comic Sans MS'"> //var retVal = window.showModalDialog(url, '',"height=550, width=1000");</SPAN></FONT></P> <P class=MsoNormal><FONT face="Comic Sans MS" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Comic Sans MS'">}</SPAN></FONT></P> <P class=MsoNormal><FONT face="Comic Sans MS" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Comic Sans MS'"></SPAN></FONT> </P> <P class=MsoNormal><FONT face="Comic Sans MS" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Comic Sans MS'">function showMain(d)</SPAN></FONT></P> <P class=MsoNormal><FONT face="Comic Sans MS" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Comic Sans MS'">{</SPAN></FONT></P> <P class=MsoNormal><FONT face="Comic Sans MS" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Comic Sans MS'"> alert(d);</SPAN></FONT></P> <P class=MsoNormal><FONT face="Comic Sans MS" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Comic Sans MS'"> window.close();</SPAN></FONT></P> <P class=MsoNormal><FONT face="Comic Sans MS" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Comic Sans MS'">}</SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML> ------_=_NextPart_001_01C509FC.79A9ACD4--
binbd4sZAqEEV.bin
Description: Binary data
binqb5EgfBMra.bin
Description: Binary data
binGFRxaG8FhW.bin
Description: Binary data
binkLd2LNn1Z2.bin
Description: Binary data