3
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by harry_watson
0

Could you elaborate on that. Are you trying to get a dll that isn't designed for php to work with php because if that is the case then it will not be compatible and will need recoding to compile with php. Other than that I don't have a clue what your talking about.

0

Could you elaborate on that. Are you trying to get a dll that isn't designed for php to work with php because if that is the case then it will not be compatible and will need recoding to compile with php. Other than that I don't have a clue what your talking about.

hey i mean to say that how to use all ajax control with php just like asp.net or c#.net

0

Also you could put this in the head section of your html page

<script type="text/javascript" src="scripts/ajax.js"></script>

Then make or use a 'scripts' folder. In the 'scripts' folder you'll need this file. Copy and paste the whole file and save it as above 'ajax.js'.

var xmlhttp;
function loadXMLDoc(url)
{
xmlhttp=null;
if (window.XMLHttpRequest)
  {// code for Firefox, Opera, IE7, etc.
  xmlhttp=new XMLHttpRequest();
  }
else if (window.ActiveXObject)
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
if (xmlhttp!=null)
  {
  xmlhttp.onreadystatechange=state_Change;
  xmlhttp.open("GET",url,true);
  xmlhttp.send(null);
  }
else
  {
  alert("Your browser does not support XMLHTTP.");
  }
}

function state_Change()
{
if (xmlhttp.readyState==4)
  {// 4 = "loaded"
  if (xmlhttp.status==200)
    {// 200 = "OK"
    document.getElementById('your_id').innerHTML=xmlhttp.responseText;
    }
  else
    {
    alert("Problem retrieving data:" + xmlhttp.statusText);
    }
  }
}

Then to call your new section or 'div'
use div id = 'your_id' you can find it in the above
code and call it whatever you like. id = 'your_id'.

Then call it in your html page like this...

<div class="something" onclick="loadXMLDoc('your_id')" style="cursor: pointer" onMouseOver="style.color='#6b93fa'" onMouseOut="style.color='black'"><br />Read more >></div>

'your_id' is a file named 'your_id.xml' or 'your_id.html' and you can create
in it anything you like. Just leave out html tags for that field and etc..

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.