orb1234 Posted July 28, 2004 Posted July 28, 2004 Hi All, I have a page where I create a set of controls (Labels, Textboxes, etc.) dynamically from an XML document. Some of the labels have a function associated with them that calls a pop-up Datepicker. Everything works fine until I choose a date in the Datepicker. When it returns to the original window (the "window.opener" window) it can't find the dynamically created textbox it should fill. when I do it with a "hard-coded" textbox it works fine. The textbox must be dynamically created according to the definitions in the XML so I have to stick to it. :o Please help me solve this one... Thanks Quote
huby Posted July 28, 2004 Posted July 28, 2004 Hi All, I have a page where I create a set of controls (Labels, Textboxes, etc.) dynamically from an XML document. Some of the labels have a function associated with them that calls a pop-up Datepicker. Everything works fine until I choose a date in the Datepicker. When it returns to the original window (the "window.opener" window) it can't find the dynamically created textbox it should fill. when I do it with a "hard-coded" textbox it works fine. The textbox must be dynamically created according to the definitions in the XML so I have to stick to it. :o Please help me solve this one... Thanks if your main page is doing a postback, maybe the dynamic control isn't re-created yet when you pass the value? try using a session variable for the value you pass from a page to another just a thought ... Quote there are 10 kinds of people on earth: those who understand binary, and those who don't.
Joe Mamma Posted July 28, 2004 Posted July 28, 2004 (edited) Hi All, I have a page where I create a set of controls (Labels, Textboxes, etc.) dynamically from an XML document. Some of the labels have a function associated with them that calls a pop-up Datepicker. Everything works fine until I choose a date in the Datepicker. When it returns to the original window (the "window.opener" window) it can't find the dynamically created textbox it should fill. when I do it with a "hard-coded" textbox it works fine. The textbox must be dynamically created according to the definitions in the XML so I have to stick to it. :o Please help me solve this one... ThanksI dont believe window.opener is available to popup windows. I thought they were only available to framed documents. are you using window.showModalDialog to open the page that contains the date time picker? window.showModalDialog returns the window.returnValue of the page that it opened. In the datepicker page, set window.returnValue equal to the datepicker value when closing. Edited July 29, 2004 by Joe Mamma Quote Joe Mamma Amendment 4: The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no warrants shall issue, but upon probable cause, supported by oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. Amendment 9: The enumeration in the Constitution, of certain rights, shall not be construed to deny or disparage others retained by the people.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.