troopers / ajaxbundle Goto Github PK
View Code? Open in Web Editor NEWThis bundle offers a simple structure to run ajax actions
Home Page: http://troopers.agency
License: MIT License
This bundle offers a simple structure to run ajax actions
Home Page: http://troopers.agency
License: MIT License
Hi,
How could I change the loader shown on ajax request ?
I saw this part of code
if (loader == undefined) {
var loader = '<div id="canvasloader-container" style="display: none;"><img src="/bundles/troopersajax/img/three-dots.svg" style="width: 80%; padding-top: 15px;"/></div><div id="canvasloader-container--overlay" style="display: none;"></div>';
}
(https://github.com/Troopers/AjaxBundle/blob/master/Resources/public/js/ajax.js#L3)
I tried to set loader = $('#overlay')
before include ajax.js
script but it's always same as undefined
Afin de produire du code html valide il faudrait mettre à jour le bundle afin d'utiliser un attribut "data-update" à la place de l'actuel attribut "update".
I guess having an ajax-bundle wasn't absolutely a good thing because excepting warpping some javascript files and defining an assetic-injector configuration, it' doesn't have so much interest and should have been a simple library.
https://github.com/LeadDyno/intercooler-js looks to be better than our project on some points and I suggest to abandon this project to migrate soon on intercooler.
Since the last version 1.3, on some pages the overlay don't disappears after ajax response.
For example the FilterWidget in https://github.com/Victoire/victoire
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.