# Reload function doesn't work on button (solved)

**URL:** <https://community.thunkable.com/t/reload-function-doesnt-work-on-button-solved/2080683>\
**Category:** Questions about Thunkable X\
**Tags:** webviewer, solved, beginner, help\
**Created:** [October 13, 2022, 1:41am UTC](https://community.thunkable.com/t/reload-function-doesnt-work-on-button-solved/2080683 "2022-10-13T01:41:16Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![afnanfozailcw81](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/afnanfozailcw81/32/147438_2.png) [@afnanfozailcw81](https://community.thunkable.com/u/afnanfozailcw81)\
**Post date:** [October 13, 2022, 1:41am UTC](https://community.thunkable.com/t/reload-function-doesnt-work-on-button-solved/2080683/1 "2022-10-13T01:41:16Z")

</div>

Hello! I’m continuing my web browser, for an assignment, and this is how it looks like:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/9/29503afefebbb64827120e555753dac504bcdbb0.png)  
But when the web viewer reloads, it gets stuck on the screen:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/3/e3d74cfa4ac042b2fddea5a19c4f0cfcf4041da1.png)  
on phones:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/b/6b5387e89280f159bb1c60aa523f3ca2a84f19a8.png)

And there’s no way to get past it except for clicking 🏠 which is the home button. It goes to a website that you originlly entered, in case you clicked on an unwanted link. But it uses the reload function, and still works: only significantly altered to display homepage. And it works.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/6/5621690082632f85ab7751f731e149003a43c62e.jpeg)

Any problem? Here’s the link:  
[https://x.thunkable.com/copy/7e4cd11d93f132f028ae386334633621](https://x.thunkable.com/copy/7e4cd11d93f132f028ae386334633621)  
Looking forward to replies.

---

<div class="post-metadata">

**Author:** ![afnanfozailcw81](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/afnanfozailcw81/32/147438_2.png) [@afnanfozailcw81](https://community.thunkable.com/u/afnanfozailcw81)\
**Post date:** [October 14, 2022, 11:42pm UTC](https://community.thunkable.com/t/reload-function-doesnt-work-on-button-solved/2080683/2 "2022-10-14T23:42:00Z")

</div>

hello?

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [October 15, 2022, 12:29am UTC](https://community.thunkable.com/t/reload-function-doesnt-work-on-button-solved/2080683/3 "2022-10-15T00:29:12Z")

</div>

Your reload blocks change the webviewer’s url to a .png file. So that’s not going to reload the webviewer in any way. It’s just going to display the hourglass image.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/a/fa37632b2bda4d1b5bf596bffcf2606ab306efce.png)

Just because you call the function “reload” doesn’t mean it actually does that. Why don’t you just set the webviewer’s url back to an empty string (“”) instead since I’m pretty sure that’s how it starts out.

More importantly, you’re hiding and showing a bunch of components when a web page is accessed so you’ll need to do that part of the “reloading” manually by reversing those actions.

---

<div class="post-metadata">

**Author:** ![afnanfozailcw81](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/afnanfozailcw81/32/147438_2.png) [@afnanfozailcw81](https://community.thunkable.com/u/afnanfozailcw81)\
**Post date:** [October 15, 2022, 12:42am UTC](https://community.thunkable.com/t/reload-function-doesnt-work-on-button-solved/2080683/4 "2022-10-15T00:42:37Z")

</div>

When you go to an empty text block page, it doesn’t reload. It functions as if nothing happened. That’s for a mobile. I’m using an Android in this case.  
On a PC, it’ll reload properly: only thing: just displays the home page.  
**Also:** Before, back when it was an hourglass image, before changing it to nothing. Here’s the issue. _but the one issue with the “reload” function and it causes problems on both devices: PC and mobile. The PC does reload, but then it goes back to the home page. While on the phone, the web viewer displays an image: not the image compontent. It doesn’t resume your session: it’s there forever (unless you click the home icon). The session was coded so that there is a variable that is the url, but excludes the reloading page (loading screen). On the mobile, it includes it, and there’s no way to go back._

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [October 15, 2022, 2:13am UTC](https://community.thunkable.com/t/reload-function-doesnt-work-on-button-solved/2080683/5 "2022-10-15T02:13:40Z")

</div>

What is it you want the ButtonRefresh “Rload” button to do?

Because you’ve coded it to just display an image.

---

<div class="post-metadata">

**Author:** ![afnanfozailcw81](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/afnanfozailcw81/32/147438_2.png) [@afnanfozailcw81](https://community.thunkable.com/u/afnanfozailcw81)\
**Post date:** [October 15, 2022, 4:07pm UTC](https://community.thunkable.com/t/reload-function-doesnt-work-on-button-solved/2080683/6 "2022-10-15T16:07:06Z")

</div>

To reload the page in the webviewer

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [October 15, 2022, 4:10pm UTC](https://community.thunkable.com/t/reload-function-doesnt-work-on-button-solved/2080683/7 "2022-10-15T16:10:50Z")

</div>

To do that I would try setting the Web\_Viewer1’s URL to the Web\_Viewer1’s URL (both green blocks). I’m not positive that will reload the website but that’s my guess. Setting the URL to a png file as you’ve done is definitely not going to reload the site.

---

<div class="post-metadata">

**Author:** ![afnanfozailcw81](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/afnanfozailcw81/32/147438_2.png) [@afnanfozailcw81](https://community.thunkable.com/u/afnanfozailcw81)\
**Post date:** [October 15, 2022, 4:12pm UTC](https://community.thunkable.com/t/reload-function-doesnt-work-on-button-solved/2080683/8 "2022-10-15T16:12:07Z")

</div>

Seems like a good idea. Please wait.

---

<div class="post-metadata">

**Author:** ![afnanfozailcw81](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/afnanfozailcw81/32/147438_2.png) [@afnanfozailcw81](https://community.thunkable.com/u/afnanfozailcw81)\
**Post date:** [October 15, 2022, 4:14pm UTC](https://community.thunkable.com/t/reload-function-doesnt-work-on-button-solved/2080683/9 "2022-10-15T16:14:40Z")

</div>

It does nothing.

---

<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:** [October 15, 2022, 6:07pm UTC](https://community.thunkable.com/t/reload-function-doesnt-work-on-button-solved/2080683/10 "2022-10-15T18:07:16Z")

</div>

The web viewer reloads automatically whenever the URL is changed.

---

<div class="post-metadata">

**Author:** ![krish05](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/krish05/32/200523_2.png) [@krish05](https://community.thunkable.com/u/krish05)\
**Post date:** [October 16, 2022, 7:38pm UTC](https://community.thunkable.com/t/reload-function-doesnt-work-on-button-solved/2080683/11 "2022-10-16T19:38:52Z")

</div>

Try setting URL to about:blank, wait one second, then set URL back to original. If it doesn’t work, Google it up.

---

<div class="post-metadata">

**Author:** ![afnanfozailcw81](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/afnanfozailcw81/32/147438_2.png) [@afnanfozailcw81](https://community.thunkable.com/u/afnanfozailcw81)\
**Post date:** [October 16, 2022, 11:09pm UTC](https://community.thunkable.com/t/reload-function-doesnt-work-on-button-solved/2080683/12 "2022-10-16T23:09:44Z")

</div>

I know

---

<div class="post-metadata">

**Author:** ![afnanfozailcw81](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/afnanfozailcw81/32/147438_2.png) [@afnanfozailcw81](https://community.thunkable.com/u/afnanfozailcw81)\
**Post date:** [October 16, 2022, 11:14pm UTC](https://community.thunkable.com/t/reload-function-doesnt-work-on-button-solved/2080683/13 "2022-10-16T23:14:27Z")

</div>

I did. And it doesn’t do anything on the Thunkable app on mobile.  
On desktop, it just goes to the home page. So if you clicked on a link, it would go to the URL you entered previously in the text input.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [October 16, 2022, 11:30pm UTC](https://community.thunkable.com/t/reload-function-doesnt-work-on-button-solved/2080683/14 "2022-10-16T23:30:51Z")

</div>

Can you share a new link to your project?

---

<div class="post-metadata">

**Author:** ![afnanfozailcw81](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/afnanfozailcw81/32/147438_2.png) [@afnanfozailcw81](https://community.thunkable.com/u/afnanfozailcw81)\
**Post date:** [October 16, 2022, 11:31pm UTC](https://community.thunkable.com/t/reload-function-doesnt-work-on-button-solved/2080683/15 "2022-10-16T23:31:39Z")

</div>

[https://x.thunkable.com/copy/6b2209a3cc4a2c418b8cbbadd2ce5dd9](https://x.thunkable.com/copy/6b2209a3cc4a2c418b8cbbadd2ce5dd9)

---

<div class="post-metadata">

**Author:** ![afnanfozailcw81](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/afnanfozailcw81/32/147438_2.png) [@afnanfozailcw81](https://community.thunkable.com/u/afnanfozailcw81)\
**Post date:** [October 17, 2022, 12:31am UTC](https://community.thunkable.com/t/reload-function-doesnt-work-on-button-solved/2080683/16 "2022-10-17T00:31:24Z")

</div>

Nevermind it works. I tested it on an android.

---

<div class="post-metadata">

**Author:** ![afnanfozailcw81](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/afnanfozailcw81/32/147438_2.png) [@afnanfozailcw81](https://community.thunkable.com/u/afnanfozailcw81)\
**Post date:** [October 17, 2022, 12:32am UTC](https://community.thunkable.com/t/reload-function-doesnt-work-on-button-solved/2080683/17 "2022-10-17T00:32:04Z")

</div>

@krish0 please look at the latest reply I sent to @tatiang

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [October 17, 2022, 12:44am UTC](https://community.thunkable.com/t/reload-function-doesnt-work-on-button-solved/2080683/18 "2022-10-17T00:44:57Z")

</div>

The problem as far as I can tell on iOS is that you are reloading the page as http:// when it seems to need https:// (for most sites).

**Edit:** The [documentation for the Webviewer](https://docs.thunkable.com/v/snap-to-place/web-viewer#set-url) states that you must use https://.

So for example, if I type in “[cnet.com](http://cnet.com)” and tap Go, it takes me to the CNET website. If I tap on an article there and then tap on Rload, it doesn’t do anything. But with these blocks, it does… it reloads the original URL I typed in:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/f/efa483d8397b489054916aa61fe378de39fe14da.png)

---

<div class="post-metadata">

**Author:** ![afnanfozailcw81](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/afnanfozailcw81/32/147438_2.png) [@afnanfozailcw81](https://community.thunkable.com/u/afnanfozailcw81)\
**Post date:** [December 3, 2022, 1:14am UTC](https://community.thunkable.com/t/reload-function-doesnt-work-on-button-solved/2080683/19 "2022-12-03T01:14:50Z")

</div>

Okay, I MIGHT try devoloping a variant of an app that’s for HTTPS only. Soon I’ll merge these apps together to be hybrid.  
This may be in the far future though, idk.  
Eh, just close the topic.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [March 3, 2023, 1:15am UTC](https://community.thunkable.com/t/reload-function-doesnt-work-on-button-solved/2080683/20 "2023-03-03T01:15:05Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
