Solved

reloading a modal window

Posted on 2004-03-28
2
993 Views
Last Modified: 2008-02-26
hai !!

can anybody tell me how to load a modal window with another page when a button is clicked on the modal window. code snippet will be greatly appreciated
thanx
ragz
0
Comment
Question by:babasri101
2 Comments
 
LVL 25

Assisted Solution

by:devic
devic earned 200 total points
ID: 10698192
hi babasri101,

here all what you need with examples:
==========================
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/showmodaldialog.asp
0
 
LVL 31

Accepted Solution

by:
GwynforWeb earned 300 total points
ID: 10698261
reloading a page into an open modaldialog is messy. Just putting a lin will open a new window not reload the dialog. You can do it this way though by having the dialog filled with an iframe that is then reloaded,eg


The page that opens the dialog
<script>
vReturnValue = window.showModalDialog('modal.htm')
</script>

modal.htm
<iframe name=iFrm height=100% width=100% src=modalIfrm.htm>
</iframe>

modalIfrm.htm
<input type=button onclick='window.location="http://google.com"'>
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you need to keep track of a simple list of numbers or strings, the Array object is your most direct tool.  As we saw in my earlier EE Article (http://www.experts-exchange.com/A_3488.html), typical array handling might look like this: (CODE) B…
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question