CFGRID Custom Delete

I am using an example I customised from Dan Vega's Blog on CFGRID. I wanted to add my own delete function to the grid and not using the delete="yes". The function needed to pass the selected ID to a CFC delete function. I decided to use my new found love of cfajaxproxy, what I am not sure about is if I have gone about doing this in the best way. I could not find any examples and my solution does work well, but I cannot help feeling I have gone the long way around this? Without knowing where to look I cannot be sure.


Anyway here is what I did, right or wrong it works.

Created the CFC (with has my delete function) as a JavaScript object.


<cfajaxproxy cfc="live.components.orders" jsclassname="callordersCFC"/>

Setup my grid and buttons, just the delete button in this example.


<InvalidTag type="text/javascript">
function init(){
grid = ColdFusion.Grid.getGridObject("ordersSearch");
var gridHead = grid.getView().getHeaderPanel(true);
var tbar = new Ext.Toolbar(gridHead);

//delete order button
     tbar.addButton({
text:"Delete Order",
cls:"x-btn-text-icon",
icon:"./images/icons/package_delete.png",
handler:onDeleteOrder
});
console.log(tbar);         
}

[More]


PageRank, Hilltop and TrustRank does it really matter?

Having recently posted about PageRank I wanted to expand on it a little here, not the recent update but the confusion and myths often associated with PR. I had a few emails after the post, asking questions about PageRank most making over exaggerate claims and misleading assumptions on its impact in relation to their search engine rankings.

The truth is many Webmasters often obsess over the importance of PageRank in relation to their Page Rank. Note two words, "Page Rank" not PageRank (PR), two different things. PR is just one of the many factors that Google uses to determine a page's actual Page Rank on their search result page (SERP) for a given search query.

[More]


December Google PR Update: Here We Go Again!

Anyone noticed PageRank (PR) changes in the last week? Google completed the last PR update for 2008 on December 31st this was confirmed by Matt Cutts soon after. My fairly new blog has jumped from 0 to 4 as a result. That's good news for me as I don't do links exchange and to be honest I stopped caring about what PR Google bestows on my sites especially when PR is NOT important for SERPs. But it help to reinforce the idea that content is king and blog owners should spend more time on writing content than participating in link programs. Good content should get natural links; I just need to start writing good content now!

That being said, some very strange PR behaviour on my own blog has me confused. New blog posts with no high ranking links in (such as the one on meta tag descriptions) got PR of 6, yes 6, where some root pages lost PR. Some of my friends blogs/websites dropped from 5 to 0 now that seems brutal but thankfully the SERP's didn't drop.

Will do some investigation and report back.


CFAJAXPROXY - JavaScript object from a CFC

So its boxing day, I am sitting back and having a few beers playing around with some CF8 tags that I have not used very much over the course of the year. A few of my fellow CF developers have been saying the best tag added to ColdFusion 8 was cfajaxproxy, to be honest I don't know what all the fuss is about, until now.

I have been meaning to update some functions in SalesMaxx particularly the shopping cart and with a few beers down and nothing but reruns on TV what a better time to try cfajaxproxy.

[More]


Happy Christmas Coldfusion Bloggers!

Just wanted to wish the CF community Happy Christmas.

More Entries

 

About Me

Glyn Jackson, 26 years old, MD and youngest member of a web development firm based in Staffordshire called Newebia Ltd. Academic background in BSc Information System & Internet Commerce. Online marketing expert (EE Ranked) and .NET developer. Has been using ColdFusion for just 3 years but loves it. "I am not a veteran in ColdFusion but I do work on challenging projects which help me learn more about ColdFusion and if I can contribute to the community in anyway then, it's all good!"

Recommends

  • ColdFusion