hi all,
have no idea....
if possible....
how to use dll file or other AjaxControlToolkit.dll file with php?

Recommended Answers

All 4 Replies

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.

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

Haven't you used ajax on php before? It is very simple. Just follow the below tutorial link and it will guide you through to using ajax.
http://www.tizag.com/ajaxTutorial/

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..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.