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><a href=ReturnIfram()><span>Google</span></a></li>

href get a string which contain ifram like

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

try above in javascript see below example

<html>
<head>
<script language="JavaScript" type="text/javascript">
function makeFrame() {
   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><a href="#" onMouseDown="makeFrame()">GO! </a></p>
</body>
</html> 

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