scriptygoddess

Archive for the ‘Script snippet’ Category

Just want to store a little javascript snippet. I needed to grey out the text in a text area depending on if a checkbox was checked or not. I'm sure there's a way to get the function to be flexible enough so that it can be passed the specific parameters of WHICH form, WHICH checkbox, […]

01 Apr, 2004

Text Field Auto-Fill

Posted by: Jennifer In: Script snippet

A brief break from the eye-bleeding CSS talk. LOL! ;o) I needed a text field to be prefilled with text. If the user clicked on it, the text would clear out. If they "left" the text field (changed focus) without changing it – I needed it to revert back to the original text. If they […]

14 Jan, 2004

cron jobs

Posted by: Jennifer In: Script snippet

Sometimes the simplest thing are the things that seem the hardest. You're almost embarrassed when you finally figure it out – and realize how simple it was. Cron jobs. Did you know you can create a script (that could technically be run if you pulled the page up in a browser) – but lets say […]

Just some snippets for safe keeping regarding radio buttons. One that will change which radio button is selected. The other that will change the focus to the appropriate radio button (useful when validating that fields are filled out in a form)

(Sort of inline with the previous moblog post) All of Sam's posts are accompanied by a few lines of text that the phone automatically adds. (There's probably a setting to remove it, but we can't find it at the moment). So I used the following script to hide the text using php.

11 Dec, 2003

Javascript: Pull-down menus with pop-up links

Posted by: Jennifer In: Script snippet

Guest authored by
Jenni – bloggiebroad.com

A line break can be created by either a new line (ie. "\n") or a carriage return (ie. "\r"). (more info here) In my particular use, I had a field that could take several email address that would be seperated by either a comma, semicolon or line break:

Comments Off on Javascript: Removing new lines ("\n" or "\r") from text

I needed to grab a (CSV) file via FTP and import it into a database. The part that I thought would be the hardest (the FTP part) was actually very simple. Once again, PHP saves the day with incredibly powerful built in functionality. Here is the simple code that will connect to an FTP server […]

22 Oct, 2003

Skinnable Comment Pop Ups

Posted by: Jennifer In: Script snippet

Guest authored by
Sphinx – pixelsphinx.com

The point of this script-snippet is so you can set up two hierarchies of categories. So there's a main category, and a few "sub-categories" below it. An example of this is on Christine's Pixelog site, on her album page. This differs from the way MT has "Primary" and "Secondary" categories in that in mine, the […]


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