Re: [fpc-pascal] *** GMX Spamverdacht *** Re: WebAssembly Target

2017-04-20 Thread Graeme Geldenhuys
On 2017-04-20 09:40, Michael Van Canneyt wrote:
> The people fighting javascript in the browser are fighting a reargard battle.
> It will only get worse.

Indeed, I was simply pointing out that _some_ functionality is possible
without JavaScript, but the majority of what we consider "the standard
web" seems to require JavaScript - if you like it or not.

Regards,
  Graeme

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] *** GMX Spamverdacht *** Re: WebAssembly Target

2017-04-20 Thread Michael Van Canneyt



On Thu, 20 Apr 2017, Graeme Geldenhuys wrote:


On 2017-04-14 12:53, Michael Van Canneyt wrote:

Why is it scripting needed to display a calendar?


To display a popup menu, for example.


But apparently you don’t need JavaScript for that either. Here is a blog
post (dated 5 years ago) where the person proved just that - you can use
HTML and CSS alone to accomplish popup menus and modal dialogs without
JavaScript. ;-) Web developers just chose not to do so. Makes you wonder
what else is possible (we all know Web Developers like to take shortcuts
and live by copy-and-paste coding styles).


That was only possible after CSS had been 'updated' to include some dynamic 
effects.

And CSS will not help you for example with autocompletion in an edit box.

The people fighting javascript in the browser are fighting a reargard battle.
It will only get worse. As long as there is no acceptable alternative for
the browser, this will continue to worsen...

Michael.___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] *** GMX Spamverdacht *** Re: WebAssembly Target

2017-04-20 Thread Graeme Geldenhuys
On 2017-04-14 12:53, Michael Van Canneyt wrote:
>> Why is it scripting needed to display a calendar?
>
> To display a popup menu, for example.

But apparently you don’t need JavaScript for that either. Here is a blog
post (dated 5 years ago) where the person proved just that - you can use
HTML and CSS alone to accomplish popup menus and modal dialogs without
JavaScript. ;-) Web developers just chose not to do so. Makes you wonder
what else is possible (we all know Web Developers like to take shortcuts
and live by copy-and-paste coding styles).


  Popup windows without JavaScript
  http://eichefam.net/2011/12/21/popup-windows-without-javascript/


Regards,
  Graeme

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] *** GMX Spamverdacht *** Re: WebAssembly Target

2017-04-19 Thread Michael Schnell


On 14.04.2017 12:56, Jürgen Hestermann wrote:

Why is it scripting needed to display a calendar?
Most obviously: (OK. I do know that there is a timed reload instruction 
in HTML, that I malevolently ignore in this post, but it would be a PITA 
to use same in a more complex example, as it would reload everything 
instead of updating e.g. just a single number, as often needed in a RIA 
GUI.)


You keep the Browser Window open and at midnight the sheet for the new 
day should automatically be displayed.


HTTP/HTML can't do that, It's strictly unidirectional request->answer. 
(Which in fact is completely silly, but we need to live with that).


So Java script can do the necessary polling.

-Michael


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] *** GMX Spamverdacht *** Re: WebAssembly Target

2017-04-14 Thread Michael Van Canneyt



On Fri, 14 Apr 2017, Jürgen Hestermann wrote:


Am 2017-04-14 um 11:03 schrieb Michael Van Canneyt:
> On Fri, 14 Apr 2017, Jürgen Hestermann wrote:
>> Am 2017-04-13 um 10:20 schrieb Michael Schnell:
>> > So at the moment HTML5 and Java script is the way to go, but 
WebAssembly should recreate Action Script versatility performance in a more 
"Standard" way.

>> I hate Java Script and use NoScript to block it.
>> I can't understand why scripting is needed for a web page.
>
> Simple: to improve the user experience. Things like google calendar would 
be impossible without it.


Why is it scripting needed to display a calendar?


To display a popup menu, for example.

Or completion when typing in an edit: when you invite someone, it's handy
when calendar suggests the contact name.

Michael.___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] *** GMX Spamverdacht *** Re: WebAssembly Target

2017-04-14 Thread Jürgen Hestermann

Am 2017-04-14 um 11:03 schrieb Michael Van Canneyt:
> On Fri, 14 Apr 2017, Jürgen Hestermann wrote:
>> Am 2017-04-13 um 10:20 schrieb Michael Schnell:
>> > So at the moment HTML5 and Java script is the way to go, but WebAssembly should 
recreate Action Script versatility performance in a more "Standard" way.
>> I hate Java Script and use NoScript to block it.
>> I can't understand why scripting is needed for a web page.
>
> Simple: to improve the user experience. Things like google calendar would be 
impossible without it.

Why is it scripting needed to display a calendar?

I am not against improving HTML but allowing arbitrary code
on a web site is of no use (for the user) IMO.
It's just a security hole.

Code can be executed on the server if needed.
On the clients only what the HTML-language provides shoud be allowed.
And executing arbitrary code should not be part of this language.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal