JS vs DHTML

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

JS vs DHTML

Post by anjanesh »

Hi

Before myspace.com was allowing JS code in the the input fields such as About Me etc.
Now they are not allowing it.
You may enter HTML/DHTML or CSS in any text field.
Javascript is not allowed.
But what I dont understand is the DHTML part - How can Dynamic HTML be allowed when Javascript isnt ? Is there a way to incorporate DHTML without JS ?

Thanks
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Well, Yes in theory but it wouldn't commonly be done without JavaScript.

Microsoft IE will work with VBScript and there's also JScript.

Cutting out JavaScript makes it far less standard to incorporate DHTML.
Perhaps I can understand why they've blocked JS... but what I don't understand is why they haven't blocked <script> in general :? - people could make things look messy, add redirects, generally create havoc if they are allowed to send client-side code to the server which will be sent back to browsers worldwide.
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

d11wtq wrote:but what I don't understand is why they haven't blocked <script> in general :?
How did you come to this conclusion ?

Myspace seems to have blocked <script> and </script>.
They appear as .. (2 dots)
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Oh...

I came to that conclusion because to use JScript/VBScript you do:

Code: Select all

<script type=&quote;text/vbscript&quote;>
<!-- Hide

//End -->
</script>
In other words I don't know other HTMLish ways to do DHTML :?
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Re: JS vs DHTML

Post by Roja »

anjanesh wrote:But what I dont understand is the DHTML part - How can Dynamic HTML be allowed when Javascript isnt ? Is there a way to incorporate DHTML without JS ?
It sounds like they simply left dhtml in without thinking it through.
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

DHTML is basically accessing the browser's DOM with Javascript (or other languages). The DOM being the crucial part. CSS, JS, HTML-tags are only parts.
Post Reply