AJ: Thanks for the response! This looks like what I did to create autocomplete dropdowns, but can this help me output the results from the filter in a table or a div located outside of the form? Thats the main part I'm having trouble figuring out...
A.J. Brown-3 wrote: > > Hi , > > You can use Zend_Dojo_Form elements to do what you want. Here's code > which > accomplishes exactly what you're wanting to do (but in one of my projects, > of course): > > http://pastebin.com/m5765a1ca > > storeId can be any unique name you want > > The url under storeParams should be a URL which returns a dojo data > payload > (json with a dojo-specific structure). use Zend_Dojo_Data to transform > your > data into a dojo data payload. > > searchAttr is the field you want to filter and display on. Note that for > FilteringSelect boxes, the DISPLAYED value is what will be posted. > > On Sat, Feb 7, 2009 at 1:18 PM, buzzoff101 <[email protected]> wrote: > >> >> Hey all, I'm quite new to Zend Framework so I apologize in advance, >> please >> bear with me. >> >> I'm trying to create an application that searches through a database of >> users and returns matches based on the search query given without the >> need >> to submit a form or refresh the page. I've successfully created a normal >> application to do this, but what I would like to do is have a series of >> text >> fields in a form (for the different fields in the user table), that when >> filled out, generates a query that returns any matching users and >> dynamically displays them in a div below the form in real time (this is >> where using ajax with Dojo would come in). >> >> In other words, if I were to start typing "Bob" into the first name >> field, >> the div below the form would automatically be populated with all the >> users >> with the first name of Bob, and if I were to then tab over to the Last >> name >> field and start typing "Sm..." it would filter the list more (still in >> real >> time) to any Bob Sm___ users. >> >> Now I've had success in creating Dojo forms with FilteringSelect's and >> such >> to create autocomplete forms, but that is unfortunately the extent of my >> Zend Dojo knowledge, and I am at a loss as to where to even begin for >> this >> new application. >> >> Any advice or at least a point in the right direction would be greatly >> appreciated, thanks. >> -- >> View this message in context: >> http://www.nabble.com/Zend-Dojo-Beginner-Help-tp21892394p21892394.html >> Sent from the Zend Framework mailing list archive at Nabble.com. >> >> > > > -- > A.J. Brown > web | http://ajbrown.org > phone | (937) 660-3969 > > -- View this message in context: http://www.nabble.com/Zend-Dojo-Beginner-Help-tp21892394p21895676.html Sent from the Zend Framework mailing list archive at Nabble.com.
