« [Video] Servoy vs MeteorJS | Main | Coding Session #15: Testing »
July 14, 2012
Hacking Servoy's AJAX Notification
Since Servoy's Web Client largely runs server-side, the AJAX notification gets triggered a lot. And Servoy's default notification...er, blows. And they don't make it easy for the developer to modify unless you know a bit of client-side javascript.
This video shows a spinner that appears at the location of the mouse and follows the mouse around if it is moved while an AJAX call is waiting to complete. MUCH better user experience.
Here is my development code for hacking in the location of our modified notification (I'm sure it will get tightened up a bit before going into production!):
Not discussed in the video is how we changed the notification from Servoy's default "Loading..." text to a spinner. We used the most excellent NETEYE Activity Indicator jQuery Plugin. The following code is what we used to set up the spinner using this library:
Note that there are several permanent ways of including client-side javascript with Servoy's Web Client. In the MainPage.html web client template, insert server-side with the Web Client Utils plugin, or in your custom wrapper if you're running Servoy Web Client in an iFrame.
| Posted by David Workman on July 14, 2012 at 04:18 PM in Tips, Video | Permalink
Comments
Hey David - can you give a more step-by-step approach on this? I would LOVE to ditch the "Loading..." and provide ACTUAL feedback in the Web Client!!
Posted by: Bob Cusick | Jul 19, 2012 11:35:59 AM
Step-by-step takes a lot of time that we don't have. The compromise we've come up with is to show something is possible, give out the relavent code -- and then leave it up to the reader to figure out how to put all the pieces together on their end.
If not enough, easy to hire us for a couple of hours and we'll get you squared away.
Posted by: David Workman | Jul 19, 2012 5:50:06 PM