|
|
Best Way To Learn Javascript - I would very much like to know. | ||
Discussion by Ayla with 15 Replies.
Last Update: June 6, 2012, 11:10 am | |||
I have been to websites and things, but every time I read through the tutorials and articles and things, I didn't learn anything. It when in one ear and out the other, you could say. So, that is why I am psoting this. I would very much love to know what the best (easiest and quickest) way to learn Javascript.
Thank you in advanced.
Tue Feb 7, 2006 Reply New Discussion
Sun Feb 26, 2006 Reply New Discussion
Furthermore, there are plenty of written javascript code out there, of course php too, but most of the php scripts written by others are not really of good quality, people who really wrote good scripts, usually use them for them selfs or they are just lazy to rewrite them for public usage or even document it. As I said, this is just my personal opinion, because I don't know superb knowledge of javascript and never liked it to much, always liked the alternatives..
Mon Feb 27, 2006 Reply New Discussion
Some places to find a good primer are
http://www.htmlgoodies.com
http://www.w3.org/TR/REC-html40/interact/scripts.html
Just look into the DOM and event handlers. That plays a large role in javascript. As far as advanced Javascript, I have no idea. I would like to know myself.
Mon Feb 27, 2006 Reply New Discussion
Tue Feb 28, 2006 Reply New Discussion
I'd say, read the EMCA-262 on Javascript, it's not really going to help you learn like a tutorial would but it's more like a reference and guideline, it's also the standards.
I know a lot of web languages, but you shouldn't avoid using javascript, as long as you apply it correctly, it can dramatically help speed things up. The term coined "AJAX" is definitely something to keep an eye on, as more and more web applications are built using it. Learning the DOM API also would be required.
There's some who don't use Javascript, but you'll find that in most situations it's neccessary to run, since web developers don't degrade nicely without it. So do try to learn how you can also get by without using Javascript, since that's important to do too.
Cheers,
MC
Tue Feb 28, 2006 Reply New Discussion
QUOTE
Does anyone have an address to download ebook about JS not ?just for me ! I also want to have a book to learn and understand to make the AJAX.
Mon Mar 6, 2006 Reply New Discussion
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.
Fri Mar 7, 2008 Reply New Discussion
For example, you can create something like:
CODE
<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:
CODE
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:
CODE
function mytest() {alert('mytest started');
var arg1 = 2;
var arg2 = 3;
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!
Sun Mar 30, 2008 Reply New Discussion
www.w3schools.com
It will teach you everything you need, begging at HTML, through JS, XML and others...
Strongly recommended..
Fri May 30, 2008 Reply New Discussion
I will share with you a great YouTube channel that demystifies the basics of JavaScript:
http://www.Youtube.Com/profile?user=thenewboston&view=videos&query=javascript
(Don't mind the wallpaper there...)
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.
Wed Apr 8, 2009 Reply New Discussion
JS and of course ajax
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.
Tutorials for jquery can be found here .
There are great documentation with a lot of examples.
Good Luck.
PS: imho
Thu Apr 23, 2009 Reply New Discussion
Thu May 17, 2012 Reply New Discussion
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.
Wed May 30, 2012 Reply New Discussion
Wed Jun 6, 2012 Reply New Discussion
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.
Wed Jun 6, 2012 Reply New Discussion
Ajax Shoutbox For IPB - Beta 2 Release (1)
|
(3) Formatting Alerts/confirm In Firefox 1.5.0.1
|
Index




