Link to home
Start Free TrialLog in
Avatar of HumanScaleDev
HumanScaleDevFlag for United States of America

asked on

cfgrid and cfwindow

Hello,
I'm trying to build an application similar to the one that is posted here:
http://www.brianflove.com/public/cfwindow/

Basically, this is the issue my application and this application are having:
1. Select a row in the grid
2. The window opens
3. Close the window
4. Try to select the same row already selected, to open the window again.  The window wont open unless you click on another row and go back to the previous row.

How can I make the window open again without having to select another row?

The application is using this piece of code to call the function that opens the window:
<cfajaxproxy bind="javascript:todetail({maingrid.id@change},{maingrid.firstname@none},{maingrid.lastname@none})" />

todetail is the JS function. maingrid is the grid's name. and the id is being passed to the function on change.

I on the other hand, am using   <cfajaxproxy bind="javascript:getDetails({files.id@click})" />
@click and still that doesn't work for me.

Any ideas?

Thank you!



Avatar of enriquecadalso
enriquecadalso
Flag of Colombia image

Have you tried to use an onFocus event instead of onChange?
Avatar of HumanScaleDev

ASKER

Hi Enrique,

I tried @click and onFocus and it didn't work. It seems like it doesn't want to call the JS function more than once when the binding has occurred.

I guess the question is, how can I call a function more than once when using cfajaxproxy bind ? Once the user clicks on a row it calls the function but it won't work again unless you click on another row first.
ASKER CERTIFIED SOLUTION
Avatar of HumanScaleDev
HumanScaleDev
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial