W3C.US

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

Server-Side Javascript: Back With a Vengeance

E-mail Print PDF

 Last month was Javascript season in Europe, with two conferencesdedicated to the language that powers interactive web applications, and a third, which featured it heavily. If a common theme emerged, it was the buzz about Javascript leaping out of the browser to serve other domains, and the noise has only become louder in the aftermath.

Last Updated on Wednesday, 06 January 2010 06:39 Read more...
 

JSON in Java

E-mail Print PDF

JavaScript is a general purpose programming language that was introduced as the page scripting language for Netscape Navigator. It is widely believed to be a subset of Java, but it is not. It is a Scheme-like language with C-like syntax and soft objects. JavaScript was standardized in the ECMAScript Language Specification, Third Edition.

JSON is a subset of the object literal notation of JavaScript. Since JSON is a subset of JavaScript, it can be used in the language with no muss or fuss.

Last Updated on Tuesday, 01 December 2009 17:42 Read more...
 

Javascript:eval==evil?

E-mail Print PDF

In javascript, the eval function is a powerful and easy way to dynamically generate code. But it'll taken some problems to your webpage:

  • Improper use of eval opens up your code for injection attacks
  •  
  • Debugging can be more challenging (no line numbers, etc.)
  •  
  • eval'd code executes more slowly (no opportunity to compile/cache eval'd code)

And eval function is not always evil like above:

Read more...
 

Top 10 custom JavaScript functions of all time

E-mail Print PDF

If there was ever a universal common.js shared among the entire develosphere, you’d fine these ten (plus one bonus) functions. It would be the swiss army knife no developer would go into production without. They have no doubt been tested tried and true and have proven usefulness and helpfulness to all those who’ve used them. So without further ado, here are what I believe to the top ten greatest custom JavaScript functions in use today.

Upon further reading this article, it is suggested that for this article in particular the reader should use an alternate style with cleaner whitespace and larger margins. This is available by selecting Clean with Whitespace available on the side bar.

Read more...
 

Ten Javascript Tools Functions

E-mail Print PDF

Javascript frameworks have exploded on the scene over the last few years but they're no replacement for a good toolbox: those little snippets of code you seem to include in every single project. Here's my list of 10 essential Javascript tools everyone should have at their fingertips!

#0 - Trim.

Trim is one of the things that leave you scratching your head wondering why it was never included in the language to begin with. Thanks to prototyping however it's fairly easy to make up for the original oversight.

Read more...
 

Javascript & DOM (2)

E-mail Print PDF

There are 3 methods in javascript to get the element(s) in DOM: getElementById(), getElementsByName(), and getElementsByTagName().

If the element has been set a unique element id, we can use getElementById to access it:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ById</title>
<style type="text/css">
<!--
#docid{
height:400px;
width:400px;
background-color:#999;}
-->
</style>
</head>
<body><div id="docid" name="docname" onClick="bgcolor()"></div>
</body>
</html>
<script language="JavaScript" type="text/JavaScript">
<!--
function bgcolor(){
document.getElementById("docid").style.backgroundColor="#0000AA"
}
-->
</script>

 And also, we can use getElementsByName to access the element:

Read more...
 
  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  3 
  •  4 
  •  Next 
  •  End 
  • »


Page 1 of 4

Polls

How do you find w3c.us?
 

Who's Online

We have 1 guest 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.