Matt & Walter,
You are both right... Ajax.Updater is, apparently, trying to update
the <select> AFTER it calls onSuccess and since it is incapable of updating
a <select> it was thereby overwritting my adds... no problem, once I
figured that out, I just added in a <div id='results'> and let the updater
put the json there... it makes it easy to debug and I can update it once I
get this fully working (or leave it in the example I plan on posting
somewhere so the next person doesn't have to go through all this).
Next two things are:
1) clear the selects. $('city').clear() doesnt work nor does
$('city).options.length = 0; Any suggestions on how to go about that?
2) get the event observers to work... neither $('zip').observe('onkeyup',
cities); OR Event.Observe('zip', 'onkeyup', counties); works
On Tue, Jun 7, 2011 at 5:41 PM, Matt Petrovic <[email protected]> wrote:
> try using Ajax.Request
>
> --
> You received this message because you are subscribed to the Google Groups
> "Prototype & script.aculo.us" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/prototype-scriptaculous/-/QTllMU5xRkRZMllK
> .
>
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/prototype-scriptaculous?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.