Forums

Loading Message after submit

Gatsman 08 Jul, 2016
The last topic about this issue is locked
http://www.chronoengine.com/forums/posts/f2/t96876.html?page=1
so i got to open a new one.

"Please see this FAQ for a later version of the Loader code.
I've never tried putting this in a modal window but this FAQ may help."
http://www.chronoengine.com/faqs/70-cfv5/5256-how-do-i-show-a-loading-image-when-the-form-submits-in-cfv5.html

Is this FAQ up to date i can not make it work into a very-very simple test form?
Also what is the Pure Code to Yes that i have to set in the Custom Code?

I uploaded the form if anyone needs to check it.
Gatsman 08 Jul, 2016
Got the Pure Code to Yes
I was adding the Custom Code in the Setup tab.
But still the loading message will not show.
GreyHead 09 Jul, 2016
Hi Gatsman,

I've got lost here? Is the image not showing in a 'standard' form view? Or is this a modal window problem (it shouldn't make much difference provided that the modal window is loading the form JS.

Please post a link to the form so I can take a quick look (there's no attachment to your post).

Bob
Gatsman 09 Jul, 2016
Good morning Bob,
I was talking about your post suggesting to follow the tutorial
How do I show a 'loading' image when the form submits in CFv5?
http://www.chronoengine.com/faqs/70-cfv5/5256-how-do-i-show-a-loading-image-when-the-form-submits-in-cfv5.html
Nothing to do with modal or anything else, I find the loading message as a very nice effect for the users so I tend to use it on almost every form I create.

I did a simple form to test this on my localhost.
I backed up the form made a zip and tried to upload it back it was blocked.

My form setup is:
Designer:
1 Textbox
1 File Field
1 Submit
1 Custom (with pure Code to Yes as the FAQ says and the code from the tutorial)

Setup
On Load
Load Javascript (with the code from the tutorial)
Render Form (added the data-gvalidate_success='showLoader')

On Submit
Debuger

But it won’t work no matter what. (with Joomla default template).
GreyHead 09 Jul, 2016
Hi Gatsman,

The settings all look OK, please post a link to the form so I can take a quick look.

Bob

PS You should be able to upload .cfbak or zip files here but you do need to upload the file before you submit the post.
Gatsman 13 Jul, 2016
Hi Bob,
Sorry for the late reply.
I got the form on localhost but this time i will upload it before submiting my post.
GreyHead 13 Jul, 2016
Hi Gatsman,

The problem I think is that the loader code is triggered off a successful validation event - and if there is no validation in the form that never happens.

If you have forms with no validation then you could change the JavaScript to run when the Submit button is clicked; or you can trick it by adding a form input element that is required, with a value pre-set and Initial display set to Parent Hidden. Then that input will be validated successfully and trigger the loading code.

Bob
Gatsman 13 Jul, 2016
Thanks Bob i will try it in the next days.
This topic is locked and no more replies can be posted.