FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » On click button in php
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: On click button in php [message #180468 is a reply to message #180467] Tue, 19 February 2013 10:58 Go to previous messageGo to previous message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma:
Senior Member
Arno Welzel wrote:

> Thomas 'PointedEars' Lahn, 2013-02-19 11:23:
>> Arno Welzel wrote:
>>> Thomas 'PointedEars' Lahn, 2013-02-17 21:09:
>>>> Arno Welzel wrote:
>>>> > nag, 2013-02-16 03:15:
>>>> > [...]
>>>> >> <a href="#"><input type="button" onclick="<a href='details.php?$id='
>>>> >>> </a>" value="submit" style="margin-left:4.0em;"></a>
>>> [...]
>>>> >> but when I click the button (the submit button) nothing is happening.
>>>> > Of course not. onClick is an event handler and you have to use
>>>> > JavaScript there.
>>>> “onclick” is an event-handler attribute (for the “click” event of the
>>>> DOM), and unless the HTML version is HTML5, one can use any scripting
>>>> language in its value. ECMAScript-based scripting languages like
>>>> JavaScript are best supported, though.
>>>>
>>>> See also: <http://PointedEars.de/es-matrix>
>>>
>>> Theoretically - yes. In the real world ECMAScript-based scripting
>>> languages like JavaScript are the only useful choice, since none of the
>>> current browsers except Internet Explorer support anything else out of
>>> the box.
>>
>> That is what I said.
>
> To make it more clear: ECMAScript-based languages like JavaScript are
> not only the "best supported" ones - they are the ONLY possibility in
> the real world

You are mistaken. Companies are using that fact to their advantage.

> and it does not matter if is theoretically possible to specify another
> language for the event-handler and if there is one(!) known browser to
> support VBScript instead of JScript.

It is still possible. A “real world” argument is, of course, a common
fallacy.


PointedEars
--
> If you get a bunch of authors […] that state the same "best practices"
> in any programming language, then you can bet who is wrong or right...
Not with javascript. Nonsense propagates like wildfire in this field.
-- Richard Cornford, comp.lang.javascript, 2011-11-14
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: using scripting languages to automate a browser
Next Topic: utf8_encode(utf8_decode(string)) doesn't return same string
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 18:31:28 GMT 2024

Total time taken to generate the page: 0.04067 seconds