[thelist] ajax dynamic dropdown menu set

Bob Meetin bobm at dottedi.biz
Wed Aug 4 11:04:03 CDT 2010


That was fast and it "works!" I will leave the .zip file in place for 
future late night cruisers.

Jack Timmons wrote:
> On Wed, Aug 4, 2010 at 10:11 AM, Bob Meetin <bobm at dottedi.biz> wrote:
>   
>
> Well, I got the moment to take a peek at it.
>
> In findCounty.php, change line 11 from:
>
> <select name="county" onchange="getCity(<?=$state?>,this.value)">
>
> to:
>
> <select name="county" onchange="getCity(<?php echo($country)?>, <?php
> echo($state)?>, this.value)">
>
> The Javascript function was expecting three variables, but your script
> was only echoing out two. So, when you would select an element,
> country was being passed as "undefined".
>
> As a neat little trick, when you have issues like this, I usually pop
> open Chrome's development window and see what the request was. After
> that, it was a matter of tracking down where the Javascript was being
> placed on the page from.
>
> On Wed, Aug 4, 2010 at 10:43 AM, Bob Meetin <bobm at dottedi.biz> wrote:
>   
>> I like your domain name.  Long long ago when I was corporately employed we
>> had a graveyard shift technician who was from Transylvania.  He was gaunt
>> and looked the part.
>>     
>
> Thanks :). It came to me in a moment of genius (I think an hour
> earlier I had just finished surfing the bacula website, too).
>
> Unfortunately (to some, who seem rather disappointed I'm not a cartoon
> character), I'm not gaunt. I'm a tank of sexiness.
>
>   


-- 
Bob Meetin
dotted i
303-926-0167 (home/business)
www.dottedi.biz/blog.php



More information about the thelist mailing list