Page 1 of 1

Display Web page in popup

Posted: Fri Apr 12, 2019 5:42 am
by atostaine
I have a tracking# in a list. I want the user to be able to click on the tracking# and show a popup with a web page. I tried to follow the sample to display PDF's but I think that's just to show static content.

I need to navigate to a URL like https://www.ups.com/track?loc=en_US&tra ... ackdetails

I don't want to use sys_web.navigate if I don't have to. That opens a new tab.

I tried prim_web.urlParameter and some others but none of them navigated to the URL.

Thanks

Re: Display Web page in popup

Posted: Fri Apr 12, 2019 11:47 am
by JamesDuignan
Hi Art,

It looks as if UPS site does not allow it to be embedded in a page so the use of prim_web.page or prim_web.HTML to us an iFrame in a LANSA pop up or dialog are not suitable for this.

But it can be achieved by sending the url to a widget to open a new popup window see attached.
QuickExportArt.zip
(15.92 KiB) Downloaded 123 times
It just uses a simple bit of js to open the page in a new window.

Code: Select all

  window.open(myurl, "_blank", "toolbar=yes,scrollbars=yes,resizable=yes,top=500,left=500,width=400,height=400");
Regards,
James

Re: Display Web page in popup

Posted: Fri Apr 12, 2019 10:48 pm
by atostaine
Thank you. How did you find out that UPS doesn't allow it to be embedded?

Art

Re: Display Web page in popup

Posted: Mon Apr 15, 2019 8:54 am
by JamesDuignan
Hi Art,

I found this out because in Chrome the page in the frame says connection refused and in Firefox you get the following message in the console:
Console.PNG
Console.PNG (3.66 KiB) Viewed 8767 times
Regards,
James