[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1014
  • Last Modified:

Link to another page within Modal Popup

Hi all,

I have a link that opens up a Modal Popup. In the Modal Popup is a web page with links to other pages. When I press on one of these links, a new window opens up instead of loading the page in the Modal Popup.

Does anyone know how to get the web page to open up in the Modal Popup instead of a new window?

Thanks.

resourcesys.
0
resourcesys
Asked:
resourcesys
  • 3
  • 3
1 Solution
 
jrm213jrm213Commented:
I am guessing that the modal dialog is using an iframe to display the content. It depends on if you are loading someone elses webpage or pages that you have control over. If you are loading someone ese's content, if their links are set to open in a new window I don't think there is anything you could do. The only thing I could think of would be to use javascript to find all the links in the iframe and change their target property to "_self". If it is loading other pages from your site or sites you have control over, just change the links to not open in a new window.

I have never tried to use javascript to manipulate data in an iframe so I don't even know if it is possible.

0
 
resourcesysAuthor Commented:
Hi jrm213jrm213,

I am using the showModalDialog method.

The links where through a javascript function but if I use a normal link, there is no problem.

So, I have the option of trying to fix a javascript fix or not using javascript to link on the concerned pages.

resourcesys.
0
 
jrm213jrm213Commented:
in that case you may just need to change how the javascript function that processes your links handles opening the links.  What does the code look like to process your links?
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
resourcesysAuthor Commented:
window.location='mypage.htm' is what we generally use.

We have the same problem if we use Response.Redirect('mypage.htm', False) in ASP.NET.

resourcesys.
0
 
jrm213jrm213Commented:
hmmm...

maybe try self.location = 'mypage.html'
0
 
resourcesysAuthor Commented:
Hi jrm213jrm213,

self.location didn't work.

I'm going to go with the option of using normal html links instead of Javascript to link to pages.

Also, <base target="_self"/> allows me to use the Response.Redirect command in ASP.NET.

Thanks for your input.

resourcesys.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now