Re: [jQuery] Function to bind itself to some element

2009-11-08 Thread deyo.vuk
I have found the solution (and it is somewhat based on Qamal's suggestion for assigning. thanks Qamal!) Solution is to declare variable for new function, nested inside "main one" and to bind that one as event handler. Also to add call to that nested function when "main one" is called. jQuery.dat

Re: [jQuery] Function to bind itself to some element

2009-11-08 Thread deyo.vuk
Yes, I have tried (and now again) and I still keep getting the same message. Can the problem be something about order inside .js file? That the function is not properly declared? The first message I have posted contains full content of my .js file. Qamal Kosim-Satyaputra wrote: > > did you try

Re: [jQuery] Function to bind itself to some element

2009-11-08 Thread Qamal Kosim-Satyaputra
did you try -> jquery.dataTableHandler(param1, param2+1, param3) instead of -> dataTableHandler(param1, param2+1, param3) ??? you can try initializing the variable firsthand... jquery.dataTableHandler = function() {}; or something... then assign the function, but i doubt thats necessary On Sun,

[jQuery] Function to bind itself to some element

2009-11-08 Thread deyo.vuk
I'm probably missing something major in how this should work, but I'm stuck so here's the question: JQuery code in file dataTableHandler.js: jquery.dataTableHandler = function(param1, param2, param3) { $.ajax({ method: "post", data: ({newparam1: param1, newparam2: param3}), urL: "..