Answer the question
In order to leave comments, you need to log in
In which component and how is the arResult['BACKURL'] value formed in Bitrix?
Greetings.
Need help with the following situation.
1. DESCRIPTION OF THE SITUATION. There is a store on Bitrix (I know this cms-ku badly). In the basket, when the page with the selected products opens, there is a link:
the task was set - to set up this link so that the transition is made back to the last page of the catalog (so that the client goes to where he came from the catalog)
I searched the internet for solutions, found this:<a class="back" href="/">Продолжить покупки</a>
<a class="back" href="<?=$arResult["BACK_URL"]?>">Продолжить покупки</a>
Answer the question
In order to leave comments, you need to log in
As far as I remember data is just an html response, not an object.
1. Does the response come in xml or json?
2. responseText and message - what is it? such an element in the response?
3. in general, can you see the answer, how does it come from the backend?
offhand, if the answer is something like this:
<xml>
<message>Отлично, теперь мы вас заспамим!</message>
</xml>
$.ajax({
url:'/signup/checkusername',
type:'POST',
dataType: 'xml',
data:{
email:email
},
success:function(data){ alert($(data).find("message").text()); }
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question