Search results for: index.cfm

Aug 30 2013

Railo can do NTLM Authentication

Posted by AJ Mercer at 11:23 am - Categories: CFML | Railo

Aug 20 2013

Nginx proxy for Railo with web sockets

Posted by AJ Mercer at 9:56 am - Categories: Nginx | Railo | Web Sockets

Aug 10 2013

New Hardware for webonix.net

Posted by AJ Mercer at 10:26 am - Categories: Farcry | MangoBlog | Railo | Webonix

Jan 24 2012

Railo running JAVA version of less.js

At Work, we are giving one of our sites a make over which was done by an external company. They have delivered some working HTML, but very quickly that I discovered that I am going to have to tweak the CSS - lots of hard coded height and widths for mega menu; not so good for a CMS.

After a bit of a look around it seems to me that it was generated with less.js. So I have asked if they could provide me with the less files.

While waiting for that I did a bit of Googling and found that Railo can run a JAVA version of less.js. A bit of downloading some JARS and cut and paste coding I had it working - first time!

Next I tweaked it a bit forther to create something that would output CSS content with something like:

<link rel='stylesheet' href='/less/index.cfm?src=/css/global-styles.less' />

Code:

<cfsetting enablecfoutputonly="true">
<cfparam name="URL.src" type="string">
<cfset variables.javajs = createObject("java","org.mozilla.javascript.tools.shell.Main",
"/labs/less-js/cfelements/jars/js.jar")>
<cfset variables.javaless = createObject("java","com.asual.lesscss.LessEngine",
"/labs/less-js/cfelements/jars/lesscss-engine-1.1.4.jar")>
<cfcontent type="text/css" reset="true">
<cfoutput>#variables.javaless.compile(fileRead(URL.src))#</cfoutput>
<cfsetting enablecfoutputonly="false">

Thanks to Cfelement, Nathan Strutz and Asual - Oh, and those wonderful folks over at Railo ;-)

Posted by AJ Mercer at 3:14 pm - Categories: CFML | Railo

Dec 20 2011

Railo 3 Beginner’s Guide

Posted by AJ Mercer at 8:52 am - Categories: CFML | Railo

Sep 26 2011

CFML Image Place holder Custom Tag

Posted by AJ Mercer at 3:09 pm - Categories: CFML | ColdFusion | Railo

Aug 1 2011

How I got started in ColdFusion

Steve Bryant has come up with the idea of making 1 August how we got started in ColdFusion day.

My story is already in my bio

Posted by AJ Mercer at 9:04 pm - Categories: ColdFusion