Paul Alkema

Discussions on Web Development and Security

Paul Alkema

Entries Tagged as Javascript

How to Remove the Shadow From cfwindow

June 08, 2010 · 8 Comments

While trying to get rid of cfwindow's drop shadow I came across an excellent article written by Todd Sharp on how to exactly this using a javascript function. The one issue I ran into while trying to use this method, was how to easily create windows on the fly using the ColdFusion.Window.create function.

My final solution to this, was to go into the cfwindow.js file in the application server and change the shadow attribute to false.

Find

_22c.shadow=true;

Replace With

_22c.shadow=false;

This will need to be replaced twice, as this statement appears twice in the file.

Note: A down side to using this method is that you'll have to redo this every time there is a server upgrade. Also, in order to use this method you have to have the ability to actually edit this file, which for users on a shared server is unlikely. Have better solution? I'd love to hear from you!

8 CommentsTags: ColdFusion · Javascript