Tuesday, December 30, 2008

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>

Proper fix for cfgrid having empty rows and wrong information on last page

<cfset startRow = ((page-1) * pageSize) + 1 />
<cfset endRow = startRow + pageSize - 1 />
<cfset tmpQuery = queryNew(get_query.columnList) />
<cfloop query="get_query" startRow="#startRow#" endRow="#endRow#">
<cfset tmp = queryAddRow(tmpQuery) />
<cfloop list="#get_query.columnList#" index="column">
<cfset tmp = querySetCell(tmpQuery,column,evaluate("get_query.#column#")) />
</cfloop>
</cfloop>
<cfset gridQuery = structNew() />
<cfset gridQuery.query = tmpQuery />
<cfset gridQuery.totalrowcount = get_query.recordcount />
<cfreturn gridQuery />




big thanks to Paul

Thursday, August 28, 2008

getTimeZone Information Example

GetTimeZoneInfo Example





The local date and time are #now()#.




Total offset in seconds is #info.utcTotalOffset#.


Offset in hours is #info.utcHourOffset#.


Offset in minutes minus the offset in hours is
#info.utcMinuteOffset#.


Is Daylight Savings Time in effect? #info.isDSTOn#.



Friday, May 09, 2008

quick update

Figured I would say something as it has been a while. I have been busy with Jade, finding a different place to live and work. I do plan to post more eventually but it will be for a while, when it does happen it will only be at my main instead of blogger, I have been checking through a few coldfusion based blog setups and hoping to decide on one soon, but I am very picky something with not wanting to update it ever again after I figure out which one I want.
Cheers

Sunday, April 06, 2008

I met a girl who sang the blues and asked her for some happy news...

This is a story that I have been meaning to tell for a while it involves several characters. I met a girl last year on July 3rd, she sounded like a really great person. She took up a trip where she received a souvenir. She has been living with me the last few months since around last Sept. I have been recently reflecting upon these changes that have happened and the joys that come along with everything. She has told me a tail of her life and the men in her life. I appreciate everything she has done. As I think of the situation with her husband, the father, and finding my place in this relationship I see that my place is to be a friend more than anything else. Jade AshleighNow has she has had a little child that has come out on April 1st, at 4:47AM. Within a few hours her husband was coming up to stay for a few days from a break in the Navy and see the new addition. Looking around this just gives me hope for the two of them as seeing all three of them become a family again and re ignite the spark that can bond them closer than anything else ever could. I see my new role in all of this and my eyes are open fully to see the wonders that the future may hold for this new again family has they have the ability to work things out.
I have a lot of respect for these two as they do try to work things out and I am just wishing them the best. The girl will be leaving me in a few months to rejoin with her husband as he gets a place for the new family. Raising a child is such a fun event that I hope they never take it for granted to just see the possibilities to know that fact you just might raise and shape a very important figure for an important occupation out in the world. I am a friend and the birthing partner.

Thursday, March 13, 2008

Super Smash Bros Brawl

Just picked this game up and figured for reference here is my wii code and my ssbb code

wii friend code
4525 5642 3788 5175
ssb friend code
3136-6314-6259

Brawl

Saturday, February 16, 2008

New comment system

I found a better way to make comments on the blog based off of here
I'll make it look better eventually
Cheers