Forum Discussion
Longer term, we'd like to provide a way for you to do this server-side. We have a xml files that describe these various drop-downs, but they can't be modified via Studio at this point.
I'd also like to add CSS classes to those <li> tags -- I'll see if we can't add those.
In the meantime, the jquery fix seems appropriate. To deal with the ajax search re-load, you could try attaching a "load" event listener to those elements using jQuery. If that doesn't work, you might be able to do what you need using global ajax event handlers (http://api.jquery.com/category/ajax/global-ajax-event-handlers/).
Thanks for the reply Doug. Unfortunately I was not able to get it to work by using load events on elements, nor with a global ajax event hook. A little more research seems to indicate that the best (or only?) cross-broswer solution is to use a setInternval type of solution, which I have done and found that it works, although the delay and additional overhead is not the ideal solution. I will probably use this method for now, pending a better solution I can find or a future Lithium update of classes for LI tags.
Thanks.
- DavidE13 years agoLithium Alumni (Retired)
Hey rwm,
We provide a loader util allows you to add a function to be run after the page has been loaded.
LITHIUM.Loader(function() { /*do something*/ });
Let me know if you have any other questions.