Here is the full code (with some fixes). I still get the same error...

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




On Mon, Apr 28, 2008 at 10:32 AM, JJ Cool <[EMAIL PROTECTED]> wrote:
> You have a missing semicolon behind xmlHttp=GetXmlHttpObject(). Besides that, 
> I don't see GetXmlHttpObject or stateChanged defined. If those issues are 
> fixed, does it work?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:304337
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