Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Learnign JavaScript

JavaScript

  • Please log in to reply
47 replies to this topic

#1 chili5

chili5

    CC Mentor

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3038 posts
  • Programming Language:Java, C#, PHP, JavaScript, Ruby, Transact-SQL
  • Learning:C, Java, C++, C#, PHP, JavaScript, Ruby, Transact-SQL, Assembly, Scheme, Haskell, Others

Posted 29 May 2008 - 02:30 PM

I just got somewhat far into a book and I was wondering some ideas that I could practice what I learned.

I got to:

  • Loops
  • Variable Math
  • Form elements
  • Switch cases
  • Random numbers
  • If - else - else if - switch case

Thanks for any ideas. :D
  • 0

#2 Guest_Jordan_*

Guest_Jordan_*
  • Guest

Posted 29 May 2008 - 04:21 PM

Here are some ideas

  • Random image selector (use an array to hold the image URL)
  • Simple Calculator
  • Temperature converter



Posted via CodeCall Mobile
  • 0

#3 chili5

chili5

    CC Mentor

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3038 posts
  • Programming Language:Java, C#, PHP, JavaScript, Ruby, Transact-SQL
  • Learning:C, Java, C++, C#, PHP, JavaScript, Ruby, Transact-SQL, Assembly, Scheme, Haskell, Others

Posted 30 May 2008 - 03:25 AM

Thanks Jordan,

I got the random selector done, now I'm working on the calculator. :D

Thanks a lot.
  • 0

#4 Xav

Xav

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 8356 posts

Posted 30 May 2008 - 12:48 PM

You could try Spartan Ajax to create an online application.
  • 0
If you enjoy reading this discussion and are thinking about commenting, why not click here to register and start participating in under a minute?

#5 chili5

chili5

    CC Mentor

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3038 posts
  • Programming Language:Java, C#, PHP, JavaScript, Ruby, Transact-SQL
  • Learning:C, Java, C++, C#, PHP, JavaScript, Ruby, Transact-SQL, Assembly, Scheme, Haskell, Others

Posted 30 May 2008 - 12:55 PM

I'm just going to stick with some simple things, I'm not ready for Ajax yet.
  • 0

#6 Xav

Xav

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 8356 posts

Posted 31 May 2008 - 08:34 AM

OK. There's nothing new to learn, only a new set of concepts - Home.
  • 0
If you enjoy reading this discussion and are thinking about commenting, why not click here to register and start participating in under a minute?

#7 chili5

chili5

    CC Mentor

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3038 posts
  • Programming Language:Java, C#, PHP, JavaScript, Ruby, Transact-SQL
  • Learning:C, Java, C++, C#, PHP, JavaScript, Ruby, Transact-SQL, Assembly, Scheme, Haskell, Others

Posted 31 May 2008 - 10:16 AM

Ok i check it out. :D
  • 0

#8 Xav

Xav

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 8356 posts

Posted 31 May 2008 - 10:50 AM

Yeah - I heard about it from a UK magazine. It's no new language syntax or anything - it's simply a way of using JavaScript to build websites. You just have the shell in HTML, which loads two scripts that you create. One contains the constructors for the controls on the page, and the other decided which one to use. Once it's set up I think it might be useful, but I've never personally actually tried it. Maybe you could give it a go.
  • 0
If you enjoy reading this discussion and are thinking about commenting, why not click here to register and start participating in under a minute?

#9 chili5

chili5

    CC Mentor

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3038 posts
  • Programming Language:Java, C#, PHP, JavaScript, Ruby, Transact-SQL
  • Learning:C, Java, C++, C#, PHP, JavaScript, Ruby, Transact-SQL, Assembly, Scheme, Haskell, Others

Posted 31 May 2008 - 10:54 AM

Yeah i think it would be useful, I'll find some articles to find out how to get started but yeah I think it will be useful to learn. I tried a little of it and figured out how to get buttons to do things so essentially I could convert all my code to spartan and it wouldn't be that hard.

:D
  • 0

#10 Xav

Xav

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 8356 posts

Posted 31 May 2008 - 10:56 AM

Great to hear you're getting use out of it. :)
It's not so good for pages laden with text, images etc, but if you're writing a page that's more like a desktop application within the browser, Spartan Ajax sounds like a good idea.
  • 0
If you enjoy reading this discussion and are thinking about commenting, why not click here to register and start participating in under a minute?

#11 chili5

chili5

    CC Mentor

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3038 posts
  • Programming Language:Java, C#, PHP, JavaScript, Ruby, Transact-SQL
  • Learning:C, Java, C++, C#, PHP, JavaScript, Ruby, Transact-SQL, Assembly, Scheme, Haskell, Others

Posted 31 May 2008 - 11:06 AM

Yeah i was thinking it's not so good with web pages that use a lot of images and text but it would be good for making a application sort of gmail i suppose.
  • 0

#12 Xav

Xav

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 8356 posts

Posted 31 May 2008 - 11:20 AM

I agree - I still can't believe how Gmail (or Google Mail, as it's known as in the UK) is constructed out of JavaScript. It shows how much JS can really do, with the right programmers...
  • 0
If you enjoy reading this discussion and are thinking about commenting, why not click here to register and start participating in under a minute?





Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download