HumanScaleDev
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},{ma ingrid.las tname@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:getDetail s({files.i d@click})" />
@click and still that doesn't work for me.
Any ideas?
Thank you!
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(
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:getDetail
@click and still that doesn't work for me.
Any ideas?
Thank you!
Have you tried to use an onFocus event instead of onChange?
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.