Hackie Sack fail at work
January 15th, 2010Two guys at work got a hackie sack stuck at the top of warehouse, and guess who had to get it down…
Hackie Sack fail from Jason Rogers on Vimeo.
2010 New Years Resolutions
January 13th, 20101. Live on my own again. March 9
2. Learn Japanese, failure to learn from last resolution.
3. Six Pack. (not beer)
4. Read a book a month.
5. Keep my car clean.
6. Go rock climbing.
7. Be more candid at work. (Got that from episode 8 of The Random with Tim and Kevin)
Keeping it simple.
How to fix IE to see multiple input image button’s for PHP.
January 6th, 2010IE never ceases to piss me off! I’ve been working on this shopping for one of my site, and I have several button’s within the same form, depending on which one you choose will send you to a different page. In my case an update button and checkout button. The problem is with IE, it doesnt recognize a button as a HTML input DOM. The traditional name and value gets translated into ?name=value, in IE it see’s it as a sorta of image map. When you click the image button all it sends are the coordinates on the button you clicked. As in action_update.x=10 action_update.y = 9. Because of that the standard $_REQUEST['action_update'] wont work. Here is the code I used to fix it so I can tell if someone clicked a certain button. Heres the code for the fix.
HTML:
1 2 3 4 5 6 | <form>
<input type="image" src="button_image.jpg" name="action_update"
value="update" />
<input type="image" src="button_image.jpg" name="action_checkout"
value="checkout" />
</form> |
PHP:
1 2 3 4 5 6 7 8 9 10 | <?PHP
if($_REQUEST['action_update']=='update'||
isset($_REQUEST['action_update_x'])) {
/* do something */
}
if($_REQUEST['action_checkout']=='update'||
isset($_REQUEST['action_checkout_x'])) {
/* do something */
}
?> |
Hope that helps
Jason Rogers
Which tea infuser to buy?
January 2nd, 2010I’ve recently been experimenting with changing my lifestyle, and the biggie for me is drinking tea. I’ve been using the standard teapot making a bunch of different tea’s, however its time where I need a infuser. I found a video by kevin rose that helped me immensely. No infringement intended on posting it here, just want to get the info out there!
Tea Infusers from Kevin Rose on Vimeo.















