Questions tagged [javascript]

For questions related to JavaScript in Sitecore, including JS for Sitecore SPEAK applications (typically ReactJS), bugs or other issues with JS in Sitecore, hosting site JS in Sitecore, and beyond

13 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
50 views

Undefined Javascript Error on Media Upload

In Sitecore 8.2, we have an item template featuring an image field. The preferred workflow for creating an instance of this template is the use of the Browse trigger on the image field and the Upload ...
1
vote
0answers
98 views

Add Sitecore Form Fields with Javascript

Is it possible to add a sitecore form field to a form with javascript and if so, how should I approach it?
1
vote
0answers
50 views

Consume sitecore jss data from a separate sitecore instance

I have a Sitecore 9.1 MVC implementation where I want to consume the layout service response from a different Sitecore endpoint as an rendering. I have gone through the ways mentioned in Sitecore ...
1
vote
0answers
38 views

Commerce JavaScript Hooks

I am using XP 9.0.2, XC 9.0.3 andSXA 1.8.1, in commerce, are there javascript hooks I could use to display loading animations while activities such as product list loading are taking place? I was ...
1
vote
0answers
44 views

Doing translations for javascript based controls

I am using kendo-ui for rendering some complex controls on our website mainly used for data-entry. I want to have the content of these controls being translated by sitecore and also have the controls ...
1
vote
0answers
1k views

jQuery AJAX GET request returning “parsererror” error response message

In a scope of Sitecore Web project an API Contoller is used. Got the following response error message during jQuery AJAX GET API request: On a back-end side I use IHttpActionResult action method that ...
1
vote
0answers
832 views

Configuration error in JSS Sitecore Quick start for development

Configuration error while browsing Sitecore basic jss app after performing deployment steps mentioned in below link: https://jss.sitecore.net/#/setup/app-deployment?id=app-deployment
0
votes
0answers
26 views

Sitecore 9.3 - parts of CM stopped working, JavaScript errors in console

It seems that any place the Sitecore CM where a modal dialog would pop up has stopped working and I haven't been able to figure out why. I see the same behavior in both Chrome and FireFox. The error ...
0
votes
0answers
21 views

Sitecore 10.1.1 XP single TypeError: Cannot set properties of undefined (setting 'BindingTarget')

I get blank screen and console error when I try to add send email action in Sitecore 10.1.1. I'm using Sitecore XP Single. Steps to reproduce Open or Create a Sitecore form Add Submit action Send ...
0
votes
0answers
35 views

Disable submit button after first submission

I want to stop duplicate WFFM form submissions. I am writing a method to disable the button after first submission. $("form").each(function() { var wffm = $(this).attr("data-wffm&...
0
votes
0answers
25 views

Can I add a script that is dynamically changed in a Sitecore layout page?

My company is still using Sitecore v8.2 and for a while we are not upgrading it. Is there a way to add a script that has been created Front End side using Webpack and that has the following structure &...
0
votes
0answers
41 views

Is there an easy way to integrate Sitecore v8.2 with a modern JavaScript Framework?

As far as I know, Sitecore v8.2 is not using JSS. My company is still using this version of the CMS and for many reasons, there is a stuck in upgrading it. In any case, we would like to introduce a ...
-1
votes
2answers
1k views

jQuery not working properly with Experience Editor

I'm struggling to get jQuery to work properly in Experience Editor. I found this question and tried all the answers on that page, but none of those work for me. So basically I have a clean page in ...