Wednesday, March 21, 2012

Loading the Ajax Toolkit Page with IFrame into Php-website: Access denied

How to load the Ajax Toolkit Page (my Chat) with IFrame into Php-website?

Code for an illustration:

1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">2<html xmlns="http://www.w3.org/1999/xhtml" >3<head>4<title>Untitled Page</title>5</head>6<body>7<iframe id="iframe1" width="100%" height="1000" frameborder="0" src="http://ajax.asp.net/ajaxtoolkit/Accordion/Accordion.aspx" marginwidth="0" marginheight="0" scrolling="no" />8</body>9</html>10

There is nothing elase that you have to do.

Since PHP is in-line with HTML, just close your PHP and specify the HTML iframe tage.

As long as the iframe page is a complete AJAX Toolkit page that works stand-alone, you should be fine.

No comments:

Post a Comment