title: Uncaught TypeError: Cannot read property 'length' of null
body: <p>I'm having a problem with an ajax script that checks postcodes against a region table in the database to find which area the postcode relates to, then updates the region select list with this information.</p>
  
  <p>There's nothing wrong with the ajax scripting at all, because it works from another page just fine. A particular page (in an admin area I can't give access to) is having problems and my debugger says "Uncaught TypeError: Cannot read property 'length' of null" when the call to the remote script is triggered.</p>
  
  <p>I'm baffled by it, because I'm clueless as to what it's suggesting is null. I understand what it's saying, that it can't read the length of null, obviously, but I can't see what it could be that's null. It may be being given an empty string, but an empty string doesn't trigger this error on the other pages, and an empty string isn't null. </p>
  
  <p>I know I've not given much to go on, but if you could offer any more debugging advice, it'd be great.</p>
  
  <p>Thanks.</p>