Segue Technologies Corporate Blog

ColdFusion: Problem with ExtJS CFGRID in Internet Explorer

January 6th, 2009 - 10:46 am

I had been recently building a cfgrid with html format in my company’s ColdFusion application when I encountered a problem. For those not familiar, the cfgrid html format uses the ExtJS API. The intent of this blog entry is to describe a bug fix, but look here for more information on how to use cfgrid or for ExtJS. My problem occurred while using my Internet Explorer browser to do an inline edit in the cfgrid. The edited field had the red marker in the corner, but the whole cell turned white, making it appear blank.

After playing around with the code without success, I devoted some time to surfing for answers. , It turns out that the problem is a CSS rendering issue with IE and erroneous code in an ExtJS CSS file. One of the ExtJS CSS files has improper comments in a few of the classes and IE does not recognize the comments. Instead, IE turns fonts and background colors white. I came upon the solution on Ray Camden’s site in pieces throughout the comments and am consolidating it here.

To correct this problem, you need to replace the ‘//’ comments with the proper ‘/*’ comments in the ext-all.css file, usually found in \CFIDE\scripts\ajax\resources\ext\css directory. About midway down the CSS file, you will find the erroneous comments. Remove those ‘//’ and replace with ‘/*’ as follows:

.x-grid-row-selected td, .x-grid-locked .x-grid-row-selected td{

      /*color: white;*/

}

.x-grid-row-selected div, .x-grid-row-selected div, .x-grid-row-selected b, .x-grid-row-selected strong, .x-grid-row-selected i{

      /* color: white !important;*/

     

}

.x-grid-row-selected .x-grid-cell-text{

      /*color: white;*/

}

.x-grid-cell-selected{

      background-color: #316ac5 !important;

      /*color: white;*/

}

.x-grid-cell-selected span{

      /*color: white !important;*/

}

.x-grid-cell-selected .x-grid-cell-text{

      /* color: white;*/

}

After making the corrections, save the file, refresh your browser and you will now see your text changes in the cell. One thing to note, however, is that all of the text in the highlighted rows, as well as the edits, will remain black now instead of white. I was unable to change the CSS without major effort to keep the text white when a row is selected, but have it turn black when a cell is edited; for me the simpler solution was to use a lighter select color.


Posted in ColdFusion, Technical Articles | No Comments »

Open-Source: The Genesis of the Internet as We Know It

November 20th, 2008 - 10:27 am

In the age of information, we often take for granted our ability to open an internet browser and connect to every corner of the globe. We send off emails with the safe assumption that they will arrive at the desktop of everyone in our address book. Information flows unbounded across the internet without barriers from governments or corporations. This open internet community that we enjoy was born out of an Open-Source technology.

Read the rest of this entry »


Posted in Technical Articles | No Comments »

What I Took Away from InfoTech 2008

November 6th, 2008 - 10:20 am

Segue attended the InfoTech 2008 conference hosted by the Dayton-Wright chapter of the Armed Forces Communications and Electronics Association (AFCEA) 21-23 October 2008. The event was held at the Dayton Convention Center, in downtown Dayton, Ohio, in close proximity to Wright Patterson Air Force Base (WPAFB). An estimated 2,500 industry professionals attended and 150 organizations exhibited at this defense/IT industry event. Read the rest of this entry »


Posted in Conference | No Comments »

Improving Development Meetings

October 27th, 2008 - 11:46 am

Have you ever been in a development meeting where a customer, a developer, a tester and a product manager argue for more than half the time about a single detail? How much time did you spend figuring out who was right and who was wrong? Really, the answer is nobody; they were all just looking at the same object from different perspectives. Read the rest of this entry »


Posted in Planning and Meetings, Quality Assurance | No Comments »

Open-Source Software’s Biggest Strength: Security

October 14th, 2008 - 10:23 am

In my last article, I discussed how companies must understand and evaluate the hidden costs of implementing and maintaining open-source software. After taking these costs into account, some companies are still seeing the benefits of getting away from expensive commercial products. While the upfront costs of implementing and maintaining open-source software are high, the upkeep is much lower in comparison to closed-source alternatives.

In this article, I will discuss one of the biggest advantages of choosing open-source software: Security. Whether you’re counting votes or tracking shipments, security is one of the most important factors you must address before and after you install any type of software. Security requirements often differ depending on application and field, but will inevitably require an investment of money, time, and resources; it’s an unavoidable cost of doing business today. Maintaining closed source software can waste man-hours as well as hundreds of thousands of dollars. This cost, however, can be hedged when open source software is part of the equation.

Read the rest of this entry »


Posted in Network Security, Technical Articles | No Comments »

Small Helpdesk Team Scheduling

September 29th, 2008 - 10:04 am

One of the biggest challenges in staffing and operating a small helpdesk is maintaining a fair and balanced schedule. It must be written without bias and in such a way that everyone performs equal work. For purposes of this article, I define a small helpdesk as one where: 1) There is either no on-site supervisor or the supervisor functions as a team lead with responsibilities in addition to those of the other agents and 2) All agents share the same basic duties.

Read the rest of this entry »


Posted in Network Engineering, Planning and Meetings | No Comments »

Secure File Downloads Using ColdFusion 7

September 25th, 2008 - 9:36 am

It is occasionally necessary to control who can download a file. The typical method of doing this in a web application is to store the file somewhere outside of the document root and use an application server to process the request and output the file. Under ColdFusion, this is normally done with a combination of the <cfcontent> tag to reset page output and programmatically send the file, and the <cfheader> tag to set HTTP headers like Cache-Control and Content-Disposition.

You will usually use something like this to send an Excel spreadsheet and ask the browser to open it:


<cfcontent type="application" reset="true" file="c:\myfile.xls" type="application/vnd.ms-excel">
<cfheader name="Content-Disposition" value="inline; filename="myfile.xls">

For the most part, this solution works pretty well. However, there are two issues that crop up with this approach: Memory usage, and threads.

Read the rest of this entry »


Posted in ColdFusion, Website Development | No Comments »

« Previous Entries