Bloggerit by Toddism.com

First off - I aint no graphics artist. I am primarily a database / business app dude. Some of the things here I came up with, some I borrowed and modified.

I am particularly fond of the "print a portion of a web page" doofer. I figured that out all by my lonesome. I had a need to print a report generated as HTML for preview but did not want to re-generate the report. Enter Javascript. I like it. No more trips to the database.

Recently I have had a couple of client websites infected by a particularly nasty SQL INJECTION. Ugly. If your web pages are infested with a javascript call to a file called "b.js" you got it too. See below for more information.

Visit me at Toddism.com.



Suddenly a client's web site had javascript links in all it's varchar and text data (a SQL site) that loaded an IFRAME. I found the explanation of the injection on Bloombit.com. I took there SQL injection code and turned it into a fix.
 
This took me time to figure out so I thought I'd share it. It switches out className values instead of using style.display
 
Using innerHTML and some Javascript to print stuff.
 
I don't comment my code. Here's why.
 
Here's a handy little view to get today's date. It is as easy as select * from v_today and uses convert and some SQL date functions
 
The difference between form fields and request variables. Post and Get - you know - that old chestnut.
 
Some I even have a vested interest in......
 
 
A buddy left me this voicemail. It is an impression of AL GORE and it made me laugh. Be warned: Bad words.



Listen here


Google
 
 
Art by Michelle Cormack. I'm fan, you know.
Peace, Love and Harmony
Starbright
Sea Oats

Southern Star Studios: glass art      Toddism.com      lockboxdata.com