Skip to content Skip to sidebar Skip to footer

How To Display, Fetched Data From Api, In The Html Page?

I have an html page. Here, I am using tabview of Yahoo API. That is :
  • <

Solution 1:

You can use iframe for this purpose .. see below example ,,

Using Jquery tab, its always create a div where your result display. You have only way to open external link on your page using .

<li><ahref=ReturnIfram()><span>Google</span></a></li>

href get a string which contain ifram like

publicstringReturnIfram()
{
   return"<iframe src="http://google.fr"></iframe>"
}

try above in javascript see below example

<html><head><scriptlanguage="JavaScript"type="text/javascript">functionmakeFrame() {
   ifrm = document.createElement("IFRAME");
   ifrm.setAttribute("src", "http://developerfusion.com/");
   ifrm.style.width = 640+"px";
   ifrm.style.height = 480+"px";
   document.body.appendChild(ifrm);
}
</script></head><body><p><ahref="#"onMouseDown="makeFrame()">GO! </a></p></body></html>

Post a Comment for "How To Display, Fetched Data From Api, In The Html Page?"