Josh Knutson

Pondering Life Away

coldfusion custom debug

my own coldBox inspired debug output
coldfusion Debug - josh style

check it out, I'll work on it occasionally

IE Stretchy Button

reference for the future

Internet Explorer problems with buttons have nothing to do with margins or paddings but with overflow

css:overflow:visible


Points to Ponder for Good Listening

  1. Stop Talking
    You can't listen if you're talking.
  2. Put Speakers At Ease
    Help them feel they're free to talk.  This is often called a permissive environment.
  3. Show That You Want To Listen
    Look and act interested (even if they can't see you).  Don't read mail while the other person talks.  Listen to understand rather than to oppose.
  4. Remove Distractions
    Don't doodle, tap or shuffle papers.  What can you do to make it quieter?
  5. Empathize With the Speaker
    Try to put yourself in the speaker's place so you can see his/her point of view.  Say things like "I imagine I'd have questions about this, too." or "I know if this happened to me, I'd probably be upset."
  6. Be Patient
    Don't start to end the conversation before the speaker is ready.  Allow plenty of time.  Don't interrupt.
  7. Hold Your Temper
    Anger creates the wrong meaning from words.
  8. Go Easy on Argument and Criticism
    Arguing and criticizing put the other person on the defensive.  They may stop talking or get angry.
  9. Ask Questions
    This encourages and shows you're listening.  It helps develop other points.
  10. Stop Talking
    This is first and last รข?? because all other points depend on it.  You just can't do a good listening job while you're talking.

Troubles calling form.submit()

Apparently you can't have an element with an id of submit in a form and call form.submit()

It will try calling that element as a function rather than invoking the form.submit method


<form onsubmit="agree();return false;">



<div class="buttons">

<input type="submit" name="iAgree" id="iAgree" value="I Agree" class="button" />

<input type="button" name="disAgree" id="disAgree" value="Cancel" class="button" onClick="tb_remove();" />

</div>

</form>
agree is not a function
<input type="submit" name="agree" id="agree" value="I Agree" class="button" />

so if the form has an element named agree
agree is not a valid function name in the onsubmit
weird

Google Code

I have started to play around with creating a project on code.google.com and now have a project setup at
http://code.google.com/p/coldfusion-crud-generator/
this Generator will generate DAO, beans, controllers, the edit page, the grid page, along with the folder structure. Check it out to learn more, it still is a work in progress but I think its a good start to just exploring some Coldfusion fun.

css3 rounded corners

mostly so Allison would remember

something along -moz-border-radius:3px 5px 3px 5px,-webkit-border-radius:3px 5px 3px 5px;border-radius:3px 5px 3px 5px, covers the more entertaining browsers

Proper use of Fieldsets, legends, spans, label, and input, oh my

Fieldsets are used to break up forms into sections
Legends are used to title those sections
Labels give focus to the input(helps usability and 508 standards)
Input...I hope everyone knows what an input is
Span helps with other minor areas

Also maybe some list elements for breaking the data up more, I prefer it to tables


so a typical form you would have

<form name="EditUser" id="EditUser" action="controllers/cnt_blah.cfc" method="post">
<fieldset>
<legend><span>Name:</span></legend>
<ul>

<li>
<label for="FirstName" class="required"> First Name: </label>
<input name="FirstName" id="FirstName" type="text" value="ImageTrend" maxlength="100" size="20" />
</li>
<li><span class="radios">Are you human</span></li>
<li>
<label for="humanYes"><input name="human" id="humanYes" value="yes" type="radio">Yes</label>
<label for="humanNo"><input name="human" id="humanNo" value="no" type="radio">No</label>
</li>
<li>etc...</li>
</ul>
</fieldset>
<fieldset>
<legend><span>Work Address:</span></legend>
<ul>
<li>

<label for="Address"> Street Address: </label>
<INPUT type="text" name="Address" id="Address" value="" width="30" maxLength="100" size="30">
</li>
<li>etc...</li>
</ul>
</fieldset>
<div class="buttons">
<input type="submit" name="Submit" class="button submit" value="Submit">
</div>
</form>

Older Entries Newer Entries