Skip to content

Releases: Troopers/AjaxBundle

Fix Firefox double redirection

07 Aug 14:25
Compare
Choose a tag to compare
fix firefox double reload :'( (#40)

* fix firefox double reload :'(

* Update ajax.js

Allow to overwrite the loader (and its overlay)

02 Jul 23:09
Compare
Choose a tag to compare
Merge pull request #37 from Troopers/loader-overwrite

Allow to overwrite the loader

fix double redirect on firefox

23 Jun 09:54
Compare
Choose a tag to compare
Merge pull request #35 from BFoucher/fix/double-reload-firefox

fix double redirect on firefox

rollback unworking syntax for ajax handling

22 Jun 13:09
Compare
Choose a tag to compare
Merge pull request #34 from LoicGoyet/fix/scroll-position-rollback

roll back to previous method to keep scroll position but with a state…

crossbrowser ajax event handling

21 Jun 08:43
Compare
Choose a tag to compare
Merge pull request #33 from LoicGoyet/master

change the way to write on events ajaxStart and ajaxSuccess...

#Feature Auto-refresh a form

10 Oct 15:22
Compare
Choose a tag to compare

Auto-refresh a form

You can automatically send an ajax request to update your form when an input/select change, just add the data attribute "data-refreshonchange":

    <select name="category" data-refreshonchange="true">
        <option value="transport">Transport</option>
        <option value="structure">Stucture</option>
    </select>

Then in your controller's action:

 if ($request->query->get('novalidate', false) === false) {
    if ($form->isValid()) {
        // form is valid
    } else {
        // avoid to display errors when novalidate
        $form = $formFactory->createForm();
        $form->setData($user);
    }
}

For some reason, you would not refresh some parts of your form (for example an input type="file"). Then, add the data attribute 'data-ignoreonchange="$some_unique_id"'.

fix image path

27 Sep 21:12
Compare
Choose a tag to compare
v1.2.3

Update ajax.js

move to troopers org

27 Sep 20:59
Compare
Choose a tag to compare
v1.2.2

Move to Troopers organization (#23)

Allow hinclude to load ajax forms

24 Aug 22:08
Compare
Choose a tag to compare
v1.2.1

Disable pointer-events restriction for hinclude

v1.2.0

09 Feb 16:14
Compare
Choose a tag to compare
Merge pull request #18 from AppVentus/analysis-qvD5O8

Applied fixes from StyleCI