Get Some

General => Technology & Hardware => Topic started by: Raydiense on February 09, 2015, 12:03:13 pm

Title: stuff you can do with javascript
Post by: Raydiense on February 09, 2015, 12:03:13 pm
to sum it up: school project, gotta find a list of stuff you can do with js and examples,



(and possibly do something with one of those)



getsome I need your help on this, googlz wont deliver.
Title: Re: stuff you can do with javascript
Post by: Apostrophe Spacemonkey on February 09, 2015, 12:16:11 pm
Write buggy websites.

Title: Re: stuff you can do with javascript
Post by: Xenolightning on February 09, 2015, 12:16:48 pm
What?

You want a list of "stuff" you can do with JavaScript?

1) Anything you want.


Sounds like you are trying to offload your Googlefu into the hands of GetSome.


http://bit.ly/16HZcHq (http://bit.ly/16HZcHq)
Title: Plus I hate javascript
Post by: Tiwaking! on February 09, 2015, 12:19:24 pm
Javascript can do lots of things. Two commonly used examples are:

Form Validation:
http://www.w3schools.com/js/js_validation.asp (http://www.w3schools.com/js/js_validation.asp)
Code: [Select]
function validateForm() {
    var x = document.forms["myForm"]["fname"].value;
    if (x == null || x == "") {
        alert("Name must be filled out");
        return false;
    }
}
And hiding page elements
Code: [Select]
<script type="text/javascript">
function showStuff(id) {
    document.getElementById(id).style.display = 'block';
}
</script>


<td class="post">

<a href="#" onclick="showStuff('answer1'); return false;">Edit</a>
<span id="answer1" style="display: none;">
<textarea rows="10" cols="115"></textarea>
</span>

Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum
</td>
The bigger kids in the forum can give  you more information as they use javascript for their jobs. I just teach this stuff for web design
Title: Creating an exam with Javascript
Post by: Tiwaking! on February 09, 2015, 12:24:08 pm
What?

You want a list of "stuff" you can do with JavaScript?

1) Anything you want.
Here is a question I gave to the students in their final test. It uses an example of Javascript
edit:adding image
(http://www.getsome.co.nz/forums/index.php?action=dlattach;topic=88491.0;attach=9011)
Two people failed to answer this question correctly. My boss told me off because it was "ambiguous"
http://tiwaking.hostzi.com/question45.html (http://tiwaking.hostzi.com/question45.html)
The reasoning for the question is in the spoiler. You should probably answer the question before you check the spoiler
This is a Turing Logic Question. Computers always fail to answer this question correctly.

In other words: Only a non-Human could possibly fail to answer this question correctly as it requires human based logic
Title: Re: stuff you can do with javascript
Post by: Xenolightning on February 09, 2015, 12:30:27 pm
Makes sense. I answered B.

I guess because it's a radio selection it makes it easier, however if it was a check list, I'd be stumped :P

Also, note JavaScript has nothing to do with a browser, it just happens that it's the most popular client side scripting language.
Title: Re: stuff you can do with javascript
Post by: Xsannz on February 09, 2015, 12:57:11 pm
we use javascript to drive integration engines data type manipulation and entire platform engines build on top of the JVM.

your imagination is really the endstop in any language, its whether or not that it is the most suitable productive way that often causes a stumbling block..
Title: Re: stuff you can do with javascript
Post by: Apostrophe Spacemonkey on February 09, 2015, 01:14:37 pm
I coded the Matrix in javascript.


Title: Re: stuff you can do with javascript
Post by: Lias on February 09, 2015, 01:29:45 pm
They really need to rename Java Script, because my brain always has a "kill murder destroy" moment at the word Java, and even thou Java and JS are totally different things, my hatred for Java is such that it takes me 30 seconds to calm down and my brain process the fact that we're not talking about Java.
Title: Re: stuff you can do with javascript
Post by: Craigor on February 09, 2015, 01:31:27 pm
You can make a snow effect on your website at Christmas time
and then all your members can complain at you about it
so you can not do it this year
and have people complain at you that you didn't do it and how un-festive you are...
Title: Javascript Snow
Post by: Tiwaking! on February 09, 2015, 01:35:13 pm
You can make a snow effect on your website at Christmas time
and then all your members can complain at you about it
so you can not do it this year
and have people complain at you that you didn't do it and how un-festive you are...
Most annoying web pages put the snow effect in them during the Christmas holidays so it sets the standard level of annoyance for the season.

It is a Tyranny of the Masses. You cant win
Title: Re: stuff you can do with javascript
Post by: Bell on February 09, 2015, 01:50:59 pm
Ajax is the best thing about JS, use your googlefu and write about the uses of AJAX
Title: Re: stuff you can do with javascript
Post by: Xenolightning on February 09, 2015, 01:52:54 pm
You can make a snow effect on your website at Christmas time
and then all your members can complain at you about it
so you can not do it this year
and have people complain at you that you didn't do it and how un-festive you are...
It's doesn't snow in NZ (at Christmas). Next time make it a sandy beach.
Title: Re: stuff you can do with javascript
Post by: Apostrophe Spacemonkey on February 09, 2015, 03:02:20 pm
Make UV rays shine from the forums, and give everyone sunburn.

Title: Re: stuff you can do with javascript
Post by: Lias on February 09, 2015, 05:06:46 pm
It's doesn't snow in NZ (at Christmas). Next time make it a sandy beach.

Goes with all the sandy vaginas people will no doubt develop because of it.
Title: Re: stuff you can do with javascript
Post by: Xsannz on February 09, 2015, 07:51:02 pm
Make UV rays shine from the forums, and give everyone sunburn.

i thought we had done that with the high contrast theme :P

just turn your monitor brightness up