Browse by Tags

All Tags » JavaScript (RSS)

How Do I Serialize / Deserialize Tidbits...

How do I serialize / deserialize between (XML Schema) XSD:Duration from and to .NET TimeSpan? Apparently, there is no obvious way to do this like you could when dealing with DateTime object conversion to and from XSD:DateTime. With DateTime you can do...
Posted by Jimmy Chandra | with no comments
Filed under: , ,

JavaScript URL Bar Injection

This is more of a reminder for myself since I did something like this before but forgot how to do it again. OK, a single line injection is easy. For example: entering java script:alert("Hello, World!"); into the URL bar will result you a dialog...
Posted by Jimmy Chandra | 1 comment(s)
Filed under:

Playing around with JavaScript global object

I am not sure if this is of any use or not. While playing around with trying to find a more elegant syntax for my LINQ-like querying code, I accidentally bumped into this topic. Say... I want to be able to write something like: var peoples = [ ... ];...
Posted by Jimmy Chandra | with no comments
Filed under:

Javascript LINQ-like Querying?

Just coding for coding sake, I decided to try implement a LINQ-like query in JavaScript. And the result is as follow: /* * * Javascript LINQ-like query proof of concept * Jimmy Chandra - 16 July 2007 */ /* * Quicksort implementation for JavaScript Array...
Posted by Jimmy Chandra | 3 comment(s)
Filed under:

ECMAScript 4 Draft

It looks like the new JavaScript / ECMAScript is getting a lot of upgrade. Can't say it's not OO anymore, hehe. Just when you think you know it, they change it on you :). Take a look at the spec it here . Powered by ScribeFire . Share this post: | | ...
Posted by Jimmy Chandra | with no comments
Filed under:

Going OOP with JavaScript

I've just quickly scanned an article in MSDN May 2007 called Create Advanced Web Applications With Object-Oriented Techniques . I already know most of the techniques that were included in the article, but I thought it was very well written and very...
Posted by Jimmy Chandra | with no comments
Filed under:

Passing complex URL as a querystring in Javascript Popup using HREF tag

A colleague of mine was having a problem with this issue yesterday. If you are passing a url with its own complex querystring as a querystring in an HREF tag to a popup (window.open / showModalDialog, etc.), remember to do this: <a href=”#”...
Posted by Jimmy Chandra | with no comments
Filed under:

AJAX?

Perhaps some of us already know what it is and some might still be scratching their head and thinking why is this guy talking about something that sounds like something that I use to clean my floor and toilet with. For those who does not know what AJAX...
Posted by Jimmy Chandra | 2 comment(s)
Filed under: ,