Current location: Hot Scripts Forums » General Web Coding » JavaScript » [SOLVED] Javascript is helpful?


[SOLVED] Javascript is helpful?

Reply
  #1 (permalink)  
Old 04-21-08, 05:43 PM
zoliky's Avatar
zoliky zoliky is offline
Aspiring Coder
 
Join Date: Jun 2006
Posts: 537
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] Javascript is helpful?

I know something about HTML and CSS. I want to learn a new client side language, for example JavaScript. But I don't know exactly, Javascript has a future?

Some company prefer to build web applications, for example Google Maps, Gmail, etc.. I think this applications don't use PHP, is true? I think is Ajax.

With good AJAX and Javascript knowledge is possible for me to develop web applications. For example a word processor or simple painting application on web ?.

I appreciate any idea. Thanks!
__________________
Twitter | Flickr
Reply With Quote
  #2 (permalink)  
Old 04-21-08, 07:28 PM
phpdoctor's Avatar
phpdoctor phpdoctor is offline
Code Guru
 
Join Date: Feb 2007
Location: New Zealand
Posts: 767
Thanks: 4
Thanked 2 Times in 2 Posts
mmm Javascript is good for stuff after the page has loaded...
If you want to develop web apps you should learn abit of PHP... then MySQL if you want databases.

If you want to create things that change the colors or text on a page when the page is load then JavaScript is the way to go (AJAX also).

What sort of web application are you wanting to create? then we can tell you what languages you should learn

Lex
__________________
01010000 01001000 01010000
Reply With Quote
  #3 (permalink)  
Old 04-22-08, 02:13 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
AJAX is based on Javascript and a server side language of your choice.

And yes, Javascript has a future. Nowadays more and more websites rely on Javascript, and more and more people have modern browsers that support it.

Besides, Javascript is easy if you have some programming background.


Go for it!
Reply With Quote
  #4 (permalink)  
Old 04-22-08, 06:20 AM
zoliky's Avatar
zoliky zoliky is offline
Aspiring Coder
 
Join Date: Jun 2006
Posts: 537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by phpdoctor View Post
mmm Javascript is good for stuff after the page has loaded...
If you want to develop web apps you should learn abit of PHP... then MySQL if you want databases.

If you want to create things that change the colors or text on a page when the page is load then JavaScript is the way to go (AJAX also).

What sort of web application are you wanting to create? then we can tell you what languages you should learn

Lex
I want to create a software for accounting, for example: store, view and modify data. Also I like interactive web pages, like Google Word processor on web. I want to create something similar, but a minimal text editor on web is enough for me as beginner. This is possible only with JavaScript, true?
__________________
Twitter | Flickr
Reply With Quote
  #5 (permalink)  
Old 04-22-08, 08:01 AM
Vicious's Avatar
Vicious Vicious is offline
Community VIP
 
Join Date: Jan 2007
Location: Belgium
Posts: 584
Thanks: 0
Thanked 0 Times in 0 Posts
yes, but as soon as you want to save data, you'll need a server side programming language too
__________________
Jack Bauer makes Chuck Norris cry
Reply With Quote
  #6 (permalink)  
Old 04-22-08, 03:15 PM
phpdoctor's Avatar
phpdoctor phpdoctor is offline
Code Guru
 
Join Date: Feb 2007
Location: New Zealand
Posts: 767
Thanks: 4
Thanked 2 Times in 2 Posts
Yes you can do alot with Javascript but when you want store data, create dynamic lists ect.... you need a database like MySQL and a server side programming language...

I think PHP is the way to go for beginners + you have us to ask questions

Lex
__________________
01010000 01001000 01010000
Reply With Quote
  #7 (permalink)  
Old 05-01-08, 10:09 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
You're on the right track when you say you will start out small. All too many people jump straight into coding some next Google-[appName]-clone and then get quickly get lost because they haven't understood basic principles.

A simple word processor would be a good idea to start with. Look up any existing code which kind of does what you want, and then try to adapt it before writing your own code from scratch. This will be much easier if you have previous experience from another programming language (preferably an object-oriented one as it's similar, but nowhere near exactly, how JavaScript is laid out as it's prototype-based).

If you don't have any programming experience however, there's no escape from reading as many tutorials and in-use code as you can find. That is IMHO the best way to learn. Example code usually only get you as far as understanding the syntax. To understand the meaning and purpose of the code, nothing beats experience in looking at code which actually serve a real purpose.

I've been coding JavaScript for over 10 years, but there is no way I could claim knowing everything about the language, or the environment it interacts with (DOM in browsers). Like any other programming language, JS has evolved, and in small steps it moves into areas where it hasn't been used much before. In the same way the people using it must evolve and learn as they go.

I often encounter new things when I look at other people's JS code. Little bits and pieces which collaborate in a way which at first seems very odd or maybe automagic. Then it's good to remember to always go back to the basics and recall what each operator and statement does, and try to keep the overall state of the application in your head as you read the code. Otherwise you might fail to understand even simple code examples.

Experience in reading code will be extremely useful when debugging code. And experience in debugging code will later teach you how to structure it for efficiency, readability and debugability.

Always keep references at hand. I need them almost every time I write any larger script, and you will most likely need them too. Everybody does now and then.
There's no point keeping every property and method of every available object in your head at all times. It will only clutter things up and draw fous from the purpose and flow of your code. Figure out how you want to structure your code, then look up the means to do it in references and previous code you've looked at , then alter your original idea to match the available options. Once you start writing, keep reevaluating the overall structure of your application to see if you can still add the features you need on the base foundation you have at the moment. If not, stop and redesign your foundation or your end result might be spaghetti code. It will probably do what you want, but under the surface it will be inconsistent with your original idea and the possibilities to extend it will be limited.

JavaScript certainly has a future, nothing comes close to doing what it does, not to mention it's a standard already used all over the place. It would be fatal for any browser to drop JS support.

There are some good links in my signature which I can recommend which cover these things in more detail. Also, remember that many general programming tips apply regardless of the language, so investigating other resources might be a good idea.

Hmm, this post got a bit longer than I intended... Oh well, enough ramblings on my part. Happy coding
__________________
[W3Schools - learn all about the standards.] [QuirksMode - Browser Quirks] [MS's Online Reference Docs] [DOM in Gecko.]
Please pay attention to stickys, announcements and forum rules, thank you.
Please also remember Code Wrappers and [SOLVED] Marking, this helps everyone.
Reply With Quote
  #8 (permalink)  
Old 05-03-08, 07:42 PM
zoliky's Avatar
zoliky zoliky is offline
Aspiring Coder
 
Join Date: Jun 2006
Posts: 537
Thanks: 0
Thanked 0 Times in 0 Posts
TwoD Thanks, I appreciate your suggestions and time!
I love to read things from people like you. Is more help than simple external link Your thread Is a good example how to explain things on forum.

Last edited by zoliky; 05-03-08 at 07:45 PM.
Reply With Quote
  #9 (permalink)  
Old 05-03-08, 08:08 PM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
Quote:
Originally Posted by zoliky View Post
Is more help than simple external link Your thread Is a good example how to explain things on forum.
In cases like this it might be, because different people have different experiences and suggestions on subjects like this.

But in regard to your other thread (where I just posted an external link), it doesn't really matter because it's just a programming syntax/logic you were unsure about. And there's no 12 paragraph text to type about.

I don't think you realized that I simply copied the examples from the external link and posted them here after you said you were waiting for a more detailed reply. Seems like you understood the syntax after I copied it, so I assume you didn't even bother clicking the link.

Forums are not meant to take you by the hand and click the links for you.

Last edited by Nico; 05-03-08 at 08:14 PM.
Reply With Quote
  #10 (permalink)  
Old 05-04-08, 05:36 AM
zoliky's Avatar
zoliky zoliky is offline
Aspiring Coder
 
Join Date: Jun 2006
Posts: 537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
I don't think you realized that I simply copied the examples from the external link and posted them here after you said you were waiting for a more detailed reply. Seems like you understood the syntax after I copied it, so I assume you didn't even bother clicking the link.
thanks, I realized But I think you don't realized: Im not interested in external links and I wait answer from "other" users on "increment" topic. Thanks for UnrealEd the problem is solved.

Last edited by zoliky; 05-04-08 at 05:44 AM.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add javascript after load? <?Wille?> JavaScript 14 03-31-06 04:52 AM
Mixing some HTML into some JavaScript thatonedude JavaScript 2 12-30-05 11:04 AM
javascript /forms /checkboxes /arrays ski_woman JavaScript 1 11-16-04 04:08 AM
Order of vbscript and javascript in ASP marlin ASP 0 06-03-04 03:01 PM
Reaaly stuck about javascript over frames muratisik JavaScript 1 12-14-03 11:58 AM


All times are GMT -5. The time now is 11:37 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.