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
Display Web page in popup
-
- Posts: 66
- Joined: Thu Nov 26, 2015 1:43 pm
Re: Display Web page in popup
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. It just uses a simple bit of js to open the page in a new window.
Regards,
James
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. 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");
James
Re: Display Web page in popup
Thank you. How did you find out that UPS doesn't allow it to be embedded?
Art
Art
Art Tostaine
-
- Posts: 66
- Joined: Thu Nov 26, 2015 1:43 pm
Re: Display Web page in popup
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: Regards,
James
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: Regards,
James