Display external website ( page ) in ServiceNow Page

abhiyadav2001
Giga Expert

Hi All,

I have created a UI page in my SNow instance ( Eureka ). In that page, I need to create a hyperlink ( href ) to other website ( say www.google.com ). I tried it in below way.

<iframe name="myFrame"></iframe>   <!-- created my blank frame here -->

<span>

<a class="jive-link-external-small" href="https://www.google.com" rel="nofollow" target="myFrame" target ="_blank"> Click here</a>  

</span>

With this, I experimented a lot.   '_blank' opens a link in new window. If I remove it   ( default choice is _self ) it doesnt work.

I also tried using myFrame. It isn't displaying the page in 'frame'

However, I would like to see the page in my same frame of SNow. Is it possible ?

Where should I look to get more information about it ? If anyone has any idea about it, please let me know.

Note : When I click on 'Click Here' ; browser status bar shows 'waiting for google.com' , but it isn't displaying the google page.

Thanks,

Abhijeet

1 ACCEPTED SOLUTION

abhiyadav2001
Giga Expert

Hi,



I found an issue...



When we try to render an external URL in Snow, browser gives us a security warning to allow to run it.



In Crome, mozilla, a symbol like 'shield' appears in address bar of browser. We need to click ' Allow' there only once. From next time you open the page, it will render the external URL in it.


View solution in original post

10 REPLIES 10

Brad Tilton
ServiceNow Employee
ServiceNow Employee

The target="myFrame" is the correct method, but google has some code that prevents it from being shown in an iframe if it's in a different domain. See the following stackoverflow post:


html - How to show google.com in an iframe? - Stack Overflow


Hi Brad,



I tried with other websites, like yahoo, glassdoor. However, its still not rendering the page. Any other place where I need to check?



Thanks,


Abhijeet


kvillalobos
Giga Contributor

I ran into the same issue, until I set the following system property to false.




glide.set_x_frame_options




Before setting to false, read the description.


Hi Kim,



I changed the property value to false. ( It was not editable as an admin, I switched to security Admin and changed its value to false ). Still there is no difference in a result. Do I need to check some other property as well ?



Thanks,


Abhijeet