Friday, December 5, 2008

Using Ajax for blog

http://onepotcooking.com/jackpax/ajax/

As an exercise I re-did my class 8 blog as an AJAX app using jQuery. Anyone can view the blog, but to post a message or comment you must log in

Monday, November 17, 2008

Tiles

Tiles have been used for background texture (think parchment paper), but they can also be used for CSS rollovers.

A simple CSS rollover using a 2px wide vertical tile:
#menuTop a{
padding:2px;
color:#000;
background-image:url('img/menuTile.jpg') repeat-x;
text-decoration:none;
}
#menuTop a:hover{
background-image:url('img/menuOverTile.jpg') repeat-x;
color:#cc0000;
}

And of course a tile can be used for a gradient effect in the page top:
#pgTop{
border-bottom:1px solid #cc0000;
background-image:url('img/pgTopTile.jpg');
}

Friday, November 7, 2008

Hacker attacks

SQL injection attacks explained:

http://en.wikipedia.org/wiki/SQL_injection

http://www.unixwiz.net/techtips/sql-injection.html

these links explain this type of attack, which can occur when users enter info into a form text box.

Thursday, October 30, 2008

Popup a Lightbox window

Lightbox JS is a simple, unobtrusive script used to overlay images on the current page. It's a snap to setup and works on all modern browsers.
http://www.huddletogether.com/projects/lightbox/

Lightbox image viewer 2.03a - a newer version using prototype and scriptaculous libraries to add a fancier look:
http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm

Friday, October 24, 2008

Popup Javascript Calendar

http://onepotcooking.com/jackpax/calendar/popUpCalendar.htm

This adds a date picker to a text box using a small javascript file and a css file for the calendar formatting.

Friday, October 17, 2008

Javascript video

http://developer.yahoo.com/yui/theater

see Douglas Crockford — "The JavaScript Programming Language" Part 1.

Yahoo! JavaScript Architect Douglas Crockford provides a comprehensive introduction to the JavaScript Programming Language

Thursday, October 16, 2008

Adding Flash to a web page with Javascript

http://code.google.com/p/swfobject/
http://code.google.com/p/swfobject/wiki/documentation

SWFObject is an easy-to-use and standards-friendly method to embed Flash content, which utilizes one small JavaScript file