[Q] using Dojox.data.servicestore in test_yahoo_search.html

View: New views
1 Messages — Rating Filter:   Alert me  

[Q] using Dojox.data.servicestore in test_yahoo_search.html

by V S P :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello

I am using
test_yahoo_search.html (from dojox.grid tests)
as an example of the search

and I am having problem where the 'query' parameter in the outgoing
search request
appears to be
set to nothing at the first attemp,
then to the value of my search box from the previous attempt (in
othewords it is one
step behind the value I am passing as a 'query' argument into the
Grid.fetch())

While investigating the problem , I noticed
that the test_yahoo_grid search example has the following code

store.service = (web ? service.webSearch : service.imageSearch);


Where the store was declared as a derivative of dojox.data.servicestore.

while looking in the debugger, I do not see an attribute of the
dojox.data.servicestore called 'service'

therefore, wanted to ask -- why is this being set, what role does it
play?


thank you
--
Vlad P
author of C++  ORM  http://github.com/vladp/CppOrm/tree/master


--
http://www.fastmail.fm - Access all of your messages and folders
                          wherever you are

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest@...
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest