Hi all,
I was looking for a recent topic pointing out things that Webclient cannot do as opposed to Smart Client and haven’t found one (please share the link if I’m mistaken).
It’d be good to have this sort of things in one topic for everyone to not have to rummage through the whole forum.
So. Is there anything in Webclient that cannot be done compared to Smart Client?
We have to make a decision and continue to develop either of these (I know that Servoy advertises its solutions as being able to run in both but experience proves that it’s much more work than it seems at a first glance).
I see after some browsing / googling that there are browser plug-ins available to access local hardware such as a serial port.
I was living some time now with the (Servoy) idea that accessing local hardware is not possible from within a (any) webclient.
Last week I discussed the pro and cons of web and smart with a software developer colleague / competitor (not Servoy) who looked very surprised when I told him local access is not possible from any webclient…
In discussions with Servoyans in the past I understood that local access was prohibited / not possible due to the design / nature of a browser in general…
From within a webpage/Javascript (by default) it is not possible to access local hardware and/or the local filesystem.
Using browser specific plugins you could lift that restriction, but at the cost of:
Security breaches
Loss of zero deployment model
Deployment issues like versioning of the plugin, security restrictions stopping the installation of the plugin etc etc.
Building custom plugins for every browser you’d like to support
You could also choose for a more widespread browser plugin like Flash, Java Applet of Silverlight, but each of these come with their own set “issues”, besides the fact that they are not universally supported in every browser nowadays.
All in all, using browser plugins to gain access to the local hardware of the machine where the browser runs is a troublesome road to follow.
Good thing is that in HTML5 more API is added to the browsers JavaScript, so one day, when the majority of the browsers support that…