On Sun, 10 Jan 2021 13:59:19 +0000
The Natural Philosopher wrote:
> On 10/01/2021 12:33, Ahem A Rivet's Shot wrote:
> > On Sun, 10 Jan 2021 12:15:58 +0000
> > The Natural Philosopher wrote:
> >
> >> So PHP is not equivalent to JavaScript. PHP is fine at interrogating
> >> databases and doing a lot of server side stuff, but for popup dialogues
> >> and menus that expand you need Javascript.
> >
> > I thought those could be done in HTML and CSS these days.
> >
> not really - unless you consider that e.g. onmouseover() or hover: is
hver: is CSS onmouseover() is JavaScript.
> not Javascript and even then if you want to unhide some block, you need
> to be able to address it via the DOM. So you need a
> getElementbyId(x).style.display='block'; and so on.
I've seen hide/unhide done without JavaScript. Admittedly it looks
clearer and easier in JavaSript.
> Cant see how to do that in css. willing to find out
I get the impression that there's a lot that can be done in pure
CSS but ingenuity tends to be needed and it's sometimes far from obvious
how things work (based on looking at some examples).
> I cant really write a web page the way I want it without javascript
> these days. Ok its not a LOT of javascript.
Fair enough, the original intent of JavaScript was simple additions
rather than client side applications so it's nice to hear it being treated
that way.
--
Steve O'Hara-Smith | Directable Mirror Arrays
C:\>WIN | A better way to focus the sun
The computer obeys and wins. | licences available see
You lose and Bill collects. | http://www.sohara.org/
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|