atk4 / autocomplete

Implementation of AutoComplete functionality
1 stars 4 forks source link

Stylesheet doesn't get loaded when using autocomplete field in frameURL dialogs #4

Closed DarkSide666 closed 11 years ago

DarkSide666 commented 11 years ago

It's about line addStatisStylesheet and idea as such.

If we have page without Autocomplete fields (for example simple CRUD page), then of course autocomplete.css file doesn't get loaded, because that PHP script doesn't even get executed. But what happens when we click on Edit in CRUD and open up form in dialog window and this form contain autocomplete field? Then addStaticStylesheet get executed, but it didn't help us anyway. I guess it's because it will be included only on documentReady event, but documentReady in case of frameURL dialogs will not happen.

How to solve this puzzle ?

romaninsh commented 11 years ago

I think Janis have made interesting solution. He added