Do you have firebug installed?  Or Safari?  Or something which gives you a
console?  If so, before the autocomplete line, insert:

console.log( $('#zip').val() );

By the way, it was 'val' and not 'value', I was working from memory, and my
memory was obviously a tad faulty.  I usually don't use it, so...

Where would I look it up?  The jquery documentation:  api.jquery.com, more
specifically http://api.jquery.com/category/attributes/

Anyway, if the console.log command outputs the correct value, check to make
sure that the back-end script is being called.  If not, we will need more
details.

On Sun, Jan 24, 2010 at 11:18 AM, Frank Becker <computersac...@beckerwelt.de
> wrote:

> Give your Zip field an ID, then use $('#zip').value() instead of
>> form.ZIP.value.  Or maybe it's .value without parenthesis, I don't
>> remember, and I'm not in the mood to go look it up for you.  :)  But
>> bottom line, don't use 'form.ZIP'.  That's the part that isn't working.
>>
>
> Hi John,
>
> The input-field for the zip-code has the id zip already.
>
> Unfortunately this doesn't work.
>
>        $("#street").autocomplete('search.php?what=street&
>                add='+$('#zip').value(), {
> The script search.php isn't called. Nothing happens.
>
> The other possibility also doesn't work
>
>        $("#street").autocomplete('search.php?what=street&
>                add='+$('#zip').value, {
> In search.php the parameter "add" is undefined.
>
> You wrote, you are not in the mood to look for me. Where would you look? I
> can do it too.
>
> Best regards
> --
> Frank Becker
>
>


-- 
John Arrowwood
John (at) Irie (dash) Inc (dot) com
John (at) Arrowwood Photography (dot) com
John (at) Hanlons Razor (dot) com
--
http://www.irie-inc.com/
http://arrowwood.blogspot.com/

Reply via email to