Solved

reloading a modal window

Posted on 2004-03-28
2
988 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now