#847: AutoCompleteField in master.kid doesn't work on non-root page
-----------------------------------+----------------------------------------
 Reporter:  [EMAIL PROTECTED]  |       Owner:  anonymous
     Type:  defect                 |      Status:  new      
 Priority:  normal                 |   Milestone:           
Component:  Widgets                |     Version:  0.9a5    
 Severity:  normal                 |    Keywords:           
-----------------------------------+----------------------------------------
 I have a search box (AutoCompleteField) that I want to have on every page,
 so I put it in the master.kid template. It works on / but not on any other
 pages.

 Works:
 http://bandradar.com

 Doesn't work:
 http://bandradar.com/events/list

 Viewing source the reason is obvious: None of the .js needed is being
 included in <head> for non-root pages!

 Here is the widget definition, and I will attach my master.kid:
 {{{
 class SearchBox(w.WidgetsList):
     search = w.AutoCompleteField(label="",
         search_controller="/artists/dynsearch",
         search_param="name",
         result_name="results",
         only_suggest=True,
         validator=v.Schema(text=v.NotEmpty(strip=True)),
         attrs={'size':20})

 artist_search_form = w.ListForm(fields=SearchBox(), name="search",
     submit_text="Search")
 }}}

-- 
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/847>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Tickets" 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/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---

Reply via email to