Archives for Web Development

JSON native object

Why did it take me so long to find the docs on the native JSON object? Too many blog posts on other implementations of JSON and JSONP with third-party libraries (I still love you, jQuery). https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/JSON IE 7 doesn’t support it… I’ll have to check my analytics and see if that even matters anymore…

Convert number to binary in Javascript

Why did it take me so long to find this? Probably because I didn’t use radix in my Google search. Of course. Thanks to “Philip M” for the clue and thanks to W3Schools.com for the reference (see here for more on the unary “+” operator to convert a string to number). var str = ’37′; [...]

Adding CSS support to HTML5 in IE6, IE7 & IE8

This is another diamond in the rough I found today. We’re all moving to HTML5, but IE 6-8 has to make it difficult (what’s different, right?). Well, you can get IE to cooperate on a basic level with this little trick. See John Resig’s examples for simple instructions on how to use it. Basically, IE [...]

Pass (isolate) a value, not variable, in Javascript

I found an article detailing some “oddities” in Javascript today. The callback argument in the replace method was new for me, though I feel that there must be some eccentric behavior that pushed this “secret” into the shadows. Number 7 proved the most beneficial for me. My attempts to pass the current value of a [...]

JSON content type in classic ASP

I spent a considerable portion of my morning yesterday trying to get my classic ASP to serve up JSON to an application I’m working on. Finally, I found a subtle difference in the “Response.ContentType” property and “Response.AddHeader()” method (I code in JavaScript, btw). I set “Response.ContentType = ‘application/json’” and it always returned a nicely-formatted JSON [...]

Detecting whether a query string parameter is set in classic ASP

In PHP, there’s a fancy little function called “isset()” that allows you to test whether a variable has been set (as opposed to being instantiated or declared).  Classic ASP doesn’t, and I have to relearn how to do it every time.  I code ASP JavaScript, so here’s what I found: var q = Request.QueryString(‘query’) + [...]

Tiled Background designer

Very cool background designer: http://bgpatterns.com/

ADODB query from linked table with conditions

I spent (too many) hours today trying to figure out why I couldn’t get a query to run through ADODB from an HTA I’m working on.  The query pulls from a linked table which links to a tab-delimited text file, and the query had a WHERE condition as such: WHERE field1 LIKE “00*” Apparently, I [...]

Web Design Helpers

I just ran into two nifty web design helpers: ProCSSor – ever edited your CSS in Dreamweaver, Notepad, Notepad 2, in-browser editor and some other program at work you don’t remember?  Then you know what it’s like to see your CSS go to pot.  ProCSSor re-prettifies your CSS automatically. Maki – an app that you [...]

Test your website on mobile devices

I just ran into ProtoFluid today, via this post.  It allows you to test your webpage/web app on various mobile devices and screen sizes without having to own them  I wish there was an option to choose your OS instead of device, but other than that, it works great! I’ve been waiting for this…