Quote:
|
I am working with your code to edit things and I am still tryin to learn more JavaScript do you know of any free tutorials that I could use as a starting point?
|
There are a ton of tutorials (Google for them), most of which don't tell you the most important things - how to deal with the fact that different browsers support different DOM models.
To really do a good job, take a look at the official docs for the two most popular browsers and note some of the main differences.
Microsoft IE:
http://msdn.microsoft.com/library/de...ence_entry.asp
Gecko (Netscape, Mozilla, Firefox):
http://www.mozilla.org/docs/dom/domr..._shortTOC.html
The most popular way to do things these days is with document.getElementById. Yet older browsers, such as Netscape 4, do not support this. So don't be surprised if you simply can't do some things in older browsers. To make sure your stuff doesn't crash old browsers (it won't work, but it won't crash them either) is to use object detection. NOT BROWSER DETECTION. Browser detection (using the user agent string) is bad for a crapload of reasons I won't get into here (usenet is your friend if you care to look up the numerous threads on the topic).
If you want to use any of the DOM methods, do this:
Code:
if (document.getElementById)
{
// whatever you need to do with it
} And usenet is your friend. Take a look at the comp.lang.javascript FAQ. Loads of good stuff there.
http://jibbering.com/faq/
HTH