D
D
DSmith2018-04-22 00:12:19
1C-Bitrix
DSmith, 2018-04-22 00:12:19

Ajax form doesn't always work, what's the problem?

The site has an ajax form in a popup.
No problems were observed in the Mozilla browser.
But in Chrome, the form is sometimes not submitted, but simply reloaded.
It turned out that when sending an incorrect request, a request is generated:

------WebKitFormBoundarycJPV0A7DKeMQCCWB
Content-Disposition: form-data; name="bxajaxid"
711f70a1ad08316370a269ab274c9f77
------WebKitFormBoundarycJPV0A7DKeMQCCWB
Content-Disposition: form-data; name="AJAX_CALL"
Y
------WebKitFormBoundarycJPV0A7DKeMQCCWB
Content-Disposition: form-data; name="sessid"
3dd17e638457837c0cf56ed2553efdd0
------WebKitFormBoundarycJPV0A7DKeMQCCWB
Content-Disposition: form-data; name="WEB_FORM_ID"
6
------WebKitFormBoundarycJPV0A7DKeMQCCWB
Content-Disposition: form-data; name="sessid"
3dd17e638457837c0cf56ed2553efdd0
------WebKitFormBoundarycJPV0A7DKeMQCCWB
Content-Disposition: form-data; name="form_text_27"
3333
------WebKitFormBoundarycJPV0A7DKeMQCCWB
Content-Disposition: form-data; name="form_text_28"
+7 (333) 333-33-33
------WebKitFormBoundarycJPV0A7DKeMQCCWB--

And with the correct one:
------WebKitFormBoundaryisu1U9fggXBZcN6I
Content-Disposition: form-data; name="bxajaxid"
711f70a1ad08316370a269ab274c9f77
------WebKitFormBoundaryisu1U9fggXBZcN6I
Content-Disposition: form-data; name="AJAX_CALL"
Y
------WebKitFormBoundaryisu1U9fggXBZcN6I
Content-Disposition: form-data; name="sessid"
3dd17e638457837c0cf56ed2553efdd0
------WebKitFormBoundaryisu1U9fggXBZcN6I
Content-Disposition: form-data; name="WEB_FORM_ID"
6
------WebKitFormBoundaryisu1U9fggXBZcN6I
Content-Disposition: form-data; name="sessid"
3dd17e638457837c0cf56ed2553efdd0
------WebKitFormBoundaryisu1U9fggXBZcN6I
Content-Disposition: form-data; name="form_text_27"
333
------WebKitFormBoundaryisu1U9fggXBZcN6I
Content-Disposition: form-data; name="form_text_28"
+7 (333) 333-33-33
------WebKitFormBoundaryisu1U9fggXBZcN6I
Content-Disposition: form-data; name="web_form_submit"
submit
------WebKitFormBoundaryisu1U9fggXBZcN6I--

Those. for some reason, "web_form_submit" is not always added to the request.
What could be the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Musin, 2018-04-24
@DSmith

web_form_submit is like a button, can it be removed via JS? Or maybe on enter sending does not hook the button?

D
DSmith, 2018-05-15
@DSmith

The problem turned out to be the following. There was a button in the form, which did not always cling in these browsers. After replacing it with input, the problem was solved.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question