Answer the question
In order to leave comments, you need to log in
Bitrix, problem with socket initialization?
Bitrix log:
2020-Feb-27 17:21:23 Integration with external applications (MS Office, Outlook, Exchange) via a secure connection to the portal (check_socket_ssl): Warning
Connection to ssl://portal.mysite.ru:443 (certificate check enabled) Fail
Connection to ssl://portal.mysite.ru:443
Success The server has an invalid SSL certificate, there may be problems in integrating with external applications
The site itself opens correctly in the browser, the certificate with the entire chain sees:
ca-bundle added to etc/pki/ca-trust/source/anchors
Answer the question
In order to leave comments, you need to log in
If in a quick and not very neat way, then you can do this:
var selectCategory = function(gender){
$("#"+gender).click(function(event) {
$('section').removeClass('show');
$("."+gender).addClass('show');
});
}
var loadCategory = function(options){
$("."+options.gender+" #"+slug).click(function(event) {
$.ajax({
url: 'output.php',
data: { gender: gender, category: options.slug},
})
.done(function(data) {
$('section').removeClass('show');
$(".items-list").addClass('show');
$(".items-list .title").text(options.title);
$(".items-list .items").text(data);
})
.fail(function() {
console.log("error");
});
});
}
selectCategory('male');
selectCategory('female');
loadCategory({slug: 'footwear', gender: 'male', title: 'Male footwear'});
loadCategory({slug: 'sneakers', gender: 'male', title: 'Male sneakers'});
loadCategory({slug: 'clothes', gender: 'male', title: 'Male clothes'});
loadCategory({slug: 'footwear', gender: female', title: 'Male footwear'});
loadCategory({slug: 'sneakers', gender: 'female', title: 'Male sneakers'});
loadCategory({slug: 'clothes', gender: 'female', title: 'Male clothes'});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question