tittlejoseph
asked on
modal window in javascript
I'm making a application in which i'm providing user facility to select the item from the lookups. Everything i can do except making window modal(i.e. unless the top window is closed user can not access parent window which opened the child). I know this can be done using window.showModalDialog but here problem is that i can not submit the page on modal window because it opens the new window for that. (Modal window is supposed to show records page wise for which i need to submit the same page on same window). Therefore i'm forced to use window.open method. I can not also write in modal window "<body onblur=window.focus()> because minimizing modal i can access parent.
Have any of you have ever faced the same problem, if yes pls respond back with ur problem, i think it is all happending because microsoft has not provided us much options in window.open method.
Thanx
Have any of you have ever faced the same problem, if yes pls respond back with ur problem, i think it is all happending because microsoft has not provided us much options in window.open method.
Thanx
hi,
Even we faced the problem of Modal Window. Our client want the child window to be closed if the parent window is closed.The child window gives us calender to choose a date or detail of a record. So we have to make the child window modal. We faced the same problem as u have faced, we were not able to submit the form. So we wrote a javascript in such a way that if the user click any other screen then window will close itself automatically.
If this logics will work. I can give u the code.
GoodLuck.
Even we faced the problem of Modal Window. Our client want the child window to be closed if the parent window is closed.The child window gives us calender to choose a date or detail of a record. So we have to make the child window modal. We faced the same problem as u have faced, we were not able to submit the form. So we wrote a javascript in such a way that if the user click any other screen then window will close itself automatically.
If this logics will work. I can give u the code.
GoodLuck.
ASKER
No i dont want in that way, i can do what you are saying. But this will be wrong in case of lookups, may be ok in calendar picker. anyone else?
If you don't want to popup a modal page, how about use iframe to do the task? Just make the lookup page inside the parent page.
Here is a example from oreilly. It would guide you to deal with it.
http://www.oreillynet.com/lpt/a//javascript/2002/02/08/iframe.html
^^
Here is a example from oreilly. It would guide you to deal with it.
http://www.oreillynet.com/lpt/a//javascript/2002/02/08/iframe.html
^^
ASKER
No mate, this is not what i want
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I think i cant get any good answer then this. Although it has very little flaws still it will work.
I've been looking for it from a long time and was astonished that microsoft never thought to implement this.
I didnt implement it but gone through code and i'm sure it will work.
Thanx buddy
tittlejoseph@yahoo.com
I've been looking for it from a long time and was astonished that microsoft never thought to implement this.
I didnt implement it but gone through code and i'm sure it will work.
Thanx buddy
tittlejoseph@yahoo.com
Even we faced the problem of Modal Window. Our client want the child window to be closed if the parent window is closed.The child window gives us calender to choose a date or detail of a record. So we have to make the child window modal. We faced the same problem as u have faced, we were not able to submit the form. So we wrote a javascript in such a way that if the user click any other screen then window will close itself automatically.
If this logics will work. I can give u the code.
GoodLuck.