Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted
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 ...

there are 10 kinds of people on earth:

those who understand binary, and those who don't.

Posted (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...

Thanks

I 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 by Joe Mamma

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...