Blog   About   Contact

ColdBox Book Released and READY for Purchase!

THE ColdBox Book has been released and is available for purchase. And YES it will be in ALL online book retails in 4-8 weeks.

Thanks Luis for putting this masterpiece together!!

Check out the ColdBox blog post for details.

Europe's First Official ColdBox Training 22-24 October in AMSTERDAM!

Tom de Manincor, my colleague and ColdBox Team Member, will give a 101+ ColdBox course in our office in Amsterdam.

If you want to know the ins,outs and best practices of ColdBox, you should definitely attend Europe's first official ColdBox Course.

....and you finally have a good excuse to visit Amsterdam :-)

 Please check out Tom's blog for the ColdBox Course details

UPDATE

Well, it's NOT the first CB course in Europe, Luis gave one at CFUG in Munich last year.

...thanks Chris for notifying!

 

IE auto content fit IFrame HACK

I ran into 'another' strange IE-browser behavior yesterday. It took me an hour of two to solve this iframe-height-problem.

If you call this.document.body.scrollHeight in an iframe twice, the first value is wrong, but the second value is okay.

Look at the example below:


    function autoFitIFrame(elementId){
        if (!window.opera && !document.mimeType && document.all && document.getElementById){
            parent.document.getElementById(elementId).style.height=this.document.body.offsetHeight+"px";
        }
        else if(document.getElementById) {
            // ErnestoZ HACK: if you call scrollHeight TWICE, the second value is the real height of the iframe
            var scrollHeightWrong = this.document.body.scrollHeight;
            var scrollHeight = this.document.body.scrollHeight;
            alert(scrollHeightWrong);
            alert(scrollHeight);
            parent.document.getElementById(elementId).style.height = scrollHeight+"px";
        }
    }

OFC-CFC: Open Flash Chart - Coldfusion CFC Library

I just released version 1.0 of OFC-CFC on Google Code.

OFC-CFC is a Coldfusion CFC Library which produces JSON-data for Open Flash Chart version 2.0

The real power of Open Flash Chart is, you can update charts using JSON-data. Which means. update your charts using e.g. JQuery or Spry, without reloading a page.

So you can create charts like:

barchartAnimated

Please let me know if you have any questions or remarks.

ColdDoc, created by Mark Mandel, ROCKS!

In case you missed it, check out http://colddoc.riaforge.org/

Another piece of magic by Mark Mandel. It creates docs of your cfcs in JavaDoc-style and most important, it shows inherited methods too!

ColdBox Training Seminar, 14-15 March in Ontario

ColdBox Training Seminar will be held in Ontario, California on March 14-15th, 2009.

It is a 2-day hands on intense training on our flagship course: CBOX-101.

Check our press release

It only takes three minutes...

We need some input about our new ColdBox CBOX 101 course.

It only takes three minutes to complete the ColdBox CBOX 101 Training Seminar Survey

Thanks!

JS Calendar - ColdBox plugin

I've created a ColdBox plugin which makes use of JS Calendar of Dynarch.

 

datepicker

 

LIVE SAMPLE (requested by Sana):

JS Calendar Sample

Usage:


<!--- input field 1 --->
<input type="text" id="startDate" name="startDate" value="" />
<img src="includes/img/icons/calendar.gif"
    id="startDate_trigger" style="cursor:pointer;" title="Date selector" />


<!--- input field 2 --->
<input type="text" id="endDate" name="endDate" value="" />
<img src="includes/img/icons/calendar.gif"
    id="endDate_trigger" style="cursor:pointer;" title="Date selector" />

    
<!--- Setup Calender --->
<cfset calendar = getPlugin("Calendar",1)>
<cfset calendar.setInputField('startDate','startDate_trigger','T1')>
<cfset calendar.setInputField('endDate','endDate_trigger')>

<cfoutput>#calendar.render()#</cfoutput>

Downloads:

JS Calendar (unzip and place it in your includes directory. It should look like this: {YOURAPP}/includes/jscalendar/..)

ColdBox Plugin (without JS Calendar!)

ColdBox Spry Plugin 2.0 Released

I've updated the ColdBox Spry Plugin to version 2.0

spryexample

New implementations due many user requests:

  • TextField Validation
  • TextArea Validation
  • Radio Validation
  • Checkbox Validation
  • Select Validation
  • Password Validation
  • Confirm Validation

I also added effect examples to the Spry live sample application.

Download Spry Plugin + Sample App

ColdBoxProxy and JSON

If you work a lot with JSON and remote calls like me, the following coldboxproxy.cfc code could be handy for you.

<cfcomponent name="coldboxproxy" output="false" extends="coldbox.system.extras.ColdboxProxy">

    <cffunction name="process" output="true" access="remote" returntype="any" hint="Process a remote call and return data/objects back.">
        <cfset var results = "">

            <cftry>
                <!--- Call the actual proxy --->
                <cfset results = super.process(argumentCollection=arguments)>
        
                <!--- JSON ? --->
                <cfif isDefined('arguments.json')>
                    <cfheader name="expires" value="Mon, 03 Sep 1973 00:00:01 GMT">
                    <cfheader name="pragma" value="no-cache">
                    <cfheader name="cache-control" value="no-cache">
                    <cfcontent type="text/html">
                    #getPlugin("JSON").encode(data:results,queryKeyCase:"upper")#     
                <cfelse>
                    <cfreturn results>
                </cfif>

                <cfcatch type="any">#processException(cfcatch)#</cfcatch>
            </cftry>

    </cffunction>
    
    <cffunction name="processException" output="false" access="private" returntype="string" hint="Process exception and returns bugReport">
        <cfargument name="Exception" type="any" required="true" hint="The exception structure (cfcatch)">
        
        <cfset var exceptionService = "">
        <cfset var ExceptionBean = "">        
        <cfset var interceptData = StructNew()>        
        
        <!--- Get Exception Service --->
        <cfset ExceptionService = getController().getExceptionService()>
        
        <!--- Intercept The Exception --->
        <cfset interceptData.exception = arguments.exception>
        <cfset announceInterception('onException',interceptData)>
        
        <!--- Handle The Exception --->
        <cfset ExceptionBean = ExceptionService.ExceptionHandler(arguments.exception,"coldboxproxy","ColdBox Proxy Exception")>                    
        
        <!--- Return rendered bugreport --->
        <cfreturn exceptionService.renderBugReport(ExceptionBean)>
    </cffunction>
    
</cfcomponent>

The URL of your remote call will be something like this:

coldboxproxy.cfc?method=process&json&event=ehCompany.getCompanies

More Entries

BlogCFC was created by Raymond Camden. This blog is running version 5.9.004.