Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Feb 1998 09:21:25 -0800 (PST)
From:      patl@phoenix.volant.org
To:        hackers@FreeBSD.ORG
Subject:   Re: Javascript for project page?
Message-ID:  <ML-3.3.888081685.4566.patl@asimov>
In-Reply-To: <Pine.BSF.3.96.980221103302.469A-100000@acp.qiv.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> On Sat, 21 Feb 1998, Mark Mayo wrote:
> >Hi all. I've been coding up a prototype "FreeBSD Project Database"
> >page, and I'm seeking opinions on if I should use Javascript..
> >Javascript lets me do some handy error checking on the client side
> >before requests and such get sent into the database server, as well
> >as opening up some better design possibilities... I'm concerned however
> >that the use of Javascript will limit the number of people that can
> >use the site. 
> >
> >Opinions? Is *everybody* using Netscape now, or do a significant
> >...

I'd go for an intermediate solution.  Use the JavaScript for error
checking; but design the page so that it still works without the
JavaScript portions.

Remember, even with JavaScript doing error checking, the server
side forms handling should -always- do it's own error checking.
There is no guarantee that the data actually came from your form...


'Better design possibilities' is a vague and covers a lot of possible
territory.  Would PHP help you retain some of them?  Since it is a
server-side module, the results don't require any specific browser
capability beyond the version of HTML being emitted.  And since the
PHP script can check the browser id string, it can modify the HTML
that is returned based on a priori knowlege of the browser's capabilities.
Of course it can't tell whether a Netscape/MSIE user has turned off
JavaScript; but it could avoid emitting the SCRIPT blocks and NOSCRIPT
tags to browsers that are known not to support JavaScript at all.



-Pat


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ML-3.3.888081685.4566.patl>