View Full Version : What's DHTML?

12-11-2002, 12:06 AM
What's DHTML? I have heard that it is just HTML that uses JS and CSS in it. And it just has an optional different extention to confuse people. Is that true?

12-11-2002, 12:14 AM
DHTML = Dynamic Hypertext Markup Language

Basically, DHTML is just JavaScript mixed with HTML and CSS to give a script a physical appearance on a page to promote interactivity.

12-11-2002, 12:23 AM
Have a look at this site, will answer your question and also give you heeps of scripts and information to use dhtml.

DynamicDrive (http://www.dynamicdrive.com/faqs.htm)

DHTML, or Dynamic HTML, is a new web technology that enables elements inside your web page to be, well, dynamic. Things once considered unchangeable once the page has loaded, such as text, page styles (font color, size etc), element position, etc, can now all be changed dynamically, thanks to DHTML. It brings your web pages one step closer to how things look inside your television, where images appear and disappear, text flies in and out, and content move around freely inside the screen.

12-11-2002, 12:45 AM
Ah, just as I guessed. It was the stuff I already knew, but with a different extention on some pages. I have no idea why some pages have different extentions like htm, html, shtml, xhtml, dhtml, and all that stuff. Personally, I prefer the old 8.3 DOS format. I have to on my site since FAT32 on win9x platforms destroys all my floppy disks nomatter if they are formatted on a DOS or windows pc.

12-11-2002, 12:51 AM
Originally posted by Tails
I have no idea why some pages have different extentions like htm, html, shtml, xhtml, dhtml, and all that stuff

Well, those extentions (aside from .htm/.html) are needed to provide support for our friendly neighborhood server-side scripts. If you uniform all of the sites in the world to .htm, then say goodbye to purching stuff online, logging in, codingforums.com...:cool:

As for your floppy problem, can't you simply upload to a floppy disk? Disks dont support file types, they simply maintain data, no matter what type...(excluding DVDs)

12-11-2002, 01:31 AM
You mean that if I keep the 3 character extention on files, it won't work with any scripts? Can't the scripts be customized? I am a dos fan and I don't appreciate any of the dos inconveniences in w2k and xp.

12-11-2002, 01:53 AM
OK. A few things here.

Firstly, don't confuse the file extensions with the languages behind them. These are quite seperate things.

html is the name of the markup language we all use. It has recently been superceeded by xhtml. This is an extension of html, but is fully compliant with xml (extensible markup language -- basically a meta-language for describing documents, but don't spend too much time worrying about that now).

dhtml isn't really anything specific. With the advent of javascript and proper css support, people suddenly found that they could change a lot of things on their site. For some reason, some of these changes get call dhtml (and others don't -- which is why it's not a particularly useful).

SSI is a technology where your server processes certain commands before sending files to your browser -- usually, this means to include files in your page.

Now, file extensions are a totally seperate issue. What your server choses to interpret as what is determined by the server configuration. Convention has it that we use certain things (htm and html for standard HTML documents; phtml, php for php documents; shtml for SSI, etc). These conventions make our lives easier because we can see what sort of file we are dealing with. But the server doesn't care. It would be quite possible (and easy) for a server admin to have your server execute .asp files with php.

The point of all this is that it's more important and useful to understand what the technology can do (and how you can use it) than to worry about all of the letters after the file-names.

12-11-2002, 09:26 PM
.htm works fine for me since I don't know all that server stuff. But I would like to learn php and stuff like that...if only there was a way to test it offline without a server. People recommended php.net and it was the biggest waste of time. I also tried to learn java at sun.java.com and there was more confusion with a sdk version, an rte version, and several other things that was not explained. Why is it so difficult? Well, my priority now is Java. What exactly do I need? I know JavaScript just fine and I have made games with it.

12-11-2002, 11:08 PM
You can get PHP up and runnin in a nano-second (we, not quote that fast) with firepages' php-dev. Get it at www.firepages.com.au. I had it installed and coding/testing PHP in my windows machine at home in 5 minutes.

Don't know about getting Java running, but if you think knowing Javascript will help you learn Java, you are sorely mistaken.

Oh, and yes, HTML + CSS + Javascript = DHTML

12-12-2002, 12:38 AM
I don't want to knock firepages' setup program, but I have never had cause to use something like that, because PHP has always installed just fine for me.

All I do is go to php.net and download the latest PHP installer... and install it :D Hey presto, it works. Takes around 10 seconds on my machine, same with MySQL (I do exactly the same thing).

I am running Windows XP Pro SP1 with IIS 5, so it may very well be different for other OSs, however I would also put forward the opinion that, rather than being a "waste of time", php.net is very useful, informative, and clearly laid out.

There are many resources on there for newbies, and I don't see why anyone with a basic grasp of programming concepts should have a problem.

Oh and also, just my opinion, but I think that anyone who LIKES the old 8.3 format has an odd view of the world! :D I for one rejoiced mightily (lol ;)) when I could use longer filenames. If you want to use modern technology, you have to embrace the changes that come with it, so please less of the moaning about long filenames and the like :D

...just my 2 pence :)

::] krycek [::

12-12-2002, 10:04 PM
no, I'm not moaning. It's not like I'm differen't from half the others who agree with that view. It always seems to cause long filename errors and physical errors on disks written to from win9x. And that's all I have, win98 other than dos 6.22. I keep hearing bad things about xp and 2k, so I'll wait for a superior OS with both their stuff. BTW, does anyone know where I can begin setting up and installing a java compiler?

12-12-2002, 10:34 PM
You're passing on 2K and XP for 98?

2K and XP may not be fantastic, but using win98 when you're interested in Web development is like making NS4 your primary concern browser-wise.

12-12-2002, 10:43 PM
I'm not passing. It's not like I have the option of getting either OS for free, and by the time I can get one (would take 10 years allowance), something better would come out. I just have to use what I have.

12-12-2002, 11:12 PM
...can I just ask, why not use Linux then? Get Mandrake 9 or RedHat 8, they are both free, very popular, free, very good, free, and did I say... FREE? :D lol!

But seriously, apart from the fact that beetle is completely correct about Win98 and web development, you shouldn't be having any trouble with your floppies. Can I just suggest that you upgrade your DOS version, like to version 7 or something, because I remember well the times that I used to transfer files between DOS and Win95/Win98, and I never had any trouble. Oh, and I was using an old Amstrad 1640 at that time, with DOS 5 :p I had that at home, and Windows at school :) (God that brings back memories, thankfully I am a good way out of the schooling ratrace now!)

So long as you are careful about naming, you shouldn't really have any difficulties.

May I ask, why do you need to use DOS if you have Windows? And at the risk of repeating myself, ;) Linux :D

::] krycek [::

12-13-2002, 12:35 AM
I really don't know much about linux. I'm new to it. But there are many reasons to still use dos on an alternate computer that can't handle windows. And isn't dos 7 the one that comes with windows?

12-13-2002, 12:39 AM
begs the question, why use an old DOS computer for web stuff? :confused:

Surely there is no reason to transfer web files between these two machines you mention.

Oh, and you don't have to use MS-DOS, Caldera DRDOS is quite good, as I remember.

Yes MS DOS 7 comes with Windows, but you can use it on its own too :)

::] krycek [::

12-13-2002, 08:56 PM
I use dos on my old computer and win98 on the newer. If this DRDOS is good, then tell me more. But if it's not free, I can't get it aytime soon. My site http://XFox_Prower.tripod.com started out being made on a dos computer, and I even use somedos programs on it. Arachne for dos is good (better than IE in a few ways), but IE is better and I work on the site on my newer computer. Still though, editing a page in notepad (clicking edit or 'view source') is not good enough. It doesn't show what line you're on and I have to debug 300 line + scripts and I don't want to count so many lines. DOS's edit.com / edit.exe (differen't extention on dos versions) does show the comumn and line.

12-13-2002, 09:45 PM
hehehe, if it's just notepad that's your problem, use something like Notepad+ or one of the many free text editors around. SOme even colour your code for you :) just take a look around any download site worth its salt :D

as far as I know, DRDOS is free, however you may have to search hard for it because it was never as popular as MSDOS (even though it was arguably better) and its kinda old now :p

there are so many things that you can use for free nowadays, that if you have no budget for software it still shouldn't stop you being able to use up-to-date stuff. Just the other day I discovered another treasure trove - Green Eclipse software. They make, among other things, a cool little colour palette (it is actually far more useful than I would ever have thought!) and a sweet sticky note thing.

OK so I am getting off topic, but you get the idea. Just search for freeware :)

::] krycek [::

12-13-2002, 11:47 PM
some freebies I use


12-16-2002, 09:28 PM
Oh yes! That's what I want. For things in quotes to be colored automatically when typed in realtime, etc. Tags being automatically capitalized (I do it automatically, but for say...opened files) Things like this. Notepad+? I'll look for it. Thanks!

12-16-2002, 09:34 PM
EditPlus (http://www.editplus.com/) has built-in syntax highlighting for lotsa web-languages.

12-17-2002, 04:54 AM
metapad is just like notepad, but it has hotkey shortcuts, and can have extra toolbars, but i use vi for linux, command line baby.:thumbsup: . it is nice and syntax colored too, i love it.

12-17-2002, 03:49 PM
I'd like to create programs like that. I wish I knew how. Well, it's not on-topic, so I won't say too much, but my only programming experience is with JS and compiler programs cost a fortune. Where do you find your tools & utilities for this stuff? I usually go to simtel.net. They have lots of good stuff for dos and windows.

12-17-2002, 04:03 PM
...compiler programs? :confused: you don;t need a separate compiler for JavaScript... the browser takes care of all of that

::] krycek [::

12-17-2002, 08:11 PM
Yea, I know. It's the only way I can use VBscript without having a million dollar C compiler. I use javascript all the time. I really want to learn java or C or something, but the compilers are too expensive or too large.

12-17-2002, 08:38 PM
There are loads of free compilers ;)




12-17-2002, 10:22 PM
I need something free and not shareware. I have the Dev C++ compiler, but it can't write dos programs like it claims it can (it makes win32 command lines at closest)