We've noticed that you've been inactive for over 10 minute(s). We've stopped running the Shoutbox due to your inactivity. If you are back again, please click the I'm Back button below.
First of all, you need to decide how much you want to learn. Let me elaborate this. As a personal or small business website developer, you would need to develop the whole website by yourself and for this purpose you won't be able to become an expert in all of the different languages required to create and maintain a website. So what you would do is learn the basics of all the different languages to the extent that you can make and maintain a basic website with reasonable functionality.
On the other hand, if you "are"/"want to be" a member of professional web development team and your area of expertise is javascript, then you probably need to get into very details of the language. This would require a different approach than learning only the basics. So you need to decide first.
Once you have decided, you can google for various books and tutorial as they are very easy to find and follow. And the one golden rule of learning all computer languages is "Practice, Practice and Practice". Believe me, there is no alternative to this.
Posted 06 June 2012 - 04:55 AM
http://www.w3schools.com/default.asp this is the best site acording to me if u wanna learn JAVASCRIPT and then want PHP..then try this im sure it would be very much help full for u...
JavaScript is quite easy to learn, once you get the hang of it, I used to hate it, but as the situation in web has changed dramatically, you need to use a lot of JavaScript these days. It's best to use tutorials and do it yourself, learn it, once you get the hang of javascript, in my opinion it's best to grab some kind of a framework, like jQuery, even though it's not a framework, it's more a javascript library.
At first it my look quite hard to learn and understand it, but once you get the hang of it, it's really great and there's a lot of plugins for it you can use. It adds a lot of code to the site, when you include jQuery and a lot of plugins, but it gives you a lot of possibilities to make your site much more interactive.
But, when you will try do some scripts in diferent browsers, you see different behavior of js. So you should take a look at some framwork. My chooise is jQuery for usual programming, and if yo want something for very rich ui - your choise can be Dojo or ExtJs.
If you are intermediate or advanced you may scoff at this, but for a total noob like me it has been extremely helpful. At present there arejust 27 tutorials, but they are presented in a way that is easy to comprehend.
I can relate to how you feel about PHP. I began learning PHP with a book and some video tutorials I pay to subscribe to, but when it came to setting up a testing server and getting a MySQL database up and running, those resources were poorly documented. They assumed the user already knows how to do this. After searching desperately for online MySQL tutorials, I eventually found none that answered my questions and in the meantime I forgot the PHP I had learned. That's the problem with PHP: you have to learn it in conjunction with a database language. And in MySQL's case that leads down a dark and winding labyrinth to nowhere. You need to learn about Wamp/Xampp/Mamp, phpMyAdmin, how to set the testing server up in Dreamweaver, how to import a database, etc. You are on your own in this web-wide scavenger hunt to put the fragmented pieces together.
I knew that JavaScript requires no testing server, so I decided to learn that instead. With the growing popularity of Ajax, I think it is an important skill to have. I plan to revisit PHP at some point, but as of now there are just not enough good resources for learning the MySQL that goes hand-in-hand with it.
I think the best way to learn Javascript is to create in text editor a simpliest HTML file and save it on your local machine. For example, you can create something like:
<html>
<script language='javascript'>
function mytest() {
// any javacript code for testing purpose
}
</script>
<body>
<input type='button' value='Do My Test' onClick='mytest()' />
</body>
</html>
Having this you can put into the mytest() function any javascript code whatever you want - for example, you can take any part of code from the tutorials and execute immediately. For debugging purposes it is very useful to use the method Alert(). It gives a possibility to visualize any intermediate calculation results etc. I think the method Alert() can be considered like an altervative of debugging breakpoints, used in Java and C++ IDE.
For example, I want to use some simple math formulas in Javascript and I found in tutorial how to do this. I am updating mytest() function:
function mytest() {
alert('mytest started');
var arg1 = 2;
var arg1 = 3;
alert('before finding result');
var res = Number(arg1) + Number(arg2);
alert( res );
}
When I open my test page in the browser and click "Do My Test" button, I see alert message "mytest started". So, I am sure that mytest() function is correctly called by Javascript. After that I see the message "before finding result". It means, that I still di not have any errors in Javascript. But I do NOT see the message with the result of calculation. It means, I have some script errors on the line var res = Number(arg1) + Number(arg2) What is wrang??? I am looking on my code very attentiavelly and I see: variable arg2 is not declared, but used on the right side of Javascript statement because I decraled two times variable arg1!!!
I correct my Javascript code:
function mytest() {
alert('mytest started');
var arg1 = 2;
[b] var arg2 = 3;[/b]
alert('before finding result');
var res = Number(arg1) + Number(arg2);
alert( res );
}
After re-opening updated page in the browser, I see all alert messages, including the message with result "5". It means, my Javascript code is perfect and ready for using anywhere in my future job! I can add this debugged source code to any other Javascript code (with a very complicated business logic) and I can be sure it will work correctly.
So, step by step (looking at tutorials and realizing immediately), I can create with Javascript any bussiness logic for my project!
Head First Javascript helped me learn. You can get a paperback version for $20 on Amazon.
w3schools.com is a really helpful website with all kinds of scripting examples to look at and download
I know you said you didn't like online tutorials, but if you take it slow w3's are really quite helpful.