问题标签 [bitrix]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
402 浏览

.net - What is "WEBSERVICE_MODULE" at 1C Bitrix

Good day!

I try to connect .Net client app and 1C Bitrix (CMS) via SOAP.

So, when i create web-service on CMS , it depends WEBSERVICE_MODULE.

What it can be? On docs:Specifies the module that will be connected by a call service.

Example:

0 投票
1 回答
337 浏览

content-management-system - deleting directory in Bitrix CMS

How to delete directory from site structure in bitrix?

enter image description here

I found how to delete one file, but what about directory?

0 投票
1 回答
101 浏览

forms - 如何获取默认选定选项的文本值

我尝试使用此代码,但似乎没有使用。

任何帮助将非常感激。

0 投票
1 回答
993 浏览

forms-authentication - 如何将默认用户数据获取到 bitrix 表单

我正在一个 bitrix 网站上工作。创建了一个链接到排序为 100 的信息块的表单。

我想使用当前日志用户的默认用户数据,例如姓名、姓氏、电子邮件等。我该如何处理?

任何帮助将不胜感激。

0 投票
1 回答
1069 浏览

phpstorm - 对象属性的 phpDoc

我有文件 template.php,它包含在CBitrixComponentTemplate's 方法中。 CBitrixComponentTemplate具有属性$this->__component,即用对象动态填充EtmOrderAddEtmOrderAdd有财产objValidator

现在,当我编写文件时template.php,我需要所有这些属性都能被phpDoc. 这是图片,说明了我的想法:

在此处输入图像描述

我应该怎么写?

0 投票
1 回答
582 浏览

ajax - "AJAX_MODE" => "Y" 参数究竟是做什么的?

http://dev.1c-bitrix.ru/user_help/service/form/components_2/form.php"AJAX_MODE"=>"Y"上的 Bitrix 文档和有关 Bitrix 中 AJAX 的各种文章中,对组件配置中的确切作用的解释非常差。谁能解释设置为 时它会发生什么变化"Y"

0 投票
2 回答
353 浏览

php - parse error, Expected T_STRING instead of ""

I got

Parse error: syntax error, unexpected "", expected T_STRING in ../services/sect_inc_prev.php on line 2

what is expected as string and where to find the place where "" is? I need to know where the problem "empty space". I'm not php programmer at all

I deleted the 2nd line and I have no error now, but I don't know for what it was needed. The error was on friend's page that hosted on Bitrix system

0 投票
1 回答
108 浏览

javascript - 弹出购物车工作不正确

我尝试制作弹出式购物车,它显示不正确,首先是显示弹出式,然后更新购物车我错过了什么?

我试过这个

这是一个html

这是购物车更新代码:

0 投票
1 回答
537 浏览

javascript - 如何使用 map.getCenter() 和 google.maps.event.trigger()

我正在使用 Gmap 模块。如果您尝试在隐藏的 div 上初始化地图,那么它将无法显示。

我们可以google.maps.event.trigger(map, 'resize');在脚本中使用,因为我的地图总是在左上角。

我找到了解决方案map.getCenter(); map.setCenter();但是当我在我的标签自定义代码中的 js 文件中使用它时,它不起作用,因为没有定义“地图”。

有解决方案吗?

这是我的代码:

0 投票
2 回答
135 浏览

html - :not() 中的 :first-child 和 #id 选择器的组合不起作用

我在使用 :not() CSS 选择器时遇到问题。我已经检查了stackoverflow,但没有任何效果。问题是当我将 :first-child 选择器与 id 选择器结合使用时。我正在使用 Bitrix CRM,所以我需要覆盖它的一些 css,为此我使用“!important”(硬核)。这是一个代码:

HTML 部分

http://jsfiddle.net/d990f0a1/

所以,主要问题是.crm-offer-info-table tr:not(:first-child, #section_contact_info_contents>tr){}它不起作用,我需要以某种方式将这两个选择器组合在 :not() 中,所有这些也必须在 css 中完成。