Hi first thank you
second it's doesn't work 
look to what i make
PHP Code:
<script type="text/javascript" src="dfile/js/jquery.js"></script>
<script type="text/javascript">
function aClick() {
if ($('#name').val()== '' || $('#name').val().length < 3 || $('#mail').val().indexOf('@')== -1 || $('#mail').val().indexOf('.')== -1 || $('#mail').val().length < 7 || $('#domain').val()== '' || $('#domain').val().length < 3 || $('#domain').val().indexOf('.')== -1)
{
$(adoption_it).attr("disabled", true);
}else{
$(adoption_it).removeAttr("disabled");}
}
function loadXmlHttp(url, id) {
var f = this;
if (loadXmlHttp.xmlHttp){
f.xmlHttp = loadXmlHttp.xmlHttp();
f.el = document.getElementById(id);
f.xmlHttp.open("GET", url, true);
f.xmlHttp.onreadystatechange = function(){f.stateChanged();};
f.xmlHttp.send(null);
}
else alert('Your browser does not support AJAX!'); // substitute your desired request object unsupported code here
}
loadXmlHttp.xmlHttp = null; loadXmlHttp.re = /^http/.test(window.location.href);
/*@cc_on @*/ // used here and below, limits try/catch to those IE browsers that both benefit from and support it
/*@if(@_jscript_version >= 5) // prevents errors in old browsers that barf on try/catch & problems in IE if Active X disabled
try {loadXmlHttp.ie = window.ActiveXObject}catch(e){};
@end @*/
if (window.XMLHttpRequest && (!loadXmlHttp.ie || loadXmlHttp.re))
loadXmlHttp.xmlHttp = function(){return new XMLHttpRequest();}; // Firefox, Opera 8.0+, Safari, others, IE 7+ when live - this is the standard method
else if (/(object)|(function)/.test(typeof createRequest))
loadXmlHttp.xmlHttp = createRequest; // ICEBrowser, perhaps others
else {
loadXmlHttp.xmlHttp = null;
// Internet Explorer 5 to 6, includes IE 7+ when local //
/*@if(@_jscript_version >= 5)
try{loadXmlHttp.xmlHttp = function(){return new ActiveXObject("Msxml2.XMLHTTP");};}
catch(e){try{loadXmlHttp.xmlHttp = function(){return new ActiveXObject("Microsoft.XMLHTTP");};}catch(e){}}
@end @*/
}
loadXmlHttp.prototype.stateChanged = function(){
if (this.xmlHttp.readyState == 4 && (this.xmlHttp.status == 200 || !loadXmlHttp.re))
this.el.innerHTML = this.xmlHttp.responseText;
// in this code i try to add whole the code and it's same thing
// and in other way i just put the function like aClick() and also doesn't work
if ($('#name').val()== '' || $('#name').val().length < 3 || $('#mail').val().indexOf('@')== -1 || $('#mail').val().indexOf('.')== -1 || $('#mail').val().length < 7 || $('#domain').val()== '' || $('#domain').val().length < 3 || $('#domain').val().indexOf('.')== -1)
{
$(adoption_it).attr("disabled", true);
}else{
$(adoption_it).removeAttr("disabled");}
}
</script>
</head>
<body>
<br />
<div id="et3rnal"></div><br />
<input type="button" onclick="new loadXmlHttp('test.php', 'et3rnal')" value="do"><br />
</body>
in test.php file just put
PHP Code:
<input type=text id=name size=21 class="earea" onkeydown="//checkme()"><br />
<input type=text id=mail size=21 class="earea" onkeydown="//checkme()"><br />
<input type=text id=domain size=21 class="earea" onkeydown="//checkme()"><br />
<input type=button id="adoption_it" value="do"><br />
<input type=button value="O" onclick="aClick()"><br />
can you pleas make an example
in this way it's same nothing coz it's also work in one time
just in first called
Bookmarks