Feb 01, 2012, 7:23 PM
Seems I was not clear here:
Repeat myself, but rephrasing: it's impossible to create a Window within a frame, but expand a mask on a parent page. Impossible on HTML level.
There are the following possible solutions how to create a Window on parent page.
1. Via JavaScript. The link in the post #2.
2. Calling a parent page's DirectMethod where you can render a Window this way:
https://examples1.ext.net/#/XRender/Basic/New_Window/
As well, a Window might be placed in a user control.
3. JavaScript + Server within a frame's context.
Regarding to:
Well, yes, it might be a problem. Generally, it would be best to move any logic from a page to, for example, Web Service. This way you would make your code more flexibility.
A single way to expand a modal mask on the whole page is creating a Window on the parent's page level.
Well, a mask on a parent page will cover everything within a frame and I can't see any way to avoid it.
There are the following possible solutions how to create a Window on parent page.
1. Via JavaScript. The link in the post #2.
2. Calling a parent page's DirectMethod where you can render a Window this way:
https://examples1.ext.net/#/XRender/Basic/New_Window/
As well, a Window might be placed in a user control.
3. JavaScript + Server within a frame's context.
3.1. Calling a DirectEvent/DirectMethod
3.2. Creating a Window instance
3.3. Getting its config calling the ToConfig method
3.4. Passing that config as a response
3.5. Creating a Window in JavaScript within a DirectEvent/DirectMethod Success handler using a config from the response
3.2. Creating a Window instance
3.3. Getting its config calling the ToConfig method
3.4. Passing that config as a response
3.5. Creating a Window in JavaScript within a DirectEvent/DirectMethod Success handler using a config from the response
Regarding to:
If the modal window is to be placed on the parent page, it would be difficult for me to do all the processing there where in fact it all belongs in the context of the child page.
Last edited by Daniil; Jun 15, 2012 at 2:17 PM.