question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Open page in popup

See original GitHub issue

Hello, I want open page in popup by click on link. For example

<a class="link" href="page/about.html">About</a>

And I dont want load about.html content before. Is it possible to load page content and show in popup by link?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
nolimits4webcommented, Mar 25, 2015

Maybe i’ll add it, but it is easy for custom use. You may even just do it using custom XHR call:

<a class="link popup-link external" href="page/about.html">About</a>
$(document).on('click', '.popup-link', function (e){
    e.preventDefault();
    $.get($(this).attr('href'), function (content){
        myApp.popup('<div class="popup">' + content + '</div>');
    });
});

And that is all, you have permanent working solution 😃

1reaction
nolimits4webcommented, Mar 25, 2015

No, not possible by default. You may create popup with its initialized View, and when you click on this link you need to open popup and then use Router API to navigate Popup view to this page

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Open Links in a Popup Window - Super Dev Resources
Normally links get opened in the same window in which they are clicked in. In order to open them in a new window,...
Read more >
How to open a url link as a popup screen - javascript
Now my requirement is that when I type this url in browser,the webpage should open like a pop up. As there is no...
Read more >
Popups and window methods - The Modern JavaScript Tutorial
The syntax to open a popup is: window.open(url, name, params) : ... Settings for params : Position: ... Window features: ... There is...
Read more >
How to display a page in a popup window - XLineSoft
Insert a button into the Orders List page grid. Show the Add page in a popup, close popup on clicking 'Save', and then...
Read more >
How to open a popup with a URL - WP Popups Documentation
Opening a Popup with a URL works very similar to opening a popup by clicking on any HTML element. The main difference is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found