# Why this script reacts differently on mobile than on the web?

**URL:** <https://community.thunkable.com/t/why-this-script-reacts-differently-on-mobile-than-on-the-web/1066756>\
**Category:** Questions about Thunkable X\
**Created:** [January 24, 2021, 7:13pm UTC](https://community.thunkable.com/t/why-this-script-reacts-differently-on-mobile-than-on-the-web/1066756 "2021-01-24T19:13:58Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![kushweez](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kushweez/32/90265_2.png) [@kushweez](https://community.thunkable.com/u/kushweez)\
**Post date:** [January 24, 2021, 7:13pm UTC](https://community.thunkable.com/t/why-this-script-reacts-differently-on-mobile-than-on-the-web/1066756/1 "2021-01-24T19:13:58Z")

</div>

Hello I have a problem with this script that displays JSON data on a table in the webviewer.

JSON :

```
{"name":"Michael", "age":"30", "birthdate":"11/10/1989"}

```

 ![5c48ee12d03f5e8a0dd6c1ec169642b6](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/3/035d6f21a9d971ef47eb32f06680d52dd73623c2.jpeg)

I have upload the script if you want to test :  
[[mac2night.com/test.html](https://mac2night.com/test.html))  
Or direct download : [test.txt](https://community.thunkable.com/uploads/short-url/hHa5vO1x7pItyRoHNWDd1mcjdE6.txt) (1.1 KB)

expected response :  
In web view

 ![d3d116830f16ec8a70c878fa272fd203](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/a/ea56f690a5811e23ad706eba3d332c9dfe73a020.gif)

what I get on IOS and Android

 ![33b3c11fbab0b31742c548a0108506eb](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/4/44ee1ae3035836dc93741d5d93b26f5d2d25dbbf.gif)

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [January 25, 2021, 3:23am UTC](https://community.thunkable.com/t/why-this-script-reacts-differently-on-mobile-than-on-the-web/1066756/2 "2021-01-25T03:23:34Z")

</div>

See this post

> [@Issues handling JSON objects when received as message from webviewer](http://community.thunkable.com/t/issues-handling-json-objects-when-received-as-message-from-webviewer/1041776):
>
> Is anyone familiar with receiving objects from the webviewer? I have no issue working with a text only response. When I receive an object I am unable to work with it when using the on phone companion app but when using the live preview on the design screen there is no issue and all works as expected I have posted about this here. Tagging advanced users as it seems to be an advanced issue: @paulmw @domhnallohanlon @Steven @actech Hopefully someone can point out where I went wrong or can veri…

---

<div class="post-metadata">

**Author:** ![kushweez](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kushweez/32/90265_2.png) [@kushweez](https://community.thunkable.com/u/kushweez)\
**Post date:** [January 25, 2021, 6:06am UTC](https://community.thunkable.com/t/why-this-script-reacts-differently-on-mobile-than-on-the-web/1066756/3 "2021-01-25T06:06:45Z")

</div>

Hi @muneer Indeed we have the same problem but no solution to date.

---

<div class="post-metadata">

**Author:** ![luv.ak.tech](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/luv.ak.tech/32/104896_2.png) [@luv.ak.tech](https://community.thunkable.com/u/luv.ak.tech)\
**Post date:** [January 25, 2021, 8:52am UTC](https://community.thunkable.com/t/why-this-script-reacts-differently-on-mobile-than-on-the-web/1066756/4 "2021-01-25T08:52:09Z")

</div>

seems you are using emulator

---

<div class="post-metadata">

**Author:** ![kushweez](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kushweez/32/90265_2.png) [@kushweez](https://community.thunkable.com/u/kushweez)\
**Post date:** [January 25, 2021, 9:19am UTC](https://community.thunkable.com/t/why-this-script-reacts-differently-on-mobile-than-on-the-web/1066756/5 "2021-01-25T09:19:30Z")

</div>

Not at all with simulator or not it doesn’t change anything I use scrcpy to reflect my screen

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [January 25, 2021, 4:18pm UTC](https://community.thunkable.com/t/why-this-script-reacts-differently-on-mobile-than-on-the-web/1066756/6 "2021-01-25T16:18:57Z")

</div>

> [@kushweez](#):
>
> I have upload the script if you want to test :  
> [https://testekushez.000webhostapp.com/test.html](https://testekushez.000webhostapp.com/test.html)

@kushweez - just looking at that link, you’re sending us to a web page. I don’t see anything in the console…isn’t the “script” supposed to return some JSON?

---

<div class="post-metadata">

**Author:** ![kushweez](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kushweez/32/90265_2.png) [@kushweez](https://community.thunkable.com/u/kushweez)\
**Post date:** [January 25, 2021, 5:11pm UTC](https://community.thunkable.com/t/why-this-script-reacts-differently-on-mobile-than-on-the-web/1066756/7 "2021-01-25T17:11:17Z")

</div>

Sorry the site was still working a while ago it seems to have a problem with the host. You will find the script in the txt file it’s exactly the same sorry for this problem.

New hosting : [https://mac2night.com/test.html](https://mac2night.com/test.html)

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [January 29, 2021, 11:50pm UTC](https://community.thunkable.com/t/why-this-script-reacts-differently-on-mobile-than-on-the-web/1066756/8 "2021-01-29T23:50:47Z")

</div>

Sure, but it’s the same issue @kushweez - this page doesn’t return any JSON

---

<div class="post-metadata">

**Author:** ![kushweez](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kushweez/32/90265_2.png) [@kushweez](https://community.thunkable.com/u/kushweez)\
**Post date:** [January 30, 2021, 7:32pm UTC](https://community.thunkable.com/t/why-this-script-reacts-differently-on-mobile-than-on-the-web/1066756/9 "2021-01-30T19:32:12Z")

</div>

This page returns JSON in table form only on the web responsive view not on mobile.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:30pm UTC](https://community.thunkable.com/t/why-this-script-reacts-differently-on-mobile-than-on-the-web/1066756/10 "2024-11-08T13:30:36Z")

</div>


