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
Wednesday, April 01, 2009
Troubles calling form.submit()
Posted by Emergence at 12:14 PM 0 comments
Labels: javascript , paul
Tuesday, December 30, 2008
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
Posted by Emergence at 3:30 PM 0 comments
Labels: cfgrid , coldfusion , paul