I am using Amelia on a website and the classes are set up as Events.
I have customised the Event List view with CSS and also with Javascript. The javascript removes the "select" button from 'below-the-fold' in the events list view and places it above the fold so users can select an event without having to click for more details first.
The problem I'm having is that sometimes my javascript function is running before the Events List has loaded, and the buttons are not being moved.
Is there a javascript hook or event that fires when the Events List has fully loaded, that I could use in my function so that it isn't run until it's ready?
Thanks for your response. I tried this and it does seem to work, but I'm only able to affect changes to the Amelia set-up if I bind it to a click event once Amelia has finished loading.
For example, if I use this
window.ameliaEventsLoaded = function (events) {
console.log('amelialoaded');
}
This works as expected and it logs a message to the console that Amelia has loaded.
Whereas if I use this:
window.ameliaEventsLoaded = function (events) {
jQuery( ".am-event" ).each(function( index ) {
console.log('foundevent');
});
}
Nothing happens; nothing is logged to the console as the events have not been found.
However, if I use this and bind it to a click event:
window.ameliaEventsLoaded = function (events) {
jQuery('.single-live-class .ajax_add_to_cart').on('click', function () {
jQuery( ".am-event" ).each(function( index ) {
console.log('foundevent');
});
});
}
Then I get messages logged to the console again because the events have been found.
Do you know why the function doesn't work if I use it without a click event? I would assume that if I'm using it inside the 'ameliaEventsLoaded' function then it would run once Amelia has loaded and look within it for the events?
They contacted us and told us that they tried to log in with your old credentials but they couldnt. Please send us new credentials so that we can log in to your site.
Hi there,
I am using Amelia on a website and the classes are set up as Events.
I have customised the Event List view with CSS and also with Javascript. The javascript removes the "select" button from 'below-the-fold' in the events list view and places it above the fold so users can select an event without having to click for more details first.
The problem I'm having is that sometimes my javascript function is running before the Events List has loaded, and the buttons are not being moved.
Is there a javascript hook or event that fires when the Events List has fully loaded, that I could use in my function so that it isn't run until it's ready?
Thanks
Hannah
Hello Hannah,
Thank you for purchasing our product, and for reaching out to us.
We have forwarded this to our developers as soon as we get some feedback from them we will contact you.
If you have any more questions please feel free to open another ticket.
Kind Regards,
Marko Davidovic [email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, floor plans, choropleth maps, and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello Hannah,
We have got the feedback from our developers and they say that you can try to achieve that by using this
Please try this solution and let us know has it worked.
Looking forward to your reply.
Kind Regards,
Marko Davidovic [email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, floor plans, choropleth maps, and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi Marko,
Thanks for your response. I tried this and it does seem to work, but I'm only able to affect changes to the Amelia set-up if I bind it to a click event once Amelia has finished loading.
For example, if I use this
This works as expected and it logs a message to the console that Amelia has loaded.
Whereas if I use this:
Nothing happens; nothing is logged to the console as the events have not been found.
However, if I use this and bind it to a click event:
Then I get messages logged to the console again because the events have been found.
Do you know why the function doesn't work if I use it without a click event? I would assume that if I'm using it inside the 'ameliaEventsLoaded' function then it would run once Amelia has loaded and look within it for the events?
Thanks
Hannah
Hello Hannah,
We have forwarded this to our developers again and as soon as we get some feedback from them we will contact you.
Kind Regards,
Marko Davidovic [email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, floor plans, choropleth maps, and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello Hannah,
They contacted us and told us that they tried to log in with your old credentials but they couldnt. Please send us new credentials so that we can log in to your site.
Looking forward to your reply.
Kind Regards,
Marko Davidovic [email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, floor plans, choropleth maps, and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello Hannah,
We have forwarded this to our developers again and as soon as we get some feedback from them we will contact you.
Kind Regards,
Marko Davidovic [email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, floor plans, choropleth maps, and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello Hannah,
We got the feedback from our colleagues and they sent us this.
If you write it like this:
Then it is printed out and they tried putting your custom code instead of console.log() and it looks as on your site.
It should work with adding the
part.
Hope this helps.
Kind Regards,
Marko Davidovic [email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, floor plans, choropleth maps, and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables