Sign in to follow this  
Wajde

[web] javascript beginner question..

Recommended Posts

hey all. i just started to learn javascript.. im reading now "Simple javascript" book.. and when i tried to write some code using visual web developer . i found that the things are not runing as i read in the book!!! for example getting attributes from node has different way in visual web dev unlike the way written in book , and so on... things are different why????

Share this post


Link to post
Share on other sites
Quote:
Original post by Wajde
for example getting attributes from node has different way in visual web dev unlike the way written in book , and so on... things are different why????

Each browser vendor presents different variations on the document object model (DOM). You'll want to read this, this and this.

Share this post


Link to post
Share on other sites
ok , this is really wierd............. what language is that!!!!!!
i even copied a code (that should work in ie) and it didnt!!!!!!
whats going on?? for example when i do document.all it doesnt add <body> to the returned array!!! wth?

Share this post


Link to post
Share on other sites
even external libraries like "prototype" doesnt work!!!!!!
help please.......

and another wierd thing, that "document.all" doesnt get body in the returned array!!!!

im not new to programming , but this thing never happend to me before, NOTHING WORKs!!!!!!!!!!

Share this post


Link to post
Share on other sites
First of all, calm the fuck down. Stop with the excess exclamation marks. Problems are normal in software development, so stop expecting everything to work perfectly right out of the box.

Second, we can't help you if you don't give us enough information about what you're doing, what result you expect, and what precise result you're seeing, including error messages if any. If, in this case, you're executing your scripts in the browser environment, I recommend installing Firebug for Firefox and IE Developer Toolbar for IE. These tools will allow you to see syntax errors in the specific environment and have a better idea what is going wrong.

The software development process - which you should know, since you state you are not new to programming - involves numerous small failures along the path to problem resolution. These failures are important feedback, and not something to get all dramatic about.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this