Browsing archives for 'Javascript'

Script Type Or Language?

Javascript,Web Development 23 May 2007 0 Comments

I’ve been asking myself, what is the difference between this tag: <script language=”javascript”> and this tag: <script type=”text/javascript”> After doing some googling, I found this documentation. The “language” specifies the scripting language of the contents of this element. Its value is an identifier for the language, but since these identifiers are not standard, this attribute [...]

PHP Loves JSON

Javascript,PHP Programming 19 May 2007 1 Comment

JSON is a format for communication between the server-side (PHP, JSP, ASP, etc…) and the client-side (javascript). The magic of it is that the response from the server-side can be easily converted to an object via the use of the eval() function. eval() (can be “evil”) is a function that gives you the possibility to [...]

GoodBye alert()

AJAX,Javascript 9 May 2007 1 Comment

I have been working with Javascript and AJAX quite a bit recently. I always used alert() to debug something. At least to know that the script was able to call the method or something. This is annoying & traditional way. I’m lazy to use Venkman. After doing some Googling about Firebug functionality, I found console.log(). [...]

Var Or No Var

Javascript 4 May 2007 0 Comments

Over the past few weeks, I have been working with Dojo Toolkit. Dojo is a powerful javascript toolkit. In javascript, the var keyword is used to declare (or create) variables, but it is not required. What’s the difference between these two statements: a. var x =17; b. x = 17; Short answer. Statement (a) is [...]