scriptygoddess

Archive for the ‘Lessons learned’ Category

25 Oct, 2004

Button Element

Posted by: Jennifer In: Bookmarks|Lessons learned

Hello, I'd like to take HTML 101. So I was working on a form. Used this method to create the form. Minimal HTML. Simple CSS. Started playing around with the :focus pseudo-class… and that's when I noticed my submit button started looking crummy. (From a usability perspective, I think there are some things that SHOULDN'T […]

19 Oct, 2004

gifs that execute a php script

Posted by: Jennifer In: Lessons learned|Script snippet

Problem: (somewhat in line with my last post) I needed to run a script in the "background", but I only had the ability to present the script as a .gif. Solution: actually, I came up with two ways of doing this and both use .htaccess to pull it off. 1) I'm a gif but really […]

09 Oct, 2004

Border tricks and centering issues

Posted by: Jennifer In: CSS|Lessons learned

I'm working on redesigning a site in CSS that I did many eons ago using tables for Christine. While I'm getting the hang of CSS, I still have a long ways to go. First of all – Christine wants a border around her photos: first a thick white one, then a one pixel black one. […]

05 Oct, 2004

ASP: get the name of the current page

Posted by: Jennifer In: Lessons learned

(Side note: I hate ASP. I love PHP. But sometimes mean people make me use ASP) ;o) I needed to get the current page name and redirect to a different page if it was a certain name. (ie. 1.asp or 2.asp or… up to any two-digit + .asp) First – to get the page name […]

30 Sep, 2004

OOP in JavaScript.

Posted by: Jennifer In: Lessons learned

Guest authored by
Sergey Zavadski – codethat.com

30 Sep, 2004

PHP: Hiding Errors

Posted by: Jennifer In: Lessons learned

I was running into a problem with undefined index errors. You'll get that if you do seomthing like: echo $_GET['name']; when there is no $_GET['name']. One option is to check to make sure $_GET['name'] is set like if (isset($_GET['name'])) { echo $_GET['name']; } But if you're feeling lazy, you can leave your code as is […]

Comments Off on PHP: Hiding Errors

21 Sep, 2004

PHP: Remove an element from an array

Posted by: Jennifer In: Lessons learned

Found on this thread I needed to remove elements from an array that were either blank, nothing but a space, or null. foreach($array as $key => $value) { if($value == "" || $value == " " || is_null($value)) { unset($array[$key]); } } /* and if you want to create a new array with the keys […]

02 Sep, 2004

Code for IE's eyes only

Posted by: Jennifer In: Lessons learned

While we're on the subject of IE funkiness – I ended up on Toothpaste Addict tonight and noticed this little trick. (Actually, something weird happend when I copied and pasted the code from Toothpaste. Must have something to do with the text formatting there. But I found this page – which actually shows the same […]

02 Sep, 2004

One form – two actions

Posted by: Jennifer In: Lessons learned

It's a good thing I have no shame in admitting when I was doing something stupid. 😉 Otherwise I'd have no posts for this category. Just to explain a little about what I was working with – it was essentially an email form (emailform.php) – but before sending the email, it brought you to a […]

I'm in the process of moving a few other blogs over to use WP – one of which makes calls to a seperate database unrelated to WP. This proved to cause a conflict. After many hours of trying to figure out where the specific conflict was – I narrowed it down to my mysql_select_db line. […]


Featured Sponsors

Genesis Framework for WordPress

Advertise Here


  • Scott: Just moved changed the site URL as WP's installed in a subfolder. Cookie clearance worked for me. Thanks!
  • Stephen Lareau: Hi great blog thanks. Just thought I would add that it helps to put target = like this:1-800-555-1212 and
  • Cord Blomquist: Jennifer, you may want to check out tp2wp.com, a new service my company just launched that converts TypePad and Movable Type export files into WordPre

About


Advertisements