Page 1 of 1
JS vs DHTML
Posted: Sun Jul 17, 2005 1:58 pm
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
Posted: Sun Jul 17, 2005 2:28 pm
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.
Posted: Sun Jul 17, 2005 2:57 pm
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)
Posted: Sun Jul 17, 2005 3:03 pm
by Chris Corbyn
Oh...
I came to that conclusion because to use JScript/VBScript you do:
Code: Select all
<script type="e;text/vbscript"e;>
<!-- Hide
//End -->
</script>
In other words I don't know other HTMLish ways to do DHTML

Re: JS vs DHTML
Posted: Sun Jul 17, 2005 4:08 pm
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.
Posted: Sun Jul 17, 2005 4:51 pm
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.