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
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.
-----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();
}