Jul 26, 2008

Learning Javascript. - -->What I know and a question<--

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > Java, Java Servlets, Java Script, & JSP

free web hosting

Learning Javascript. - -->What I know and a question<--

Mike
How hard is it to fully learn javascript? People say it is easy, however, it looks pretty complicated! What do I know, you ask? I know how to make a button (that I describe in another post) so that when you click it, it generates something at random. I have the script for it here:

<script language="text/javascript">

var quotes = [

"Insert what you want to be selected at random", <-- Separated by a COMMA, each QUOTE in QUOTATION MARKS.
|
|
|
V
As many quotes as you want.

];

function getQuote()
{
var qs = document.getElementById("quote");
var quote = quotes

quotes[Math.floor(Math.random() * quotes.length)];

alert(quote);
}
</script>

<tr>
<td bgcolor="Insert Colorname/hexadecimal value, here" align="center:>
<td>Describe button here.</td>
</font>
</tr>

<input onclick=getQuote() type="button" value="Button name goes here">
.
.
.
.
.
Original script copyright by ROADDHOGG

 

 

 


Reply

Mike
Ah, well, sadly that is the only JavaScript that I know. You guys don't really have to reply to this if you don't want to. Anyways, what's the difference between Java and JavaScript? I know that JavaScript is a scripting language but what is Java? Is that some kind of thing that runs those flash animations- does it have anything to do with animations?

Reply

--Stealth--
Hey lol you know more then me. I realyl like C++ and Assembly. But i never payed attention to Java Script. I agree with you All my friends said it was so easy. lol i dont think so. I think its pretty hard. At least it looks hard. But as does all other languages. Right now Me and ORION are trying to Learn Assembly. it looks so hard but you get the hang of the basics and it kinda starts to feed in .. so im hoping if i do that with java i can find my way through it so.. lol yeah but it does look hard

Reply

rovertos
if you want to learn Javascript and you already know HTML and the basics about programming (I mean loops and arrays and variables and stuff like that...) then what you have to do next is study the Document Object Model. The DOM is an object model that allows you to access the elements of an HTML page through Javascript. E.g. if you want to change an image named myImage (<img id='myImage'....>) then you could access it like that: document.myImage.src='.......' Note that there are some differences between the DOM in Explorer and Netscape.

Reply

jordanliuhao
The effort spending to fully understand java script depends on your understanding of DHTML, DOM, Java concept.

I suggest you reading the book

"JavaScript: The Definitive Guide" published by O'Reilly
This is all you need to learn javascript.

If you'd like to know some tricks for coding, then you can start
"Javascript & DHMTL Cookbook" published by O'Reilly

There's no good book to learn the practical DOM. It is a very important part for you to code javascript. What I'm doing is read the DHTML reference of MSDN from Microsoft. When coding, keep it open is important.

QUOTE(Mike @ Nov 17 2004, 05:47 PM)
How hard is it to fully learn javascript?  People say it is easy, however, it looks pretty complicated!  What do I know, you ask?  I know how to make a button (that I describe in another post) so that when you click it, it generates something at random.  I have the script for it here:

<script language="text/javascript">

var quotes = [

"Insert what you want to be selected at random", <-- Separated by a COMMA, each QUOTE in QUOTATION MARKS.
|
|
|
V
As many quotes as you want.

];

function getQuote()
{
var qs = document.getElementById("quote");
var quote = quotes

quotes[Math.floor(Math.random() * quotes.length)];

alert(quote);
}
</script>

<tr>
<td bgcolor="Insert Colorname/hexadecimal value, here" align="center:>
<td>Describe button here.</td>
</font>
</tr>

<input onclick=getQuote() type="button" value="Button name goes here">
.
.
.
.
.
Original script copyright by ROADDHOGG
*

 

 

 


Reply

beeseven
QUOTE(Mike)
I know that JavaScript is a scripting language but what is Java?  Is that some kind of thing that runs those flash animations- does it have anything to do with animations?
Flash animations are done in Flash. Java can do a lot of things, it's a general programming language. A lot of people make games, but you can make a bunch of stuff with it.

Reply

andrewsmithy
It's not really that hard to learn JavaScript. Please check out my new tutorial on how to learn JavaScript. Beginning Javascript Tutorial It is a basic beginning to JavaScript, and it has several links to other websites that have good JavaScript code.

Hope this helps!

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. learning javascript how long - 178.13 hr back. (1)
Similar Topics

Keywords : learning, javascript

  1. Lesser Known Useful Javascript Features
    (2)
  2. Adjusting Rows/cols Of Frames In Frameset Using Javascript Is Not Working In Firefox 3 Is Not Working
    (4)
    I am not able to adjust frames length/width in a frameset using java script functions I am using
    firefox 3. In below code changerows is not working for me. Where as same is working in IE6.
    Please help me in resolving this issue. Note: here frameset1 is the name given to the FRAMESET.
    CODE function changeRows() { parent.frameset1.rows="30%,70%" }function
    restoreRows() { parent.frameset1.rows="50%,50%" } ....
  3. Learning Php
    (4)
    hey People ... i m really interested in Learning PHP Programming .. so plzz cud u suggest me from
    wher should i learn PHP .. There r no Institutes that teach PHP in India ! .. So could u all
    suggest me some real good stuff from wher i cud learn PHP .. As u trapsters r good in PHP ..
    !! .. Thnxzzz `` ! ....
  4. Link Between Depression And Learning Disabilities?
    Can depression cause learning disabilities? Do learning disabilities (3)
    I have been diagnosed with clinical depression. I have found at times that it is hard to
    concentrate (more often than not). I also have a hard time remembering things. I know that these
    are typical symptoms of depression but am wondering if depression itself can be considered a
    learning disability due to it's symptoms and side effects. I have done a little of research on
    the subject and see many references to people with learning disabilities developing depression
    because of having learning disabilities. Does anyone know of a good article, or maybe a website
    with....
  5. Make A Moderately-secure Password System Using Javascript
    using file redirection to hide the password. (4)
    JavaScript is very handy at making forms, allowing for much more customization and easier ways to
    send data. So making Login forms using JavaScript may seem to many to be a very feasable idea.
    However, JavaScript is very bad at protecting Passwords, as since the passwords are not encypted and
    the whole JavaScript code is in the page, a person could just view the Page Source and find out
    everything. Even if you use an external JavaScript, it would still be poor as the file name for the
    external JavaScript would still be revealed. But I have an answer! There is a rela....
  6. Java Vs Javascript
    (11)
    I thought they were completely different things. Surely javascript should be seperated from the rest....
  7. Document.write & Noscript Questions (javascript)
    (1)
    I am trying to use javascript to include a stylesheet depending on the user's resolution. The
    HTML CODE <head>    <meta http-equiv="Content-Type" content="text/html;
    <?php echo _ISO; ?>" />    <?php if ($my->id) {
    initEditor(); } ?>    <?php mosShowHead(); ?>   
    <noscript><link rel="stylesheet" type="text/css"
    href="http://www.highimpactart.org/templates/_HighImpactArt_/1024/1024.css"
    /></noscript>    <script type="....
  8. Do You Close The Javascript?
    about browser's secruity (3)
    hi folks i'm learning that the javascript and cookies sometimes leak your real ip and actions on
    surf , some expert advice me close javascript ,stop the function of my opera and IE. so i did.then
    everytime i log into a forum i need opend it manually so i can log in. /sad.gif"
    style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> and lots of website's using
    javascript as a necessary then i opened it manually..oh my life got boring. /dry.gif"
    style="vertical-align:middle" emoid=" how your guys doing with that? is it really necessary or
    not? bt....
  9. Simple Javascript And Password System
    How to protect your pages with password (6)
    The quickest way to get a password protection system up and running is to use a Prompt box in
    JavaScript that has a title like "Enter your Email Address". Only you and the relevant users know
    what the password should be, could even be one each, that can be sorted out at the next page then
    pass the "input" directly through the url by changing the .href, like
    http://www.iSource.net.nz/users/?leTmeIn= The page that then processes this should also check for
    the referring page, and three fails from an IP if you like the php (the next page): CODE
    <?php // processdo....
  10. Flash And Javascript Interaction
    swfobject js questions (1)
    I don't know if anyone on here is familiar with this script. You can check it out here .
    Basically it's a script that is supposed to give you javascript control over a flash object. I
    am using it for a flv player. My question is this. I would like to display the current file's
    title in a span element on the page, but the function described to gather the information for the
    current file doesn't seem to work for me. The function, as outlined on on this page looks
    like this: CODE function getUpdate(typ,pr1,pr2,swf) {   if(typ == &#....
  11. Css- Review With Tutorial
    If u r learning CSS, learn it with me. (2)
    Are u still using html ? My friends, Html is not very effective tool for website page making. Iam
    webdeveloper. When I was new, I spend the whole day in website adjusting layouts, putting table tags
    and blank spacer images and large text images with exact font sizes. When a client suddenly changed
    his decision on the layout I change lot of webpages. It was really painful. If you decide to modify
    design layout of your pages there will also editing and reediting . Now I say bye-bye to html
    because iam using cascading style sheets (CSS). CSS is solution of all above pr....
  12. Best Sites For Learning Php-mysql
    (4)
    Hi I was reminded of this earlier by a post in a topic, meant to post it but forgot and the topic on
    php books reminded me. Well anyway there is tyhschools for learning php (unless someone else knows
    a better 1) but I wan't to know what is the best site for using php with mysql (using
    phpmyadmin) also whats the difference between postgresql and mysql? though I must admit the
    postgresql version of phpmyadmin whatever it's called looks better (visually)!....
  13. What Are The Best Books For Learning Php
    Please suggest a book (5)
    I would love some recommendations on what books are most helpful for learning PHP. I know XHTML,
    CSS, some Javascript. I do know some PHP as well. Also can someone also recommend some books on
    Advanced PHP, that actually shows how to create a fully functional and somewhat complex
    website/application. (Like RailSpace does for Ruby on Rails)....
  14. Learning Chinese?
    Would learning chinese benefit my career? (5)
    Hi, I am asking this question because I would like to hear some of your opinions regarding learning
    chinese as a benefit in my career. I have been thinking about it ever since I learned that the
    company called foxconn is going to open a facility here in my city, and the so called "headhunters"
    are searching for people who speak english and chinese. This is going to happen a couple of months
    from now and there is no way I can benefit from this opportunity yet as I dont think I will be able
    to speak chinese a couple of months from now.... The thing is that I speak spanish....
  15. Capturing Username Of Computer
    using javascript, is it possible? (3)
    I wondering if it is possible to try and make a java script to get the computer username and log it?
    /huh.gif" style="vertical-align:middle" emoid=":huh:" border="0" alt="huh.gif" /> edit Topic
    title ....
  16. Learning To Cook Moroccan Food
    Coming from America to Morocco (1)
    Moroccan food is different then typical american food. I am trying to learn how to make cousous.
    There is an istant mix that can be bought at Walmart. Couscous can be made is 15 minutes just add
    water and your done. Next add vegetables and meat and the meal is ready to eat. The taste is not
    the same as found in Morocco. I dont know if cousous can be made in the states as it is in Morocco,
    I cant find it. I can only find the instant packages.....
  17. Can I Make Dynamic Menu In Php
    is it posible to make dynamic menu in php without javascript (7)
    As there are many java script by which we can have event based interaction like,message on mouse
    over etc,that we can create dynamic menu in javascripts to make navigation bar ,but is it possible
    in php to have this acomplished without javascripts,i am new to php,is it possible?. Thanks....
  18. Learn Html Quick And Easy
    HTML, javascript, and CSS (14)
    well eversince i got interested in web desighn i've looked for tutorials but they where not that
    helpfull and uderstanderble but there where two web sites that i liked 1. my favorite one was
    htmldog it had tutorials on HTML, CSS, and a little bit of javascript. they where very
    comprehenseve . and i read through all of them, understoode them, in about less than a week. also
    has full references for HTML, and CSS tags. 2.since html dog did not provide realy good javascript
    tutorial i looked to w3school for that while it wasnt very understandable too me, maybe it....
  19. Web Page Tree Menu: Style Sheet - Javascript
    (5)
    I got bored and lazy working on the things that I should do... so I end up creating this tree menu
    for anyone to use if they find it interesting. Well the idea is to create a tree menu in a webage.
    Instead of those linear menu it would be better to add more dynamic to your webpage with a tree
    menu. Others use image rollovers. As expecte the tree menu should behave like the one in Windows
    Explorer. When you click a node depending on its state it will pull down or pull up its chlid nodes.
    I have achieved by exploiting one style sheet property, display . Basically this s....
  20. Simple Scripts In Html And Javascript
    Things like BackgroundColorChanger and so (7)
    like in the topic, here is a description how to change the Backgroundcolor "On The Fly", by klicking
    on a button or radio-box first, we ned the html-and body-tags, create a new html-file on your
    desktop and write the following: QUOTE <script language = "JAVASCRIPT">
    browser interpretation: html - tag means "hey, browser, here comes HTML" in the body-tag you define
    the looking of your site. you can add things like "bgcolor" for the background, "text" for the
    textcolor and link / alink / hlink / vlink to define the linkcolor ( ) the scripttag i....
  21. Hiding <div> Boxes With Javascript
    Javascript Help #1 (8)
    This is my first help post in this Java/JavaScript section. Can someone write/find me a piece of
    code that will hide boxes? Preferred stuff: There is a bar that has the subtitle of the box
    contents. A button on the right side of the bar shows and hides the div box. Contents are in a box
    with a border and slides in and out of the bar smoothly and relatively quickly. Box MUST be
    customizable using CSS internal/external stylesheets . Any help would be appreciated. All codes
    will be tested and best code be selected.....
  22. Javascript : No Right Click Script !@
    This script will allow you to protect your source coad ! (12)
    This script will help you to protect your source code Add this to Section of your site
    ! HTML <script language=JavaScript> var message="Function Disabled!";
    /////////////////////////////////// function clickIE4(){ if
    (event.button==2){ alert(message); return false; } } function
    clickNS4(e){ if
    (document.layers||document.getElementById&&!document.all){ if
    (e.which==2||e.which==3){ alert(message); return false; } } }
    if (docume....
  23. Help Me In Learning Ms Dos !
    (11)
    Hi buddies here is a topic where I want help from you. Infact , buddies I am using computer for
    allmost last 3 years . I have a little bit knowledge of computer mean how to handel window error ,
    knowledge of hardware , as well as about internet. The only thing where I want to learn some thing
    is MS DOS . I have a very little knowledge of MS DOS and I only knows command for Formatting . I
    wana to learn allmost the basics of MS DOS. Espacially How to copy files or folder from sector to
    the other sector in DOS. How to delete files and folders in DOS. How to rename files and....
  24. Detailed C Beginner Tut
    basis for learning any application programming language (2)
    QUOTE The best way to learn programming is to dive right in and start writing real programs.
    This way, concepts which would otherwise seem abstract make sense, and the positive feedback you get
    from getting even a small program to work gives you a great incentive to improve it or write the
    next one. Diving in with ``real'' programs right away has another advantage, if
    only pragmatic: if you're using a conventional compiler, you can't run a fragment of a
    program and see what it does; nothing will run until you have a complete (if tiny or trivi....
  25. Adding Rows & Columns In Html Table Using Javascript
    (1)
    I'm trying to create a website with a form that collects some user information to store in MySQL
    database. However, I've a problem when I want to dynamically add new rows and columns in the
    HTML table so that the user can add more information in the dynamically added textboxes. Here's
    what I have: CODE                  <table border="0" width="90%"
    align="center" id="itemsTable">                   <tr>
                       <td width="20%">                     Quantity                   
    <....
  26. One Click Copy And Paste To Clipboard
    in simple Javascript (5)
    I've been search the web for few weeks to see if Java can do one click copy and paste function
    to the clipboard and then I can just Ctrl-V the copied "texts." I initially got this idea when I
    began to approve hosting application. Instead of writing the same message over and over again, I
    decided to make me a page where I can simply copy the code to appropriate answers. And seems like my
    laziness is the mother of inventions /laugh.gif' border='0' style='vertical-align:middle'
    alt='laugh.gif' /> Instead of doing Ctrl-A, Ctrl-C then Ctrl-V to the post board I started....
  27. Javascript Close Window
    Javascript close window (12)
    Hi does anyone have a code to close the browser window. This code needs to be used to close an
    actual full sized window, not a pop-up window.....
  28. Css And Javascript Combined For Dynamic Layout
    use of different CSS files at same site (9)
    This tutorial is meant for people that are dealing with problems while coding their site at 100% of
    width. Important notice: Some people has JavaScript disabled, so they will not be able to load CSS
    file (take this in account when creating your website). How this script works. In the HEAD of your
    HTML document will apply this command, so variable.js file will be load at start: CODE
    <script type="text/javascript" src="variable.js"></script> In
    browser JavaScript file variable.js is loaded. This Javascript file consist of this para....
  29. Learning Mysql
    pls guide (3)
    hello out there, i have already looked through on this tutorial forum.. and still can find any
    topics which related to MySql basic.. i wanna learn about how to create MySql table and its
    concept!! just basic.. i've no knowledge on MySql before nor any other database server
    software.. but i do have littol konwledge on programming,scripting,html basic in concept.. pls dun
    gave me so many links so as i can be blur for none about how to get start!! /laugh.gif'
    border='0' style='vertical-align:middle' alt='laugh.gif' /> i can thou find from Googles sear....
  30. Javascript Slideshow Tutorial
    How to make a slideshow in JavaScript (3)
    JavaScript Slideshow Tutorial I'm going to show you how to make a impressive JavaScript
    slideshow. First, you're probably asking: why would I want to make a slideshow in JavaScript?
    There are a number of reasons. First, you don't have to build a new HTML page for each picture.
    Secondly, the page will load much faster because the of the compactness of the page. Ok let's
    get started with this example. First we'll add a <script> tag in the of our HTML
    document. In that script tag we will build the following: CODE      first = 1;      la....

    1. Looking for learning, javascript

Searching Video's for learning, javascript
Similar
Lesser Known
Useful
Javascript
Features
Adjusting
Rows/cols Of
Frames In
Frameset
Using
Javascript
Is Not
Working In
Firefox 3 Is
Not Working
Learning Php
Link Between
Depression
And Learning
Disabilities
? - Can
depression
cause
learning
disabilities
? Do
learning
disabilities
Make A
Moderately-s
ecure
Password
System Using
Javascript -
using file
redirection
to hide the
password.
Java Vs
Javascript
Document.wri
te &
Noscript
Questions
(javascript)
Do You Close
The
Javascript?
- about
browser'
s secruity
Simple
Javascript
And Password
System - How
to protect
your pages
with
password
Flash And
Javascript
Interaction
- swfobject
js questions
Css- Review
With
Tutorial -
If u r
learning
CSS, learn
it with me.
Best Sites
For Learning
Php-mysql
What Are The
Best Books
For Learning
Php - Please
suggest a
book
Learning
Chinese? -
Would
learning
chinese
benefit my
career?
Capturing
Username Of
Computer -
using
javascript,
is it
possible?
Learning To
Cook
Moroccan
Food -
Coming from
America to
Morocco
Can I Make
Dynamic Menu
In Php - is
it posible
to make
dynamic menu
in php
without
javascript
Learn Html
Quick And
Easy - HTML,
javascript,
and CSS
Web Page
Tree Menu:
Style Sheet
- Javascript
Simple
Scripts In
Html And
Javascript -
Things like
BackgroundCo
lorChanger
and so
Hiding
<div>
Boxes With
Javascript -
Javascript
Help #1
Javascript :
No Right
Click Script
!@ -
This script
will allow
you to
protect your
source coad
!
Help Me In
Learning Ms
Dos !
Detailed C
Beginner Tut
- basis for
learning any
application
programming
language
Adding Rows
&
Columns In
Html Table
Using
Javascript
One Click
Copy And
Paste To
Clipboard -
in simple
Javascript
Javascript
Close Window
- Javascript
close window
Css And
Javascript
Combined For
Dynamic
Layout - use
of different
CSS files at
same site
Learning
Mysql - pls
guide
Javascript
Slideshow
Tutorial -
How to make
a slideshow
in
JavaScript
advertisement



Learning Javascript. - -->What I know and a question<--



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE