Is it possible to provide iframe in spModal?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2022 12:59 AM
In portal, I had a sentence.. when I clicked on it..a popUp needs to open ... in that I want to show some website.. ex: w3 schools website... so what should I need to write?
HTML
<div>
<p ng-click="c.clck()">Click here to open Popup</p>
</div>
Client controller
api.controller=function(spModal) {
/* widget controller */
var c = this;
c.clck= function () {
spModal.alert('How do you feel today?').then(function (answer) { // In this line what should I write?
});
}
};
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2022 02:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2022 02:41 AM
okay window pop up is coming up but i think iframe src has got the issue
can you send the widget code ?where you gave the iframe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2022 02:42 AM
I used iframe as www.google.com..
in console I can see this error.. may be servicenow is not supporting iframes?
Error in console : Refused to display 'https://www.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2022 02:44 AM
try giving another URL once like your instance homepage url and see
mark sure the syntax is <iframe src="your url"/>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2022 02:50 AM
Yeah, I tried that...
If I give same page like instance home page.. then it is working.