Someone help me out before I go crazy. Why is firefox underlining the image in this example? Here is a screenshot (in case you're not using firefox) – the above link looks like this in firefox: The code on that page is simply: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta […]
16 Feb, 2007
Posted by: Jennifer In: CSS
For the past couple of days, I've been trying to figure out why a design I had been working on was showing extra padding (veritcally) in IE. I think I'd seen every solution such as: write the code like this: <li>Item one</li><li> Item two</li> or make set them to float: left | right (which messed […]
Well, this was fun! I just made a store locator for a client using PHP and AJAX! 😀 I was basically following the instructions from this page: SomeCoders.com (Retrieving database information with AJAX, PHP and MySQL) Take a look…
How to force a file to download (without having to zip it up). $filename = "secure/writeToFile.doc"; header("Content-Length: " . filesize($filename)); header('Content-Type: application/msword'); header('Content-Disposition: attachment; filename=writeToFile.doc'); readfile($filename); a few other content types – lots more at the above link… "pdf": "application/pdf" "zip": "application/zip" "xls": "application/vnd.ms-excel" "ppt": "application/vnd.ms-powerpoint" "gif": "image/gif" "png": "image/png" "jpg": "image/jpg" "mp3": "audio/mpeg" "mp3": […]
08 Feb, 2007
Posted by: Jennifer In: Bookmarks
Another "tired of hunting for the exact syntax" things… Here's shorthand for an "if" statement: echo isset($var) ? $var : "sorry, nothing here";
This is one of those things I use all the time but because I can't remember things like this, I always have to look for the exact code to do it… This will take all the values submitted in a form and store them in a session: foreach($_POST as $k=>$v) { $_SESSION[$k]=$v; } And when […]
07 Feb, 2007
Posted by: Jennifer In: Bookmarks
So my latest CSS fight, with which browser? IE, of course! I was updating someone's site, and set up a new "side menu" type navigation. I set it up as an unordered list using images for bullets, because I wanted them to change on :hover (and we know that IE will not listen to any […]
Comments Off on Stubborn IE list-stlye
I needed to set the selection of a drop down menu. As far as I can tell, if you don't know the "index" value, then you just have to loop through to set the item as selected. If there's an easier way to do this, please speak up in the comments. I spent WAY too […]
05 Feb, 2007
Posted by: Jennifer In: Bookmarks
Is it just me or with the last update to Firefox has it been… uhm.. particularly buggy? I've had it crashed more than ever before, and it's just… slow… I used to LOVE firefox. But this is getting pretty annoying. I don't have an outrageous number of addons/extensions running, but I might try turning them […]