The code you pasted works fine for me as long as the span is there.

<script type="text/javascript">
// Set variable for AJAX
var xmlHttp;

// Load in the AJAX object based on what browser you have
function GetXmlHttpObject()
    {
    var xmlHttp=null;
    try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
    catch (e)
        {
        // Internet Explorer
        try
        {
        xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
        }
            catch (e)
            {
            try
                {
                xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
                }
                catch (e)
                {
                alert("Your browser does not support AJAX!");
                return false;
                }
            }
        }
    return xmlHttp;
    }

//Set up the URL and then call it.
function employ()
    {
    xmlHttp=GetXmlHttpObject();
    var url="index.cfm?fuseaction=Register.EmployerCheck";
    url=url+"&Name="+escape(document.getElementById("name").value);
    //url=url+"&Address="+escape(document.getElementById("address").value);
    //url=url+"&city="+escape(document.getElementById("city").value);
    xmlHttp.onreadystatechange=stateChanged;
    xmlHttp.open("GET",url,true);
    xmlHttp.send(null);
    }

// Once the query is done, process the results by putting the results in the 
<span> below.
function stateChanged()
    {
    if (xmlHttp.readyState==4)
        {
        document.getElementById("employerlist").innerHTML=xmlHttp.responseText;
        }
    }
</script>


<form action="index.cfm?fuseaction=Register.ProcessResults" method="post" 
name="theform">
    <input type="text" name="EmployerName" id="name" onkeyup="employ();"/>
</form>

<span id="employerlist"></span>



      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304344
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to