Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is it possible to add an ajax loader image to the dialog until the content gets loaded?
The problem: I have some database queries they need some time to load and I thought if someone else use my modul he could think it didn't work. So I just add to my dialog an ajax loader image to give the user an feedback. Yes something is turning like a wheel this must be good... My problem now is that I completly changed my modul to work with yours as a dependency. So is this is a nice idea?
Comments
Comment #1
broncomania CreditAttribution: broncomania commentedI tried to integrate your modul to work with mine together and I got at it, but on the way I found maybe an error. In your documentation you wrote this.
I followed the steps and I found maybe a mistake. Mozillas firebug said that btns is not known. At least I removed the btns and I got it, but now I didn't now how to get the buttons working. Could you explain it a little more for the fools like me?
Comment #2
EugenMayer CreditAttribution: EugenMayer commentedAll you need is adding "var" to declare btns. Anyway this module is not audienced to people with few / no JS knowledge. If you need further examples how to work with this plugin, just look at the wysiwyg_imageupload module.
Its not a bug, its rather an example.
Anyway thank you for the hint, just skipped that one when i copied the code from WUI
Comment #3
broncomania CreditAttribution: broncomania commentedAhhh thank you! Sometimes it's so simple!
I found out like in your modul its the missing
That solve the problem. It wasn't the var infront of the btns. Is it a declaration of an array? Maybe ...
Anyway thanx for your help. Your modul is still great and I included it into my modul with success and a smiling.
Comment #4
EugenMayer CreditAttribution: EugenMayer commentedCool :)