A
A
Anton2017-08-25 16:44:17
PHP
Anton, 2017-08-25 16:44:17

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

1 answer(s)
A
Artyom Belousov, 2017-08-25
@flygrounder

A typical example of using JavaScript, in particular, AJAX technology

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question