Is it possible to provide iframe in spModal?

Sathwik1
Tera Expert

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?
        });
     }
};

 

@Mohith Devatte @Ankur Bawiskar  In PopUp I need to show w3schools website

16 REPLIES 16

yes so all sorted or any one issue ?

if all sorted please close the thread by marking the answer correct 

I wan't to access other websites.. that's the requirement... 

okay what is the website link because iframe refuses few of the website and it throws the console error so which is the website that you are aiming for ?

 

Hi Mohith,

Just I am referring some random site.. in project I want to call some internal url.. can you please guide me how to acheive this?

hey sathwik ,

just replace the URL in the src attribute of the iframe and it will be done 

<iframe src="your_internal_url"/>