You are here: Re: what is the proper use of javascript? « HTML « IT news, forums, messages
Re: what is the proper use of javascript?

Posted by dorayme on 10/17/06 08:57

In article <RqGdnSJNrvrdCKnYnZ2dnUVZ8qmdnZ2d@pipex.net>,
"Brian Cryer" <brian.cryer@127.0.0.1.ntlworld.com> wrote:

> "dorayme" <doraymeRidThis@optusnet.com.au> wrote in message
> news:doraymeRidThis-42A6A8.15474017102006@news-vip.optusnet.com.au...
> > In article <45345e34$0$30749$c3e8da3@news.astraweb.com>,
> > John Salerno <johnjsal@NOSPAMgmail.com> wrote:
> >
> >> I know a lot of you guys are hardcore about writing proper HTML/CSS, so
> >> I'm curious what you feel Javascript should be used for specifically.
> >> Everyone seems to say not to use it for anything necessary, since it can
> >> be turned off. I know sometimes you can use CSS for certain effects
> >> instead. So what are the real, valid uses of Javascript? Does anybody
> >> think you just shouldn't use it? Or are there other, more advanced uses
> >> of JS that I'm not thinking of?
> >>
> >> Thanks.
> >
> > A real valid use of it would be to create a pop up window, a drop
> > down menu, in short anything at all that might make the site easy
> > and pleasant to use. So there is no set of things that can be
> > defined to be real and valid. Much of the objection to it are
> > that some people have it off or not on auto for various reasons,
> > some to do with security.
> >
> > To take the case of a drop down menu, if javascript is employed,
> > then at least the primary class "Sweets Recipes" (which drops
> > down to reveal the different types of sweet recipes) should be a
> > normal html link that takes you to a page that has, in turn, a
> > set of links to the different sweets, perhaps with the actual
> > first recipe there as well and a sub menu to the rest.
>
> Regarding a drop down menu, this can be done quite successfully using just
> css and no JavaScript. Take a look at http://www.grc.com/menu2/invitro.htm.

Yes, that is a very good one as far as I can see. Thanks for
posting this. I would have guessed js would give more flexibility
but I don't know this, I tend not to use any dropdowns... but I
consider it from time to time and clients are always mentioning
such things. People like them!

--
dorayme

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация