# Javascript

**URL:** https://forum.pinegrow.com/c/javascript/14.md

[Latest](https://forum.pinegrow.com/latest.md) · [Categories](https://forum.pinegrow.com/categories.md) · [Tags](https://forum.pinegrow.com/tags.md)

---

## [Is there a way to get data using REST API?](https://forum.pinegrow.com/t/is-there-a-way-to-get-data-using-rest-api/10763)

<div class="topic-metadata">

**Author:** [@will45](https://forum.pinegrow.com/u/will45)\
**Replies:** 1\
**Last updated:** [May 23, 2025, 7:43am UTC](https://forum.pinegrow.com/t/is-there-a-way-to-get-data-using-rest-api/10763 "2025-05-23T07:43:20Z")

</div>

Is there a way to get data using REST API ? to display in the site

---

## [Issues with Token Retrieval in JavaScript SDK Authentication](https://forum.pinegrow.com/t/issues-with-token-retrieval-in-javascript-sdk-authentication/8960)

<div class="topic-metadata">

**Author:** [@Zahra](https://forum.pinegrow.com/u/Zahra)\
**Replies:** 1\
**Last updated:** [June 24, 2024, 5:21am UTC](https://forum.pinegrow.com/t/issues-with-token-retrieval-in-javascript-sdk-authentication/8960 "2024-06-24T05:21:07Z")

</div>

Hello, I’m facing an issue with the Authentication in my web app. After a user signs in, the token is sometimes not retrieved correctly from localStorage, leading to unauthorized access errors. Here’s the problematic …

---

## [How to call external javascript?](https://forum.pinegrow.com/t/how-to-call-external-javascript/7900)

<div class="topic-metadata">

**Author:** [@dculp](https://forum.pinegrow.com/u/dculp)\
**Replies:** 0\
**Last updated:** [April 5, 2023, 4:27pm UTC](https://forum.pinegrow.com/t/how-to-call-external-javascript/7900 "2023-04-05T16:27:10Z")

</div>

Davide P. Cervone’s html with internal javascript (https://groups.google.com/g/mathjax-users/c/jUtewUcE2bY/m/0-sg2F2aCAAJ) allows renumbering of mathjax equations. The output gives (with my comments on the left) – How…

---

## [Integrate React with Pinegrow](https://forum.pinegrow.com/t/integrate-react-with-pinegrow/7493)

<div class="topic-metadata">

**Author:** [@tytusie](https://forum.pinegrow.com/u/tytusie)\
**Replies:** 1\
**Last updated:** [December 23, 2022, 12:30am UTC](https://forum.pinegrow.com/t/integrate-react-with-pinegrow/7493 "2022-12-23T00:30:52Z")

</div>

Hi everyone, I’m preparing to take a course on Scrimba’s Javascript and I want to delve into React and eventually get familiar with Next js. Now, given my previous experimentation with 11ty, (where I actually had a good …

---

## [Javascript ES6 Modules](https://forum.pinegrow.com/t/javascript-es6-modules/7229)

<div class="topic-metadata">

**Author:** [@Wolfgang.Hartl](https://forum.pinegrow.com/u/Wolfgang.Hartl)\
**Replies:** 5\
**Last updated:** [December 13, 2022, 3:22pm UTC](https://forum.pinegrow.com/t/javascript-es6-modules/7229 "2022-12-13T15:22:13Z")

</div>

I’m wondering how others build/bundle/create their javascript files in a Wordpress Theme. Are you using seperate Files, are you writing everything in one big file? I was just thinking about using ES6 Modules and then bun…

---

## [Can you guys suggest me some best JavaScript Chart libraries?](https://forum.pinegrow.com/t/can-you-guys-suggest-me-some-best-javascript-chart-libraries/6680)

<div class="topic-metadata">

**Author:** [@Trishahere](https://forum.pinegrow.com/u/Trishahere)\
**Replies:** 2\
**Last updated:** [July 12, 2022, 9:28pm UTC](https://forum.pinegrow.com/t/can-you-guys-suggest-me-some-best-javascript-chart-libraries/6680 "2022-07-12T21:28:54Z")

</div>

Hello there, I have request from my client to create interactive charts and graphs in the web app. As they want best data visualization in their app. I know there have been many blogs out there about JavaScript chart l…

---

## [Javascript Learning Resources](https://forum.pinegrow.com/t/javascript-learning-resources/3158)

<div class="topic-metadata">

**Author:** [@miles](https://forum.pinegrow.com/u/miles)\
**Replies:** 14\
**Last updated:** [December 26, 2019, 10:40pm UTC](https://forum.pinegrow.com/t/javascript-learning-resources/3158 "2019-12-26T22:40:59Z")

</div>

Howdy All, I just posted a similar request for help in the CSS sub-forum asking for help in rounding up decent learning resources for CSS and so I am here to post this request for decent learning resources for javascrip…

---

## [Popup trigger onload window](https://forum.pinegrow.com/t/popup-trigger-onload-window/6157)

<div class="topic-metadata">

**Author:** [@Mickael](https://forum.pinegrow.com/u/Mickael)\
**Replies:** 3\
**Last updated:** [January 19, 2022, 2:06pm UTC](https://forum.pinegrow.com/t/popup-trigger-onload-window/6157 "2022-01-19T14:06:50Z")

</div>

Bonjour. I need to trigger a popup when the mouse leaves the window. I was inspired by the pinegrow doc I think it comes from the jquery script that I don’t understand all :wink: \<script data-toggle="modal" data-targe…

---

## [Variable Declaration in Javascript and Java](https://forum.pinegrow.com/t/variable-declaration-in-javascript-and-java/5724)

<div class="topic-metadata">

**Author:** [@ankitdixit](https://forum.pinegrow.com/u/ankitdixit)\
**Replies:** 5\
**Last updated:** [October 14, 2021, 9:33am UTC](https://forum.pinegrow.com/t/variable-declaration-in-javascript-and-java/5724 "2021-10-14T09:33:27Z")

</div>

Hello All, I want to know which one is better for Variable Declaration point of view between java and javascript? According to some sources, Java supports static typing which requires variable and type declaration before…

---

## [Using NEGATIVE\_INFINITY in JavaScript](https://forum.pinegrow.com/t/using-negative-infinity-in-javascript/5142)

<div class="topic-metadata">

**Author:** [@ankitdixit](https://forum.pinegrow.com/u/ankitdixit)\
**Replies:** 2\
**Last updated:** [September 20, 2021, 9:12am UTC](https://forum.pinegrow.com/t/using-negative-infinity-in-javascript/5142 "2021-09-20T09:12:58Z")

</div>

Hello Everyone, I am new here and I want to know about NEGATIVE\_INFINITY in JavaScript. I am learning javascript and I have one doubt NEGATIVE\_INFINITY is a static property in JS that results? Can anyone know about it? I…

---

## [Installing Node.js on macOS](https://forum.pinegrow.com/t/installing-node-js-on-macos/3163)

<div class="topic-metadata">

**Author:** [@miles](https://forum.pinegrow.com/u/miles)\
**Replies:** 5\
**Last updated:** [September 12, 2021, 8:19pm UTC](https://forum.pinegrow.com/t/installing-node-js-on-macos/3163 "2021-09-12T20:19:25Z")

</div>

Howdy there, What would be the prescribed method of installing Node.js on a Mac? Brew? nvm? If you install with nvm is it best to set that up under git? I’m completely wet behind the ears on this and am looking for …

---

## [Javascript menu](https://forum.pinegrow.com/t/javascript-menu/5041)

<div class="topic-metadata">

**Author:** [@stevegun1975](https://forum.pinegrow.com/u/stevegun1975)\
**Replies:** 2\
**Last updated:** [February 28, 2021, 11:10am UTC](https://forum.pinegrow.com/t/javascript-menu/5041 "2021-02-28T11:10:16Z")

</div>

I have created a small javascript file and linked into the sheet, the javascript triggers a class change in nav menu together with css changes the menu size and colour when you scroll from the top of the page. It works …

---

## [Have Pinegrow interaction run only on first visit](https://forum.pinegrow.com/t/have-pinegrow-interaction-run-only-on-first-visit/4713)

<div class="topic-metadata">

**Author:** [@snowfeald](https://forum.pinegrow.com/u/snowfeald)\
**Replies:** 9\
**Last updated:** [December 8, 2020, 10:22am UTC](https://forum.pinegrow.com/t/have-pinegrow-interaction-run-only-on-first-visit/4713 "2020-12-08T10:22:08Z")

</div>

As the title suggests, I’m looking to use some kind of caching so that the javascript wont run after the first visit. I have an animation that runs on the landing page that obscures all other content for two seconds~. I…

---

## [Debugging javascript code within Pinegrow](https://forum.pinegrow.com/t/debugging-javascript-code-within-pinegrow/3970)

<div class="topic-metadata">

**Author:** [@dTimony](https://forum.pinegrow.com/u/dTimony)\
**Replies:** 5\
**Last updated:** [April 18, 2020, 1:14pm UTC](https://forum.pinegrow.com/t/debugging-javascript-code-within-pinegrow/3970 "2020-04-18T13:14:13Z")

</div>

Has anyone figured out how to debug calls to external JavaScript code within Pinegrow? I have external .js files that are called from html and I need to set breakpoints, debug etc… I really don’t want to go back to usin…

---

## [Javascript Smooth scroll](https://forum.pinegrow.com/t/javascript-smooth-scroll/3928)

<div class="topic-metadata">

**Author:** [@kasapvictor](https://forum.pinegrow.com/u/kasapvictor)\
**Replies:** 11\
**Last updated:** [April 11, 2020, 5:42pm UTC](https://forum.pinegrow.com/t/javascript-smooth-scroll/3928 "2020-04-11T17:42:38Z")

</div>

Hello. Can somebody help? I added smoothscroll interaction for all html, the mouse scroll became smooth, how can I add a smooth scroll from an anchor link to an element? \*it’s plane project without any components, jus…

---

## [Show live "added class" on an element while scrolling](https://forum.pinegrow.com/t/show-live-added-class-on-an-element-while-scrolling/3909)

<div class="topic-metadata">

**Author:** [@lessram](https://forum.pinegrow.com/u/lessram)\
**Replies:** 4\
**Last updated:** [March 31, 2020, 3:40pm UTC](https://forum.pinegrow.com/t/show-live-added-class-on-an-element-while-scrolling/3909 "2020-03-31T15:40:15Z")

</div>

Hi together, I got a simple Question. While I’m scrolling my Page, I see on Chrome-DevTool the new class that will added to an Element. For my case … Where I could see this in Pinegrow? The Tree and the Code-Edito…

---

## [Convert Html to Javascript DOM for coding](https://forum.pinegrow.com/t/convert-html-to-javascript-dom-for-coding/3861)

<div class="topic-metadata">

**Author:** [@TomGo](https://forum.pinegrow.com/u/TomGo)\
**Replies:** 1\
**Last updated:** [March 15, 2020, 10:07am UTC](https://forum.pinegrow.com/t/convert-html-to-javascript-dom-for-coding/3861 "2020-03-15T10:07:43Z")

</div>

Hi There Is there any function in Pinegrow or exists any plugin to convert any html page to a javascript, which creates the DOM for it ? As I use node.js, where the front end is generally created by Javascript, it woul…

---

## [Google Analytics](https://forum.pinegrow.com/t/google-analytics/1350)

<div class="topic-metadata">

**Author:** [@trahald](https://forum.pinegrow.com/u/trahald)\
**Replies:** 9\
**Last updated:** [December 6, 2019, 12:30pm UTC](https://forum.pinegrow.com/t/google-analytics/1350 "2019-12-06T12:30:59Z")

</div>

Hello! I’m doing a Wordpress theme and I want to incorporate the following script in the head: \<! - Global site tag (gtag.js) - Google Analytics -\> \<script async src = "https://www.googletagmanager.com/gtag/js?id=UA-XX…

---

## [Renaming or Moving JS](https://forum.pinegrow.com/t/renaming-or-moving-js/3161)

<div class="topic-metadata">

**Author:** [@ansma](https://forum.pinegrow.com/u/ansma)\
**Replies:** 1\
**Last updated:** [July 13, 2019, 4:33pm UTC](https://forum.pinegrow.com/t/renaming-or-moving-js/3161 "2019-07-13T16:33:42Z")

</div>

I recently created a simple website I was able to download from “Webflow” as an existing customer. Now that I have my base website up, I’m going to be using PineGrow to change some of the look and feel of the site. There…

---

## [JQuery library versions](https://forum.pinegrow.com/t/jquery-library-versions/512)

<div class="topic-metadata">

**Author:** [@CIPHER2K](https://forum.pinegrow.com/u/CIPHER2K)\
**Replies:** 7\
**Last updated:** [December 24, 2016, 11:00am UTC](https://forum.pinegrow.com/t/jquery-library-versions/512 "2016-12-24T11:00:10Z")

</div>

The library included in Pinegrow is 1.11. Is it possible for me to include the latest v. 3.11 without them both colliding. Even better perhaps just go with the latest one instead? If not, please explain why. Thank yo…

---

## [Sitelock - can't open pages](https://forum.pinegrow.com/t/sitelock-cant-open-pages/2437)

<div class="topic-metadata">

**Author:** [@andrew](https://forum.pinegrow.com/u/andrew)\
**Replies:** 0\
**Last updated:** [November 23, 2018, 6:35pm UTC](https://forum.pinegrow.com/t/sitelock-cant-open-pages/2437 "2018-11-23T18:35:46Z")

</div>

I’m trying to open a client’s page but having a Sitelock screen pop up when trying to open, for example, the “About Us” page. I cannot get to the About Us page, because I’m being blocked as if in a browser. I’ve tried d…

---

## [Randomized animation solution](https://forum.pinegrow.com/t/randomized-animation-solution/1527)

<div class="topic-metadata">

**Author:** [@ladlon](https://forum.pinegrow.com/u/ladlon)\
**Replies:** 8\
**Last updated:** [January 21, 2018, 3:49am UTC](https://forum.pinegrow.com/t/randomized-animation-solution/1527 "2018-01-21T03:49:59Z")

</div>

Hi. Hopefully this is in the appropriate section… In my current website (which I want to redo, making it mobile friendly and not requiring Flash), I had a Flash animation header which consisted of a background, and an …
