Category Archives: Javascript

MSIE 9 bug – enctype multipart/form-data

Fixing Coldfusion error message Invalid content type: application/x-www-form-urlencoded.The files upload action requires forms to use enctype=””multipart/form-data””. It is a bit misleading since we usually list the enctype. However for MSIE 9 Encoding must be there too. <CFForm action=”somepage.cfm” method=”put”, enctype=”multipart/form-data”, … Continue reading

Posted in Code, Coldfusion, Javascript, Problems & Fixes | Comments Off on MSIE 9 bug – enctype multipart/form-data

HTML 5 and frameworks

In rebuilding my site I have been brushing up on HTML5 and CSS3 and looking into the future to determine how I can best serve my clients with modern code that is also backwards compatible. In the process I stumbled … Continue reading

Posted in CSS, Javascript, JQuery, News, Web Development | Comments Off on HTML 5 and frameworks

Javascript – checkboxes are checked?

How to Evaluate if Check Boxes are checked when submitting a form. Throws an error if none are checked. Continue reading

Posted in Javascript, Problems & Fixes, Snippets | Comments Off on Javascript – checkboxes are checked?

Search Form Submission without submit button

Here is a quick view of how to submit a form when the enter key is used instead of the submit button. OnKeyPress checks to see if the key code is 13 which is the enter/return key. Then it calls … Continue reading

Posted in Code, Coldfusion, Javascript, Snippets | Comments Off on Search Form Submission without submit button

Date Subtraction or Difference

Sometimes you need to know the differences between two dates in days months years whatever. SQL SERVER select datediff(day,date1, date2) as days_diff, datediff(month,date1, date2) as months_diff… Can also do year, quarter, week, hour, minute, and second dateparts. Dates can be … Continue reading

Posted in Code, Coldfusion, Javascript, JQuery, Snippets, SQL | Tagged | Comments Off on Date Subtraction or Difference