# Javascript code not working in glide

**URL:** <https://community.glideapps.com/t/javascript-code-not-working-in-glide/35726>\
**Category:** Ask for Help\
**Created:** [December 9, 2021, 1:18pm UTC](https://community.glideapps.com/t/javascript-code-not-working-in-glide/35726 "2021-12-09T13:18:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![wajeeha](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/wajeeha/32/33235_2.png) [@wajeeha](https://community.glideapps.com/u/wajeeha)\
**Post date:** [December 9, 2021, 1:18pm UTC](https://community.glideapps.com/t/javascript-code-not-working-in-glide/35726/1 "2021-12-09T13:18:28Z")

</div>

Hello, I am trying to embedd some Javascript code in Glide but it’s not working. It was working before.

Thank you in advance.

 ![Screenshot 2021-12-09 141725](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/6/f645f5161bce68bcd59bf697c14c2a1454f7f38f.jpeg)

---

<div class="post-metadata">

**Author:** ![ShantanuIyengar](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/shantanuiyengar/32/35546_2.png) [@ShantanuIyengar](https://community.glideapps.com/u/ShantanuIyengar)\
**Post date:** [December 9, 2021, 1:31pm UTC](https://community.glideapps.com/t/javascript-code-not-working-in-glide/35726/2 "2021-12-09T13:31:17Z")

</div>

I don’t think the elements from on-screen are available inside glide editor or use for columns!

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [December 9, 2021, 1:54pm UTC](https://community.glideapps.com/t/javascript-code-not-working-in-glide/35726/3 "2021-12-09T13:54:41Z")

</div>

Can you tell us what exactly are you trying to do with this code?

---

<div class="post-metadata">

**Author:** ![ShantanuIyengar](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/shantanuiyengar/32/35546_2.png) [@ShantanuIyengar](https://community.glideapps.com/u/ShantanuIyengar)\
**Post date:** [December 9, 2021, 5:38pm UTC](https://community.glideapps.com/t/javascript-code-not-working-in-glide/35726/4 "2021-12-09T17:38:47Z")

</div>

Tracking battery percentage!

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [December 9, 2021, 11:36pm UTC](https://community.glideapps.com/t/javascript-code-not-working-in-glide/35726/5 "2021-12-09T23:36:58Z")

</div>

She mentioned it worked before, so I assume Glide used to be able to access the battery stat of the device?

---

<div class="post-metadata">

**Author:** ![Mozza](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mozza/32/34362_2.png) [@Mozza](https://community.glideapps.com/u/Mozza)\
**Post date:** [December 9, 2021, 11:59pm UTC](https://community.glideapps.com/t/javascript-code-not-working-in-glide/35726/6 "2021-12-09T23:59:41Z")

</div>

Hi @wajeeha  
Interesting article here:

> **[Battery Status API - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/Battery_Status_API)**
>
> The Battery Status API, more often referred to as the Battery API, provides information about the system's battery charge level and lets you be notified by events that are sent when the battery level or charging status change. This can be used to...

Seems like it is not supported anymore.
