Solved

reloading a modal window

Posted on 2004-03-28
2
1,004 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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

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 …
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
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…

707 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