Hey guys and gals,
I am trying to do something like below:
buildDialogBox({u:'oba_1_2',f:loadJson('userlist.txt',
buildUserManageTable),d:'formDialog600'});
and have loadJson('userlist.txt', buildUserManageTable) run after the dialog
box loads, but it gets executed and then the buildDialogBox
not sure bout this, but you could try it:
buildDialogBox({
u:'oba_1_2',
f: function () { loadJson('userlist.txt', buildUserManageTable) },
d:'formDialog600'});
//kristinn
On 3/7/07, bmsterling [EMAIL PROTECTED] wrote:
Hey guys and gals,
I am trying to do something like below:
Never mind, figured it out, just had to wrap the function in a function tag:
function(){loadJson('userlist.txt', buildUserManageTable)}
--
View this message in context:
http://www.nabble.com/passing-a-function-to-a-function-with-variables-tf3365006.html#a9362332
Sent from the JQuery mailing
Whoops, make sure you add a closing } to the anonymous function :)
On 08/03/07, Chris Domigan [EMAIL PROTECTED] wrote:
Ben,
You need to enclose your loadJson function in an anonymous function,
otherwise it is evaluated at runtime:
buildDialogBox({
u : 'oba_1_2',
f : function() {
Ben,
You need to enclose your loadJson function in an anonymous function,
otherwise it is evaluated at runtime:
buildDialogBox({
u : 'oba_1_2',
f : function() {
loadJson('userlist.txt', buildUserManageTable),
d: 'formDialog600'
});
Chris
On 3/7/07, bmsterling [EMAIL PROTECTED] wrote:
Hey guys and gals,
I am trying to do something like below:
buildDialogBox({u:'oba_1_2',f:loadJson('userlist.txt',
buildUserManageTable),d:'formDialog600'});
and have loadJson('userlist.txt', buildUserManageTable) run after the dialog
box
Thanks guys, figured that out after I asked the question. Isn't that always
the case.
Thanks for your help anyway.
--
View this message in context:
http://www.nabble.com/passing-a-function-to-a-function-with-variables-tf3365006.html#a9363321
Sent from the JQuery mailing list archive at