O
O
ognennyibayan2017-09-12 14:44:31
JavaScript
ognennyibayan, 2017-09-12 14:44:31

How to make ajaxform work without email and textarea in modx revolution?

The standard ajax-form works and sends letters to the mail even with the addition of other fields. But if you remove one of the fields that it originally has and cancel its validation in the call, then the form will not be sent. How to make ajax-form submit without margins by default?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Spirin, 2019-05-25
@rockon404

Your scroll method is called both from the outside and from the inside. This means that scroll can be called multiple times with and and you will have multiple timeouts. The scrollId will contain the last ID. direction: 'horizontal'scroll: undefined

S
Shohruh Shaimardonov, 2019-05-25
@joeberetta

Read about scopes and this in js.
Your this.scrollId does not go there.
Better assign the id to a variable and remove the timeout through it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question