?
Solved

reloading a modal window

Posted on 2004-03-28
2
Medium Priority
?
1,005 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 600 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 900 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
This article discusses how to implement server side field validation and display customized error messages to the client.
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…
Suggested Courses

752 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