Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spinner.gif not working for me... or "please wait..." or "loading..." #4

Open
cyngus opened this issue Mar 8, 2011 · 7 comments
Open

Comments

@cyngus
Copy link

cyngus commented Mar 8, 2011

need some type of notification that the search is in progress so users dont think something went wrong .. my db is very large and the query takes a few seconds to populate anything in the autocomplete pulldown.. i noticed that there is a spinner graphic in the images folder but i can't for the life of me figure out how or why i can't get it to work.
any help please?

thanks!

@czukowski
Copy link

There is a placeholder text, that's displayed during load, but you need to pass a message string upon creating TextBoxList instance. for example:

        plugins: {
            autocomplete: {
                remote: {
                    loadPlaceholder: 'Please wait...',
                },
            }
        }

I'm not sure what happens if you don't do this, I'd expect some default text to appear, but might also be that it doesn't appear at all.

As for spinner graphics, in demo, there's a style element, where it's being applied to .textboxlist-loading selector, see around line 71.

@cyngus
Copy link
Author

cyngus commented Mar 8, 2011

regarding the spinner graphic.. i see where its being called in both the css and js on the demo however.. it doesn't ... work ... on the demo =) which is whats making troubleshooting this a bit more difficult.

none of the autocomplete demos show the spinner working

@czukowski
Copy link

ok, it looks like the selector for placeholder is .textboxlist-autocomplete-placeholder, and it's not set in demo CSS. But it goes the same for both 'Type to receive suggestions' and 'Loading...' placehodlers, so you may want to add and remove class textboxlist-loading to it with javascript, when appropriate.

@cyngus
Copy link
Author

cyngus commented Apr 6, 2011

Thank you for your help! i'm sorry it took so long to get back to you, your help was ... helpful =) we've got everything working now..

however have you noticed that this mootools texboxlist autocomplete does not work in IE9? Been trying to figure out what could be wrong.. any ideas?

@czukowski
Copy link

Do you mean it doesn't work at all? I've just tried that in IE9 and it shows up.

I don't have spinner graphics though, but I haven't made that to appear anyway.

@czukowski
Copy link

There's an error in demo, but it looks like IE9 doesn't want to allow XHR calls, probably, when viewed locally. Try placing it on to some staging server to see if it works.

This line from mootools-core has thrown "Access denied" for me:

xhr.open(method.toUpperCase(), url, this.options.async, this.options.user, this.options.password);

@cyngus
Copy link
Author

cyngus commented Apr 7, 2011

Well we've got it running on our site curently and it works just fine until it is viewed in IE9 i thought that maybe it was that mootools was fairly outdated in the packaged autocomplete script so we updated to the newest mootools 1.3.1 and that had no effect on the script on our server however it did make the all the areas of the demo work on http://devthought.com/wp-content/projects/mootools/textboxlist/Demo/ page.. EXCEPT the text field "values seeded on demand" and thats the exact one that we need... figures

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants