Chovy’s Blog

Disabling Form Elements with Javascript

Thu, May 5, 2005 — Category: Personal

Here’s something I’m a proud of, I had to figure out a way to disable form elements which were children of a table row class, or rather all table row classes not currently selected from the dropdown menu:
<select name="cat" id="cat" onChange="showHide(this.value);">

<option value="res" >Resumes</option> <option value="ggg" >Gigs</option> <option value="eee" >Events</option>

</select>

<table> <tr id="res" style="display: none;"> […]

Here’s something I’m a proud of, I had to figure out a way to disable form elements which were children of a table row class, or rather all table row classes not currently selected from the dropdown menu:

<select name="cat" id="cat" onChange="showHide(this.value);">

 <option value="res" >Resumes</option> <option value="ggg" >Gigs</option> <option value="eee" >Events</option>

</select>

<table> <tr id="res" style="display: none;">  <td><img src="/images/spacer.gif" width="10" height="1" border="0"></td>

  <td>Resumes Options:</td>  <td>None Available</td> </tr>

        <tr id="ggg" style="display: none;">

                <td><img src="/images/spacer.gif" width="10" height="1" border="0"></td>                <td>Gigs Options:</td>

                <td>None Available</td>        </tr> <tr id="eee" style="display: none;">                <td><img src="/images/spacer.gif" width="10" height="1" border="0"></td>

                <td>Events Options:</td>                <td>None Available</td>        </tr></table>

Consider the following javascript for looping through the form elements:

//usage: onSubmit=”findOptions(this.cat.value)”

function findOptions(selectedId){ //populate array with possible options from “cat” var selectObj = document.getElementById(”cat”); var options = new Array(selectObj.length);

 for (var i = 0; i < selectObj.length; i++) {  options[i] = selectObj[i].value; }

 //check unselected options and get their nodes for (var i = 0; i < options.length; i++) {  if (options[i] != selectedId)  {   var disableId = options[i];   //alert(disableId);   getFormNodes(disableId);  } }}

function getFormNodes(disableId){ //get the form nodes from the id to disable //alert(disableId); var obj = document.getElementById(disableId); var inputTags = obj.getElementsByTagName(”input”); var selectTags = obj.getElementsByTagName(”select”);

 disableFormNodes(inputTags); disableFormNodes(selectTags);}

function disableFormNodes(formTags){ //disable each form node for (var i = 0; i < formTags.length; i++) {  var myNode = formTags[i];  myNode.disabled = true; }}
  • Post Disabling Form Elements with Javascript to del.icio.us
  • Post Disabling Form Elements with Javascript to digg
  • Post Disabling Form Elements with Javascript to Furl
  • Add Disabling Form Elements with Javascript to YahooMyWeb
  • Simpify!
  • Post Disabling Form Elements with Javascript to shadows
  • Post Disabling Form Elements with Javascript to Spurl
  • Post Disabling Form Elements with Javascript to BuddyMarks
  • Submit Disabling Form Elements with Javascript to Slashdot

Finding a Job: LinkedIn, Baby!

Wed, May 4, 2005 — Category: Personal

While I’m not currently looking for a job, I have recently discovered LinkedIn.com. So, what is LinkedIn? Think of it as one of those “friendster” type social networking web sites (frienster, orkut, etc), only for business professionals.
It’s totally free to use, you can upload your profile, add in your work history, and then solicit your […]

While I’m not currently looking for a job, I have recently discovered LinkedIn.com. So, what is LinkedIn? Think of it as one of those “friendster” type social networking web sites (frienster, orkut, etc), only for business professionals.

It’s totally free to use, you can upload your profile, add in your work history, and then solicit your co-workers to join and connect to your own personal network as well. After using their handy “yahoo address book importer” tool, I sent out an invitation to everyone. Suprisingly, several people responded and joined. The key is to add as many people to a “first degree” connection as possible. These would be friends, co-workers, etc - people you actually know.

I have 43 first degree connections, and through those and my connections’ connections “2nd degree, 3rd degree, etc”, I now have access to over 824,000 people in my business network. These people work for companies, and a lot of them are posting job reqs for when they are hiring.

You can also search for jobs as well via LinkedIn. I haven’t actually applied to any yet, but I have had a few recruiters call me who found my resume in the LinkedIn.com network.

If you want to add me to your first degree connection, just do a People Search for “Anthony Ettinger” and invite me to join your network!

Updating your resume and work history is somewhat time consuming (I simply copy/pasted from a current resume), but this is one of a select few sites in which I feel it’s worth the time filling out the cumbersome forms.

  • Post Finding a Job: LinkedIn, Baby! to del.icio.us
  • Post Finding a Job: LinkedIn, Baby! to digg
  • Post Finding a Job: LinkedIn, Baby! to Furl
  • Add Finding a Job: LinkedIn, Baby! to YahooMyWeb
  • Simpify!
  • Post Finding a Job: LinkedIn, Baby! to shadows
  • Post Finding a Job: LinkedIn, Baby! to Spurl
  • Post Finding a Job: LinkedIn, Baby! to BuddyMarks
  • Submit Finding a Job: LinkedIn, Baby! to Slashdot
« Previous Page
 
Keyword Advertisers:
SEO Directory SEO Links Free Link Directory Shopping Submission Directory Gardening Tips Political Forum Search Engine Optimization Search Engine Marketing Audio Video Directory SEO Forum Web Development Blog Organic SEO Wiki Web Development Consulting

Learn more about purchasing keyword text link ads on this site.