On Jun 7, 2011, at 9:00 PM, Phil Petree wrote:
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?
I always set theSelect.options.length = 0 and that works for me. Can
you post a self-contained failing example so I can try it?
2) get the event observers to work... neither $
('zip').observe('onkeyup', cities); OR Event.Observe('zip',
'onkeyup', counties); works
In Event.Observe or the Element.observe convenience method, you drop
the on part of the event name. So you would put $
('zip').observe('keyup',doSomethingWild);
Glad you're back on track!
Walter
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
.
--
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.