Why do you update window content each time. That's the issue.
If you change your showEditWindow from this


function showEditWindow() {
        if( !editWin) {
editWin = new Window( 'editwin', { opacity:1, resizable: true, minimizable: false, maximizable: false, closable: true,
                                                                                
                 showEffect: Element.show, hideEffect: Element.hide});
        }
        editWin.setTitle( 'Select Test');
        editWin.setSize( 300, 300);
        editWin.getContent().update( content);
        editWin.showCenter();
        editWin.toFront();
}

to this

function showEditWindow() {
        if( !editWin) {
editWin = new Window( 'editwin', { opacity:1, resizable: true, minimizable: false, maximizable: false, closable: true, showEffect: Element.show, hideEffect: Element.hide});
                editWin.getContent().update( content);
                editWin.setTitle( 'Select Test');
                editWin.setSize( 300, 300);
        }
        editWin.showCenter();
        editWin.toFront();
}

it works fine.
Seb


On Feb 2, 2007, at 10:02 PM, Rengachari, Booshan wrote:

Seb,



Here is the sample page that reproduces this bug.



Please copy the file under samples. Select open window.



First time, you can move the selected values from one select box to another.

Close the window and reopen it.

Next time, you cannot do the same thing.



Thanks

Booshan Rengachari



From: [EMAIL PROTECTED] [mailto:javawin- [EMAIL PROTECTED] On Behalf Of Rengachari, Booshan
Sent: Friday, February 02, 2007 3:12 PM
To: [email protected]
Subject: Re: [Javawin] Form select component doesn't work well inside PWC



I will try to create a sample online this week. But the application I am developing is an internal app.



Thanks

Booshan Rengachari



From: [EMAIL PROTECTED] [mailto:javawin- [EMAIL PROTECTED] On Behalf Of Sébastien Gruhier
Sent: Friday, February 02, 2007 3:06 PM
To: [email protected]
Subject: Re: [Javawin] Form select component doesn't work well inside PWC



Could put a sample code online?



On Feb 2, 2007, at 8:38 PM, Rengachari, Booshan wrote:



Thanks Seb. It works fine now.



But, I am having an another problem.



I am loading a form inside the window. This form contains a select list. I am able to select values and submit it.
Close this window.
Open the same window again. Now whatever I select, it doesn’t seem to set the values of the form component. Please see the attached image. Value “ts6272” was selected, but the firebug debugger shows it as not selected.


Have anybody faced this problem before.



Thanks

Booshan Rengachari



From: [EMAIL PROTECTED] [mailto:javawin- [EMAIL PROTECTED] On Behalf Of Sébastien Gruhier
Sent: Thursday, February 01, 2007 11:06 AM
To: [email protected]
Subject: Re: [Javawin] Executing the Java Script inside the window content



editWin.getContent().update(content);



On Feb 1, 2007, at 4:25 PM, Rengachari, Booshan wrote:






I am getting dynamic content inside the window which Java Script code to enable drag&drop.

But the code doesn’t get executed. Please advise how I can executed the script inside innerHTML.



I tried the following, but it doesn’t help..



    editWin.getContent().innerHTML = content;

    editWin.getContent().innerHTML.evalScript();



Thanks

Booshan



_______________________________________________

Javawin mailing list

[email protected]

http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com



<error.PNG>

_______________________________________________

Javawin mailing list

[email protected]

http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com



<select.html>
_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

Reply via email to