[jQuery] passing a function to a function with variables

2007-03-07 Thread bmsterling
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

Re: [jQuery] passing a function to a function with variables

2007-03-07 Thread Kristinn Sigmundsson
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:

Re: [jQuery] passing a function to a function with variables

2007-03-07 Thread bmsterling
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

Re: [jQuery] passing a function to a function with variables

2007-03-07 Thread Chris Domigan
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() {

Re: [jQuery] passing a function to a function with variables

2007-03-07 Thread Chris Domigan
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

Re: [jQuery] passing a function to a function with variables

2007-03-07 Thread Choan C. Gálvez
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

Re: [jQuery] passing a function to a function with variables

2007-03-07 Thread bmsterling
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