# 47609 - Web App - Event Handler to Set Feedback Control Properties Before Round Trip

**URL:** <https://forum.xojo.com/t/47609-web-app-event-handler-to-set-feedback-control-properties-before-round-trip/36994>\
**Category:** Web\
**Created:** [April 2, 2017, 6:01pm UTC](https://forum.xojo.com/t/47609-web-app-event-handler-to-set-feedback-control-properties-before-round-trip/36994 "2017-04-02T18:01:54Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hal\_Gumbert](https://forum.xojo.com/user_avatar/forum.xojo.com/hal_gumbert/32/160_2.png) [@Hal\_Gumbert](https://forum.xojo.com/u/Hal_Gumbert)\
**Post date:** [April 2, 2017, 6:01pm UTC](https://forum.xojo.com/t/47609-web-app-event-handler-to-set-feedback-control-properties-before-round-trip/36994/1 "2017-04-02T18:01:54Z")

</div>

Just created a Feature Request \<[https://xojo.com/issue/47609](https://xojo.com/issue/47609)\> to replace the Feature Request discussed here: [https://forum.xojo.com/39456-47404-web-app-add-running-javascript-before-event-handler-or-me](https://forum.xojo.com/39456-47404-web-app-add-running-javascript-before-event-handler-or-me)

The concept is very similar, but the developer would not need to write javascript code.

Feature Request details:

[quote]This article about Single Page Apps discusses how user feedback is incredibly important:  
[https://spin.atomicobject.com/2017/03/16/reflecting-on-single-page-applications/#.WMqTRaYTs0I.hackernews](https://spin.atomicobject.com/2017/03/16/reflecting-on-single-page-applications/#.WMqTRaYTs0I.hackernews)

From the article:

> [@](#):
>
> Another surprise was that a number of the applications failed at providing good feedback about when they were busy or communicating with the server. The browser naturally provides valuable feedback about when its busy talking to the server, but thats not something a single-page app gets for free. It can be confusing. Its not a fun experience to click a button, wonder if anythings happening at all, and then eventually see it take effect. In scenarios like that, its honestly better to just load a new page than to show no feedback at all.

Xojo Web Apps have this problem when latency is high. The user does not have an indication that the code is running during the round trip to the server with the exception of WebButtons being able to AutoDisable themselves. While its possible for an Event Handler to call a method to change control properties and then running a WebThread, there can be a delay in the user seeing the change to the control properties.

In the Thread: [https://forum.xojo.com/39456-47404-web-app-add-running-javascript-before-event-handler-or-me/1#p324057](https://forum.xojo.com/39456-47404-web-app-add-running-javascript-before-event-handler-or-me/1#p324057), Greg OLone suggested the idea that there are only few control properties would be needed to provide feedback to the user that code is running before the round trip to the server similar to a WebButton AutoDisable property:

- Enable/Disable a control
- Show/Hide a control
- Apply a style
- Set the Position of a control relative to another control ( added by Hal Gumbert )

One way to achieve this is that the Event Handler Inspector could have a list of Feedback Controls where one or many controls can set one or many of those properties. When the Event Hander triggers, the Feedback Controls Properties would be set before the Round Trip. The developer would handle setting the Feedback Controls properties to the desired settings within the Event Handler code.[/quote]

---

<div class="post-metadata">

**Author:** ![Hal\_Gumbert](https://forum.xojo.com/user_avatar/forum.xojo.com/hal_gumbert/32/160_2.png) [@Hal\_Gumbert](https://forum.xojo.com/u/Hal_Gumbert)\
**Post date:** [April 3, 2017, 3:29pm UTC](https://forum.xojo.com/t/47609-web-app-event-handler-to-set-feedback-control-properties-before-round-trip/36994/2 "2017-04-03T15:29:03Z")

</div>

Wow! The feedback case is already ranked 43rd!

This feature will make Xojo Web development extremely close to perfect.

---

<div class="post-metadata">

**Author:** ![Alex\_Bombay](https://forum.xojo.com/user_avatar/forum.xojo.com/alex_bombay/32/224_2.png) [@Alex\_Bombay](https://forum.xojo.com/u/Alex_Bombay)\
**Post date:** [April 3, 2017, 10:42pm UTC](https://forum.xojo.com/t/47609-web-app-event-handler-to-set-feedback-control-properties-before-round-trip/36994/3 "2017-04-03T22:42:43Z")

</div>

I put it in my top cases +1

---

<div class="post-metadata">

**Author:** ![Ivan\_Tellez](https://forum.xojo.com/letter_avatar_proxy/v4/letter/i/a9a28c/32.png) [@Ivan\_Tellez](https://forum.xojo.com/u/Ivan_Tellez)\
**Post date:** [August 28, 2018, 5:06am UTC](https://forum.xojo.com/t/47609-web-app-event-handler-to-set-feedback-control-properties-before-round-trip/36994/4 "2018-08-28T05:06:18Z")

</div>

This was never implemented?

Are there any option to AutoDisable a WebListBox on a CellClick ?

---

<div class="post-metadata">

**Author:** ![Hal\_Gumbert](https://forum.xojo.com/user_avatar/forum.xojo.com/hal_gumbert/32/160_2.png) [@Hal\_Gumbert](https://forum.xojo.com/u/Hal_Gumbert)\
**Post date:** [August 28, 2018, 2:59pm UTC](https://forum.xojo.com/t/47609-web-app-event-handler-to-set-feedback-control-properties-before-round-trip/36994/5 "2018-08-28T14:59:35Z")

</div>

Not that I know of, but I moved Xanadu to Xojo + Aloe and in the process of moving to PHP. Maybe Xojo Web Framework 2.0 will fix this issue?

---

<div class="post-metadata">

**Author:** ![Frederick\_Roller](https://forum.xojo.com/user_avatar/forum.xojo.com/frederick_roller/32/479_2.png) [@Frederick\_Roller](https://forum.xojo.com/u/Frederick_Roller)\
**Post date:** [August 28, 2018, 4:26pm UTC](https://forum.xojo.com/t/47609-web-app-event-handler-to-set-feedback-control-properties-before-round-trip/36994/6 "2018-08-28T16:26:42Z")

</div>

> [@402896:@Hal Gumbert](#):
>
> Maybe Xojo Web Framework 2.0 will fix this issue?

😉

---

<div class="post-metadata">

**Author:** ![Ivan\_Tellez](https://forum.xojo.com/letter_avatar_proxy/v4/letter/i/a9a28c/32.png) [@Ivan\_Tellez](https://forum.xojo.com/u/Ivan_Tellez)\
**Post date:** [August 29, 2018, 5:32am UTC](https://forum.xojo.com/t/47609-web-app-event-handler-to-set-feedback-control-properties-before-round-trip/36994/7 "2018-08-29T05:32:25Z")

</div>

> [@402896:@Hal Gumbert](#):
>
> Not that I know of, but I moved Xanadu to Xojo + Aloe and in the process of moving to PHP. Maybe Xojo Web Framework 2.0 will fix this issue?

☹ Well, this is a big issue. Now that I want to do some real world web apps, it looks like that this is another half baked product. And I guess it is pointless to file another FC.

---

<div class="post-metadata">

**Author:** ![Hal\_Gumbert](https://forum.xojo.com/user_avatar/forum.xojo.com/hal_gumbert/32/160_2.png) [@Hal\_Gumbert](https://forum.xojo.com/u/Hal_Gumbert)\
**Post date:** [August 29, 2018, 2:11pm UTC](https://forum.xojo.com/t/47609-web-app-event-handler-to-set-feedback-control-properties-before-round-trip/36994/8 "2018-08-29T14:11:07Z")

</div>

> [@402974:@Pedro Ivan Tellez Corella](#):
>
> ☹ Well, this is a big issue. Now that I want to do some real world web apps, it looks like that this is another half baked product. And I guess it is pointless to file another FC.

I don’t want to be all negative as some bugs have been fixed like \<[https://xojo.com/issue/46463](https://xojo.com/issue/46463)\>, \<[https://xojo.com/issue/42891](https://xojo.com/issue/42891)\>, and \<[https://xojo.com/issue/39341](https://xojo.com/issue/39341)\>.

That said, it’s incredibly frustrating when you’re tying to get work done and have to spend time not only dealing with my own bugs and bugs like \<[https://xojo.com/issue/45691](https://xojo.com/issue/45691)\> which does not show it’s fixed.

When I found those bugs, I wondered if anyone really used the Web Framework 1.0. At one point, I felt I HAD TO rewrite a Web App that was in produciton to use Xojo + Aloe just to get around all bugs. ☹

---

<div class="post-metadata">

**Author:** ![Underwriters\_Technologies](https://forum.xojo.com/letter_avatar_proxy/v4/letter/u/ed655f/32.png) [@Underwriters\_Technologies](https://forum.xojo.com/u/Underwriters_Technologies)\
**Post date:** [August 29, 2018, 2:25pm UTC](https://forum.xojo.com/t/47609-web-app-event-handler-to-set-feedback-control-properties-before-round-trip/36994/9 "2018-08-29T14:25:15Z")

</div>

> [@402974:@Pedro Ivan Tellez Corella](#):
>
> Now that I want to do some real world web apps, it looks like that this is another half baked product

I make a very good living using real world web apps in Xojo.

Like any other development environment there are certain shortcomings…But to call the thing “half-baked”  Well I have a few thousand daily users on my web applications that would beg to differ.

---

<div class="post-metadata">

**Author:** ![Underwriters\_Technologies](https://forum.xojo.com/letter_avatar_proxy/v4/letter/u/ed655f/32.png) [@Underwriters\_Technologies](https://forum.xojo.com/u/Underwriters_Technologies)\
**Post date:** [August 29, 2018, 2:36pm UTC](https://forum.xojo.com/t/47609-web-app-event-handler-to-set-feedback-control-properties-before-round-trip/36994/10 "2018-08-29T14:36:24Z")

</div>

> [@403026:@Hal Gumbert](#):
>
> bugs like Feedback Case #45691

That one is a royal pain in the ■■■.

---

<div class="post-metadata">

**Author:** ![Ivan\_Tellez](https://forum.xojo.com/letter_avatar_proxy/v4/letter/i/a9a28c/32.png) [@Ivan\_Tellez](https://forum.xojo.com/u/Ivan_Tellez)\
**Post date:** [August 29, 2018, 6:25pm UTC](https://forum.xojo.com/t/47609-web-app-event-handler-to-set-feedback-control-properties-before-round-trip/36994/11 "2018-08-29T18:25:45Z")

</div>

> [@403027:@Jay Menna](#):
>
> Well I have a few thousand daily users on my web applications that would beg to differ.

Well, certainly you can produce a web app with the half baked part 😛

It is a fact that it lacks some really basic features and have some nasty bugs. Requests and reports filed, some with more than 4 years ago, having to hack sometimes, that is the half missing.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 6:43pm UTC](https://forum.xojo.com/t/47609-web-app-event-handler-to-set-feedback-control-properties-before-round-trip/36994/12 "2020-10-29T18:43:00Z")

</div>


