Answer the question
In order to leave comments, you need to log in
Ajax contact form script not working?
There is a ready-made feedback form , I downloaded it from here , uploaded it for the test, everything works, I transfer it to Bitrix, it doesn’t work, as I understand it, because of the wrong paths. He is painfully cunning, this Bitrix. If anyone understands, please tell me. If my submission form is located in Bitrix at /local/templates/main/footer.php , then if you look at how the demo script works, you need to put the feedback folder with all the insides at /local/templates/main/feedback.... and in the feedback.js file, add the url path like this...
function myconf() {
var cf = $.Deferred();
$.ajax({
type: 'POST',
url: 'feedback/',
dataType: 'json',
data: 'act=cfg',
success: function(answer) {
cf.resolve(answer.configs);
}
});
return cf;
}
function myconf() {
var cf = $.Deferred();
$.ajax({
type: 'POST',
url: 'local/templates/main/feedback/feedback/',
dataType: 'json',
data: 'act=cfg',
success: function(answer) {
cf.resolve(answer.configs);
}
});
return cf;
}
Answer the question
In order to leave comments, you need to log in
you download not
from here, but from any of the 295 chewed answers on a topic that is of vital importance to you, and these answers are on the official Bitrix forum.
transferring to Bitrix does not work, as I understand it because of the wrong paths. He is painfully cunning, this Bitrix
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question