Aaron wrote :
>>
On a side note, I recently built an app that took advantage of cross =
frame scripting to modify a page loaded from another server, it worked =
on ie 5.5, but ie 6 'fixed' it. =20
<<
=20
That's my conceptual problem with web-based applications, you get =
trapped into the "Write once, debug everywhere" cycle because users =
up/downgrade their browsers, mess with their security settings, switch =
cookies on and off. Paradoxically the *promise* of a ubiqitous client =
that you don't have to install and maintain is why I'm lurking in =
Webware-discuss.=20
=20
I can't help feeling that even web state-of-the-art is frustratingly =
stoneage at the moment.
-----Original Message-----
From: Aaron Held [mailto:aaron@...]
Sent: Tuesday, March 04, 2003 1:02 PM
To: Ian Sparks
Cc: Webware discuss
Subject: Re: [Webware-discuss] Use JavaScript with Caution...
Ian Sparks wrote:
>>
My customers take less of a security risk this way then if they have to =
install a full client on thier PC's.
<<
=20
Offtopic but what is the thinking behind this statement? Why do you feel =
browser-based is safer than full client?=20
=20
Ah, unless you mean by "full client" that the user has a local database, =
then I'd see your point.
Any security hole in the browser can and should be dealt with by thier =
IT staff.
Any security hole in my app will never be seen untill it has been =
exploited.
Actually I was thinking of an app I sent out a few years ago where the =
.dll's clobbered other .dlls and any app crashed when you tried to =
print. =20
On a side note, I recently built an app that took advantage of cross =
frame scripting to modify a page loaded from another server, it worked =
on ie 5.5, but ie 6 'fixed' it. =20
-Aaron
-----Original Message-----
From: Aaron Held [ mailto:aaron@...]
Sent: Tuesday, March 04, 2003 12:15 PM
To: Chad Walstrom
Cc: Webware discuss
Subject: Re: [Webware-discuss] Use JavaScript with Caution...
I agree with the sentiment, but using javascript in the manner that we =
are discussing has allowed me to mimic much of the functionnality of =
traditional clients over the web. For wexample I have a complex search =
system athat was migrated from MS Access. It is usable w/o javascript, =
but much more tedious - mainly becuase the users are 'trained' on the =
existing system.
Also for Intranet / Extranet situations it is perfectly accectable to =
mave a min system requirement. My current system Requires IE, but =
everything I am coding will also work with Netscape/Mozaill, Opera and =
Konqurer, but If I go with this XMLHTTP then my next project will only =
support Netscape / IE. =20
My customers take less of a security risk this way then if they have to =
install a full client on thier PC's.
Javascript is not the bane of poor web design, poor web designers are =
the bane of javascript.
-Aaron
Chad Walstrom wrote:
Aaron Held wrote:
=20
So instead of processing the return xml file, building javascript=20
objects and coding a result you just call the=20
=20
As nifty as this might seem, JavaScript is IMHO the bane of poor web
design. JavaScript is meant for eye-candy, and should only be used in
that manner. We all know that the behavior of JavaScript is not
standardized, and depending on the browser or user preferences,
JavaScript will not behave in the same manner and may not even exist.
How many sites have you visited in the past and present that are IE-only
or Mozilla-only. Far fewer of the latter than the former, but generally
speaking, JavaScript limits the usefulness of any website.
With that in mind as a note of caution, please consider maintaining
functionality for basic web browsers and those people who do not allow
JavaScript to run for security reasons (like myself). Program to the
least-common denominator.
Another note of caution: NEVER trust the client. IOW, ALWAYS validate
the client response and be aware of the impact of passing values to
method calls. A common mistake is to use JavaScript to validate forms
before submission, and to trust that data as "clean". JavaScript is a
nice convenience for the user, but that is all. The data you receive
at the server could have easily been custom scripted to exploit your
application. Without validation and filtering, your app could be open
to all kinds of nasties.
Sorry about the preachiness, but JavaScript is one of my largest
pet-peeves. It can be used to create some neat web-effects and
conveniences, but it's just not safe to rely upon.
=20
|