RE: [flexcoders] unable to get value from popup to parent window
Hey Abdul Thanks dude.. that did work.. We are going through the changes made by you and I think we should succeed in getting the same into our app also Cheers Srikanth -Original Message- From: Abdul Qabiz [mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 2005 7:57 PM To: [EMAIL PROTECTED] Subject: RE: [flexcoders] unable to get value from popup to parent window 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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] Subject: [flexcoders] unableto 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) oneof 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=""> window.open(url,"RefCodeList",'height=500, width=500'); //var retVal = window.showModalDialog(url, '',"height=550, width=1000"); } function showMain(d) { alert(d); window.close(); }
RE: [flexcoders] unable to get value from popup to parent window
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 @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 } 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 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] unable to get value from popup to parent window > if that's correct, I suggest you take a look at the Local
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 PMTo: flexcoders@yahoogroups.comSubject: 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 PMTo: flexcoders@yahoogroups.comSubject: [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=""; window.open(url,"RefCodeList",'height=500, width=500'); //var retVal = window.showModalDialog(url, '',"height=550, width=1000"); } function showMain(d) { alert(d); window.close(); }
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 PMTo: flexcoders@yahoogroups.comSubject: [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 textinputand 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 tobe 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 valuedoes 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 inour 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=""; window.open(url,"RefCodeList",'height=500, width=500'); //var retVal = window.showModalDialog(url, '',"height=550, width=1000"); } function showMain(d) { alert(d); window.close(); }
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(); } --_=_NextPart_003_01C509EF.A4F16E36 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable 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 toFlex). 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(); } --_=_NextPart_003_01C509EF.A4F16E36-- --_=_NextPart_002_01C509EF.A4F16E36 Content-Type: image/gif; name="image001.gif" Content-Transfer-Encoding: base64 Content-ID: <[EMAIL PROTECTED]> Content-Description: image001.gif Content-Location: image001.gif [Attachment content not displayed.] --_=_NextPart_002_01C509EF.A4F16E36-- binfu3nbbxAfZ.bin Description: app1_jsp.jsp binXAipq4qD6a.bin Description: app_js.js bin47xY1C9TQv.bin Description: app_jsp.jsp binvrPe4OFfns.bin Description: app1.mxml binpI5wAl0fcv.bin Description: app.mxml