http://weierophinney.net/matthew/archives/198-Autocompletion-with-Zend-Framework-and-Dojo.html
this fine blog post , I set off to create my own custom autocomplete feature
in Zend and Dojo.
After a while playing with it and racking my brains, I have come to the
conclusion that either something is wrong, or there's an additional piece of
code that needs adding.
If I follow the instructions in Matthew's blog post I am given a list, but
each item in the list is shown as "undefined". I tried doing a similar thing
but just with the standard QueryReadStore, and added the dijitParam
searchAttr, and everything worked fine. When I then replaced the
QueryReadStore again with the custom one, but leaving the searchAttr
dijitParam in it worked fine. I thought that maybe the searchAttr was
possibly inserted by default, calling it name, but that didn't seem to hold
true when trying it out.
I would like to extend the FilteringSelect/Autocomplete functionality even
further - but I think I may have reached the point where Zend and Dojo's
relationship ends, and introduce some hand-written JavaScript. What I would
like to do is essentially pass the value from another element in the Ajax
request that is fired off on an autocomplete ComboBox/FilteringSelect. For
instance, if I had a postcode entry form, after the first part of the
postcode is entered the user begins to enter the second - and autocomplete
on the second half of the postcode will select possible results only where
the first part exists. Essentially I want to bind autocomplete enabled
dijits together.
Would this be possible within Zend, or is this one of those more advanced
things that require a bit extra? Maybe pass an extra dijitParam with the
second FilteringSelect with a value of the name of the first
FilteringSelect, then overload the fetch query to get the value of this
element too? I'm not sure really. Any ideas?
--
View this message in context: http://www.nabble.com/Custom-QueryReadStore-woes-tp21848886p21848886.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论