0

I am facing a Issue in appAPI.openURL parameter popup.

I expected popup parameter will open my URL as popup window. but it is popping under the main window. which is not my requirement.

I need to open my window as popup (modal popup) but not as pop under.

this is how i am doing it

appAPI.openURL({
url: href,
where: "popup",
focus: false
});

Any help would be appreciated.

saikiran
  • 2,247
  • 5
  • 27
  • 42

2 Answers2

2

Opening a modal window/popup has limited support by browsers/JavaScript and is less likely to work/be supported cross browser.

The nearest cross browser option you can achieve is to specify the where property of appAPI.openURL as window to open a popup window that is not modal.

appAPI.openURL({
  url: href,
  where: "window",
  focus: false
});

[Disclosure: I am a Crossrider employee]

Shlomo
  • 3,763
  • 11
  • 16
  • can you give any tips to debug background.js file. i am checking my installs for this i am sending a post request from background.js with my installid, and i am unable to get the request. @Shlomo – saikiran Oct 23 '14 at 06:23
0
    appAPI.openURL({
        url: href,
        where: "window",
        focus: true,
        height:window.screen.availHeight,
        width:window.screen.availWidth
    });

This opens a popup window above my browser.

saikiran
  • 2,247
  • 5
  • 27
  • 42