| Author |
Passing Variables Through Callback
|
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15230
|
|
I'm trying to go through some of my code and get rid of some duplicate boilerplate. Through out my app, I need to confirm certain things, like deleting. So I have something like this...so far...See the comments in the live click event for what I actually need to do.
|
 |
Ankit Garg
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9189
|
|
What if you add the two values as parameter to showConfirmDialog method and pass it to the callback (I'm no javascript guru so this might be a wrong solution)
Edit: I'm completely sure now that this post is useless, changing the parameters of showConfirmDialog/confirmRemoveMember must not be a choice...
|
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
|
 |
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15230
|
|
|
Right, because not everything I use a confirm for uses those parameters.
|
 |
 |
|
|
subject: Passing Variables Through Callback
|
|
|