Solved

reloading a modal window

Posted on 2004-03-28
2
1,001 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

738 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