Answer the question
In order to leave comments, you need to log in
How to execute the code not when the page is refreshed, but when the link is clicked?
there is an api code that updates the data, fires when the page is refreshed, how to execute it without refreshing the page, but when a button or text is pressed?
<?
$ELEMENT_ID = 156843; // код элемента
$PROPERTY_CODE = "Q13"; // код свойства
$PROPERTY_VALUE = "2604"; // значение свойства
// Установим новое значение для данного свойства данного элемента
CIBlockElement::SetPropertyValuesEx($ELEMENT_ID, false, array($PROPERTY_CODE => $PROPERTY_VALUE));
?>
Answer the question
In order to leave comments, you need to log in
A typical example of using JavaScript, in particular, AJAX technology
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question