W3C.US

  • Increase font size
  • Default font size
  • Decrease font size
Welcome to the W3C.us

Blank char and semicolon

E-mail Print PDF

Some characters in javascript are treated as blank char, including space(0x20), table(0x09), enter(0x0D,0x0A).

Blank char is used to make the code for reading and understanding. If insert a blank char into a token(keyword, variable, number), then the token is seperated to 2 parts, not one token, sometimes it causes an error.

Semicolon is used to end one sentence, like:

a = 1;

b = 2;

 

Last Updated on Monday, 04 May 2009 22:43 Read more...
 

Javascript's Case Sensitivity

E-mail Print PDF

Javascript is a case-sensitive language.

The keyword in javascript must be small letters, "if","switch","case","catch", cannot be written as "If","Switch","Case","Catch".

And when you define and use variable name, function name in javascript, their case must be consistent.

Read more...
 

Javascript's tetris

E-mail Print PDF

There are many javascript's tetris pages on the web, you can start the game on a single browser page. Here is a simply javascript tetris, the comment is written for understanding, and you can change the code to build a customized tetris for yourself.

 

Last Updated on Monday, 04 May 2009 19:04 Read more...
 

Javascript's charset

E-mail Print PDF

The old version javascript may support limited charset, such as old US ASCII or Western European charset. But experienced so many years of development, javascript now can support a wide variety of world languages and their characters.

When you are working with non-European charsets, you may need to make changes to the way your page references external JavaScript(.js) files. Ideally, these .js files should saved in the UTF-8 charset, then they can be used in multi-languages environments.

Last Updated on Thursday, 30 April 2009 04:15 Read more...
 

Run input javascript code in new browser

E-mail Print PDF

We have noticed that some javascript technological site provided the dynamical js running environment. The code is shown in a textarea, and you can click the RUN button to run it. And also you can change the code to test it.

Just like below(runinput.html):

Last Updated on Saturday, 02 May 2009 02:12 Read more...
 

Fetch pagerank in actionscript

E-mail Print PDF

There are many other languages' codes for the programmer to get the url's google pagerank(Google PR). But because of the flashplayer security policy limitation  actionscript(swf) can not get google pagerank on not google domain.

If you want to get a url’s google pagerank in an AIR project, this example may be helpful for you.

Last Updated on Saturday, 02 May 2009 01:36 Read more...
 


Page 3 of 4

Polls

How do you find w3c.us?
 

Who's Online

We have 3 guests online

Advertisement

Featured Links:
Joomla!
Joomla! The most popular and widely used Open Source CMS Project in the world.
JoomlaCode
JoomlaCode, development and distribution made easy.
Joomla! Extensions
Joomla! Components, Modules, Plugins and Languages by the bucket load.
Joomla! Shop
For all your Joomla! merchandise.