Filter and refresh CFGrid via url?

2009-01-15 Thread Chris Smith
Hey Guys, I cant figure out how to pass a variable to the grid via a url string 
as in the example below.

a href=## onclick=ColdFusion.Grid.refresh('UserGrid',false)Click me/a  

Its trivial with a form using Coldfusion.Grid.refresh and passing the form 
variable but Im unsure how to do this with a url variable.

Thanks for any help you can offer. I hope the example below displays my intent.

cflayout type=tab
cflayoutarea title=myLayout
a href=## onclick=ColdFusion.Grid.refresh('UserGrid',false)Click me/a   
   
cfform id=GridForm
cfgrid name=UserGrid 
bind=cfc:cfc.users.getusers({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection},{uid})
cfgridcolumn name=UID display=false
cfgridcolumn name=FNAME header=First Name
cfgridcolumn name=LNAME header=Last Name
/cfgrid
/cfform
/cflayoutarea
/cflayout
CFC:
cffunction name=getusers access=remote
  cfargument name=page required=yes
  cfargument name=pageSize required=yes
  cfargument name=gridsortcolumn required=yes
  cfargument name=gridsortdirection required=yes
  cfargument name=uid required=yes

cfquery name=qGetUsers datasource=mydsn
SELECT * FROM tbl_Names WHERE UID = '#uid#'
/cfquery
cfreturn queryconvertforgrid(getusers,page,pagesize)/
/cffunction

CSmith 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318039
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


CFDIV and ThickBox ;)

2008-02-15 Thread Chris Smith
Hey GUys, for months Ive been calling thickbox (jquery plugin) from inside 
cfdivs using 

cfloop query=mydsn
a href=javascript:tb_show('My Image 
Caption','/img/#fetchgallery.ImageName#') rel=The Name of my gallery 
class=thickbox 
img src=/img/#fetchgallery.ThumbNailImageName# border=0/
/a
/cfloop

Simple enough.. I have a loop that setsup a list of thumbnails that have links 
to them, they are all grouped together with rel. When ThickBox loads it 
SHOULD produce a gallery inside the cfdiv that this is loaded in. Thick box 
will load them one at a time but it looses its gallery function - not paging 
forward or backward.

Anyone had any experiance with this... CFDIV has made my world so much simpler 
and made me look soo much smarter than I really am I feel that I MUST be doign 
somethign wrong... 

Thanks ;)


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299065
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


cfdiv and anchors

2007-10-28 Thread Chris Smith
I'm have a issue with anchoring to a cfdiv area.

 

Basically I have a two column layout with a LONG list of links on the left
and a cfdiv area on the right. This worked great until the links on the
right scrolled down below the cfdiv area. Now when I hit a link towards the
bottom of the list I have to scroll backup to the top of the page to see the
updated content.

 

a
href=javaScript:ColdFusion.navigate('/mypage.cfmg','DivContentArea')Link
Text/a

 

I tired #DivContentArea - no love.

 

What am I doing wrong here?

 

 

Big C

 



~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292206
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4