This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Adam
Adam

Hi,

When I use the javascript API the ajax loader at top of page doesn't work. Do I need to specify anything explicitly to make it function or should it be doing it by itself?

Thanks

Adam

alxy
alxy

When do you expect the loader to show up?

Make sure you placed {%scripts %} and {% styles %} in your layouts ;)

Adam
Adam

I expect it to show up when a form submit button is clicked. It works absolutely fine when using the Data attributes API. It's just when using the javascript API - that's the only change that is being made.

The {% framework extras %} tag is in the layout and the framework js and the appropriate CSS for the strip loader are loaded, just seems that when using the javascript API it doesn't kick in. My js file is the last script loaded.

Adam
Adam

Adding {%scripts %} and {% styles %} makes no difference (assumable as the {% framework extras %} is present?).

alxy
alxy

uhm, can you paste your code? Probably you need to invoke the loader manually then (never tried that):

  $.oc.stripeLoadIndicator.show(event)
  $.oc.stripeLoadIndicator.hide()

Last updated

Adam
Adam

Excellent, just what it needed. Thanks :)

1-6 of 6

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.