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

<html>

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 10 (filtered)">

<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Comic Sans MS";
panose-1:3 15 7 2 3 3 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{font-family:Arial;
color:windowtext;}
span.EmailStyle19
{font-family:"Comic Sans MS";
color:blue;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size:
10.0pt;font-family:"Comic Sans MS"'>Hi</span></font></p>

<p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size:
10.0pt;font-family:"Comic Sans MS"'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size:
10.0pt;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 size=2 face="Comic Sans MS"><span style='font-size:
10.0pt;font-family:"Comic Sans MS"'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size:
10.0pt;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 
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.</span></font></p>

<p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size:
10.0pt;font-family:"Comic Sans MS"'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size:
10.0pt;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 size=2 face="Comic Sans MS"><span style='font-size:
10.0pt;font-family:"Comic Sans MS"'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size:
10.0pt;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 size=2 face="Comic Sans MS"><span style='font-size:
10.0pt;font-family:"Comic Sans MS"'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size:
10.0pt;font-family:"Comic Sans MS"'>Thanks</span></font></p>

<p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size:
10.0pt;font-family:"Comic Sans MS"'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face="Comic Sans MS"><span style='font-size:
10.0pt;font-family:"Comic Sans MS"'>Srikanth</span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Comic Sans MS"><span
style='font-size:10.0pt;font-family:"Comic Sans 
MS";color:blue'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Comic Sans MS"><span
style='font-size:10.0pt;font-family:"Comic Sans 
MS";color:blue'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Comic Sans MS"><span
style='font-size:10.0pt;font-family:"Comic Sans MS";color:blue'>Note: app_js.js
file included here, as unable to attach</span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Comic Sans MS"><span
style='font-size:10.0pt;font-family:"Comic Sans MS";color:blue'>function 
getRateCodeList()
{</span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Comic Sans MS"><span
style='font-size:10.0pt;font-family:"Comic Sans 
MS";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 var
frm=document.forms[0];</span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Comic Sans MS"><span
style='font-size:10.0pt;font-family:"Comic Sans 
MS";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 var
oldCode = frm.rateCode.value;</span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Comic Sans MS"><span
style='font-size:10.0pt;font-family:"Comic Sans 
MS";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 
showRefCode(frm.rateCode,'67','N','B');&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 </span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Comic Sans MS"><span
style='font-size:10.0pt;font-family:"Comic Sans 
MS";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 //if
(oldCode != frm.rateCode.value) {</span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Comic Sans MS"><span
style='font-size:10.0pt;font-family:"Comic Sans 
MS";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 //&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
getDetails('R');</span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Comic Sans MS"><span
style='font-size:10.0pt;font-family:"Comic Sans 
MS";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 //}</span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Comic Sans MS"><span
style='font-size:10.0pt;font-family:"Comic Sans 
MS";color:blue'>}</span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Comic Sans MS"><span
style='font-size:10.0pt;font-family:"Comic Sans 
MS";color:blue'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Comic Sans MS"><span
style='font-size:10.0pt;font-family:"Comic Sans MS";color:blue'>function 
showRefCode(obj1,refType,delFlgInd,inPreceedence,obj2)</span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Comic Sans MS"><span
style='font-size:10.0pt;font-family:"Comic Sans 
MS";color:blue'>{</span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Comic Sans MS"><span
style='font-size:10.0pt;font-family:"Comic Sans 
MS";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 var
url=&quot;app1_jsp.jsp&quot;;</span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Comic Sans MS"><span
style='font-size:10.0pt;font-family:"Comic Sans 
MS";color:blue'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Comic Sans MS"><span
style='font-size:10.0pt;font-family:"Comic Sans 
MS";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 window.open(url,&quot;RefCodeList&quot;,'height=500,
width=500');</span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Comic Sans MS"><span
style='font-size:10.0pt;font-family:"Comic Sans 
MS";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 //var
retVal = window.showModalDialog(url, '',&quot;height=550, 
width=1000&quot;);</span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Comic Sans MS"><span
style='font-size:10.0pt;font-family:"Comic Sans 
MS";color:blue'>}</span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Comic Sans MS"><span
style='font-size:10.0pt;font-family:"Comic Sans 
MS";color:blue'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Comic Sans MS"><span
style='font-size:10.0pt;font-family:"Comic Sans MS";color:blue'>function 
showMain(d)</span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Comic Sans MS"><span
style='font-size:10.0pt;font-family:"Comic Sans 
MS";color:blue'>{</span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Comic Sans MS"><span
style='font-size:10.0pt;font-family:"Comic Sans 
MS";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
alert(d);</span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Comic Sans MS"><span
style='font-size:10.0pt;font-family:"Comic Sans 
MS";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
window.close();</span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Comic Sans MS"><span
style='font-size:10.0pt;font-family:"Comic Sans 
MS";color:blue'>}</span></font></p>

</div>

</body>

</html>

------_=_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--

Attachment: binfu3nbbxAfZ.bin
Description: app1_jsp.jsp

Attachment: binXAipq4qD6a.bin
Description: app_js.js

Attachment: bin47xY1C9TQv.bin
Description: app_jsp.jsp

Attachment: binvrPe4OFfns.bin
Description: app1.mxml

Attachment: binpI5wAl0fcv.bin
Description: app.mxml

Reply via email to