Javascript Tutorial

R

Randy Webb

Turbo said the following on 9/25/2006 5:45 PM:
Here is small javascript that i aggregated using various sources from
web.
Please comment if you find it useful.
http://sandy007smarty.seo.iitm.ac.in/2006/09/26/javascript-tutorial/

Section 2 alone has 3 errors/bad information in it:

<quote>
<SCRIPT>
(JavaScript code goes in here)

</SCRIPT>
</quote>

The type attribute is mandatory so it should be:
<script type="text/javascript">

Next error:
Clicking the text link for the "demo" doesn't do what it is intended to
do. It only navigates, no alert message

MAJOR problem #3:

With regards to "older browsers that do not understand script" and the
commenting of code. That is the *worst* advice anyone reading a tutorial
could be given.

Numbers. Numbers can be any base you want in JS, as long as you know how
to deal with them.

There are more but I stopped reading about 1/3rd through the page.
 
D

Dr John Stockton

JRS: In article <[email protected]>, dated
Mon, 25 Sep 2006 18:44:32 remote, seen in
Randy Webb said:
Numbers. Numbers can be any base you want in JS, as long as you know how
to deal with them.

Only 2..36 are handled natively. Such as Base-85, which is used for
encoding in PostScript, would need more coding. It'll be difficult to
do much in bases over 2^26, and impossible over 2^53.

<URL:http://www.merlyn.demon.co.uk/js-maths.htm#Base> has a converter
form for 2..36, and another for a base of one plus as many "digits" as
you care to provide (I think; demo is default 64.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,781
Messages
2,569,615
Members
45,298
Latest member
ZenLeafCBDSupplement

Latest Threads

Top