Custom Rendering on CFGRID
Hi Guys, I have this custom rendering applied from this site http://alagad.com/2010/03/31/ask-an-alagadian-how-can-i-style-a-cell-in-lt-cfgrid-gt-based-on-the-data-it-contains/ But its only rendering everything in the first style - it wont change the style based on the IF statement. Below is my code: script formatStatus = function(data,cell,record,row,col,store) { if (data == 'false') { cell.css = 'status1'; } else { cell.css = 'status2'; } return data } formatCells = function() { theGrid = ColdFusion.Grid.getGridObject('grid1'); cm = theGrid.getColumnModel(); cm.setRenderer(9,formatStatus); } /script style .status1{border:0px solid #000; background-color:#66FF66; } .status2{border:0px solid #000; background-color:#00; } /style So you can see i have 2 styles - my problem is everything is getting rendered in status1 no matter if i change the IF statement. Its as if there is a problem with the If statment. If someone could help as i have to do a presentation on this tomorrow and i have only realised during a practice run of the demo! Thanks ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357422 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Custom Rendering on CFGRID
Anthony, Have you thought about a few debugging options here? First you could do console.log(data) and see what is contained in the data, the other option is to use the debugging tools in the browser to line debug and see what is happening. Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/113032480415921517411 On Wed, Jan 15, 2014 at 9:35 AM, Anthony Doherty anthony...@gmail.comwrote: Hi Guys, I have this custom rendering applied from this site http://alagad.com/2010/03/31/ask-an-alagadian-how-can-i-style-a-cell-in-lt-cfgrid-gt-based-on-the-data-it-contains/ But its only rendering everything in the first style - it wont change the style based on the IF statement. Below is my code: script formatStatus = function(data,cell,record,row,col,store) { if (data == 'false') { cell.css = 'status1'; } else { cell.css = 'status2'; } return data } formatCells = function() { theGrid = ColdFusion.Grid.getGridObject('grid1'); cm = theGrid.getColumnModel(); cm.setRenderer(9,formatStatus); } /script style .status1{border:0px solid #000; background-color:#66FF66; } .status2{border:0px solid #000; background-color:#00; } /style So you can see i have 2 styles - my problem is everything is getting rendered in status1 no matter if i change the IF statement. Its as if there is a problem with the If statment. If someone could help as i have to do a presentation on this tomorrow and i have only realised during a practice run of the demo! Thanks ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357423 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Problems with OSX installation 10.7
I had CF10 beta for a while and was using it no problems. Stopped using it, played around with osx built in web server. Came back to using cf10 and pages would load. Just a blank page displayed for the CF administrator. So I uninstall cf10 beta and install new version of cf10. Install goes smoothly and everything works as it should. Restart computer and now back to blank screen again rather than the CF Administrator. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357424 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Twitter API: SSL now required
Just a heads-up to anyone else working with the twitter API today... I was in the middle of debugging an app when all of a sudden my authorize functions stopped working and I could no longer get access tokens from the twitter API. Because they had been working just fine, I thought it was something I had done even though what I was doing had nothing to do with that. It took me a while to track it down. Turns out, just today twitter started enforcing the use of SSL with their API calls. If you have any twitter API code that do not currently use HTTPS in it's endpoint URL's, better get that updated right away. Twitter has been posting about it here: https://dev.twitter.com/discussions/24239 ... but it wasn't until my non-https API calls stopped working that I found out about it. Hope this post saves some folks some time. Kind regards, Jordan Michaels ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357425 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Custom Rendering on CFGRID
Hi Andrew Thanks for getting back to me. I found the problem. The if statement did not like the word 'false' so I changed it to a number 1 and it worked. I believe it has something to do with the SQL db but because I inherited the db there was not much I can change Thanks for getting back to me Anthony Sent from my iPhone On 14 Jan 2014, at 22:44, Andrew Scott andr...@andyscott.id.au wrote: Anthony, Have you thought about a few debugging options here? First you could do console.log(data) and see what is contained in the data, the other option is to use the debugging tools in the browser to line debug and see what is happening. Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/113032480415921517411 On Wed, Jan 15, 2014 at 9:35 AM, Anthony Doherty anthony...@gmail.comwrote: Hi Guys, I have this custom rendering applied from this site http://alagad.com/2010/03/31/ask-an-alagadian-how-can-i-style-a-cell-in-lt-cfgrid-gt-based-on-the-data-it-contains/ But its only rendering everything in the first style - it wont change the style based on the IF statement. Below is my code: script formatStatus = function(data,cell,record,row,col,store) { if (data == 'false') { cell.css = 'status1'; } else { cell.css = 'status2'; } return data } formatCells = function() { theGrid = ColdFusion.Grid.getGridObject('grid1'); cm = theGrid.getColumnModel(); cm.setRenderer(9,formatStatus); } /script style .status1{border:0px solid #000; background-color:#66FF66; } .status2{border:0px solid #000; background-color:#00; } /style So you can see i have 2 styles - my problem is everything is getting rendered in status1 no matter if i change the IF statement. Its as if there is a problem with the If statment. If someone could help as i have to do a presentation on this tomorrow and i have only realised during a practice run of the demo! Thanks ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357426 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
ColdFusion Programmer with ColdBox Exp
Client is looking for ColdFusion Programmer - Kansas City, KS. This is a full time permanent position. The Salary range is DOE. Experience: Candidates must possess a bachelor's degree and at least two years experience developing ColdFusion applications. Substantial working experience with CFML, MSSQL, JavaScript, CSS and HTML required; additional knowledge of Java preferred and experience with web design a plus. In this position, employees work on complex, scalable web-based applications under direction of higher-level staff. Candidates must have excellent analytical skills, strong attention to detail and good organizational abilities. A demonstrated record of delivering projects as specified and on schedule is required. Please complete the following skills-matrix and send back with your updated resume. Full Name: Degree Major: Total experience as a ColdFusion Programmer: Total experience with CFML, MSSQL: Total experience with JavaScript, CSS and HTML: Do you have knowledge of Java? Total experience with Web Design: Current Salary: Expected Salary: Day Phone #: Evening Phone #: Cell Phone #: Availability: Current City/State: Work Status (US Citizen / Green Card /H1B/ others): Have you applied recently for this requirement earlier through anyone else? Y/N: Are you ready to relocate on your own expenses (Yes/No)? Notes: ColdFusion candidates, please be on the lookout for anyone with ColdBox too, Warm Regards, Pramod Dubey Email ID: pra...@beyondtekit.com; pramod.beyondte...@gmail.com ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-jobs-talk/message.cfm/messageid:4643 Subscription: http://www.houseoffusion.com/groups/cf-jobs-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-jobs-talk/unsubscribe.cfm