> When I load the page, no javascript errors..
> 
> When I type something in the box, I get a "employ is not defined"..
> Yes it is... it's right freakin there. :)
> 
> I realize I must be missing something obvious... Any ideas?
> 
> <script type="text/javascript">
> function employ()
>       {
>       xmlHttp=GetXmlHttpObject()
>       var url="index.cfm?fuseaction=Register.CheckRecord";
>       url=url+"&Name="+document.getElementById("name").value;
>       url=url+"&Address="+document.getElementById("address").value;
>       url=url+"&city="+document.getElementById("city").value;
>       xmlHttp.onreadystatechange=stateChanged;
>       xmlHttp.open("GET",url,true);
>       xmlHttp.send(null);
>       }
> </script>
> 
> <form action="index.cfm?fuseaction=Register.ProcessResults"
> method="post" name="theform">
>      <input type="text" name="EmployerName" id="name" 
> onkeyup="employ();"> </form>

Do you have any other JavaScript functions in the page? If so, and one of
those JavaScript functions throws an error when it's called, you may see
this sort of error message saying that functions called later don't exist.

As a side note, you should escape any values before putting them in a query
string:

url += "&Name=" + escape(document.getElementById("name").value);

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Training: Adobe/Google/Paperthin Certified Partners
http://training.figleaf.com/

WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers!
http://www.webmaniacsconference.com/

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