View Single Post
  #3 (permalink)  
Old November 5th, 2004, 03:42 PM
planoie's Avatar
planoie planoie is offline
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

The problem is in the way the browser presents the modal dialog. Unfortunately, postbacks don't work in them. I've also noticed that it's very difficult to refresh a page that you are viewing in a modal dialog. I think it has to do with the way the browser gets the HTML for it. It's almost like it gets the page in the background and then paints the dialog with the contents. If you put a page that takes a long time to load, you'll see the delay very obviously in the time it takes the modal dialog to show up.

The only solution I have found is to create a page that contains a single frame or iframe. That page will be the source page of the dialog, then the source of the i/frame will be your calendar page. Then the postback will work within the inner frame. Of course, this complicates things slightly with the return javascript, but it's just a matter of having the calendar page write out "top.returnValue" instead of "window.returnValue".