Seb,
The reason why the content of the window will keep changing everytime is that,
the content could be different everytime.
The window basically provides the details of the user information, which could
be edited and saved. The selected user could be different everytime.
Since I destroy the window everytime I close, I expect PWC to create a new div
everytime I open a new window.
if( editWin) {
editWin.hide();
editWin.destroy();
editWin = null;
}
But still, I am curious to know why should I not change the content of the
window? And why it should behave like this?
Booshan Rengachari
Global Foreign Exchange Technology
Corporate & Investment Banking
Wachovia Bank N.A.
704-715-4799
________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sébastien Gruhier
Sent: Saturday, February 03, 2007 7:13 AM
To: [email protected]
Subject: Re: [Javawin] Form select component doesn't work well inside PWC
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:[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:[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.
1. I am loading a form inside the window. This form contains a select
list. I am able to select values and submit it.
2. Close this window.
3. 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:[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