Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Hello,
I referred the following link -
https://www.ptc.com/en/support/article/CS281359 - ptc support link
to add a clickable image in the column of the grid , on clicking the image icon it redirects us to the mashup whose URL is provided and opens the mashup in the new window ,, Now I want that mashup should be displayed as a popup in the same window.
I am attaching the screenshots of the same .
Is there any way by which a popup window opens ??
Thanks in advance.
Hi @YS_10134308.
Which version of ThingWorx are you running? The latest releases have several options for hyperlinks.
Regards.
--Sharon
Hi @YS_10134308.
I assume you're not running 9.3 since the Grid Advanced was replaced in that version with a new grid widget.
Are you seeing any errors? You can run the dev tools in your browser for determining more regarding the failure.
Regards.
--Sharon
Hi @YS_10134308
You can embed onclick event in the HTML string for a element.
Use window.open method and specify 'popup' for the windowFeatures argument
Please refer to MDN document: https://developer.mozilla.org/en-US/docs/Web/API/Window/open
<a onclick="window.open('MashupURL', 'window_name', 'popup');"><img src=/Thingworx/MediaEntities/xxx style=width:xx;height:xx;/></a>
Regards,
Tony