Saturday, March 24, 2012

Modal Window

Hi,

Is it possible to open another page which has its own coding (probably using ajax) in a modal window?

There is nothing that prevents that. You'd need to wrap a IFRAME within the ModalPopUp . Personally to avoid any significant issues... I would use a dynmic control loading to load a control that has no other purpose than creating a iframe and accepting the page to load in that iframe. This would allow still a button in the Modal that would allow you to close (you will not be able to close the modal through the page in the Iframe without some heavy scripting).

Another apporach is to convert what you consider a page into a custom user / web controls and place them in the modal. (which is the technique I use)...

If you use the first option you'll probably want to dispose of the control that holds the iframe after closing the Modal however...

So direct answer is yes. But if you are looking for the ability for the page to interact with the main page then - you'll definately run into some coding issues...


Thanks i am running in a iframe right now so i just need to rap it up with the modal window thingy. and i need to find the code to close the modal but i havent looked at the codes yet so ill let you know how it will come out.

No comments:

Post a Comment