jquery Programming Glossary: extrastuff
JQuery pass more parameters into callback http://stackoverflow.com/questions/939032/jquery-pass-more-parameters-into-callback think the solution is as follows var doSomething function extraStuff return function data textStatus do something with extraStuff.. return function data textStatus do something with extraStuff var clicked function var extraStuff myParam1 'foo' myParam2.. do something with extraStuff var clicked function var extraStuff myParam1 'foo' myParam2 'bar' an object whatever extra params..
JQuery pass more parameters into callback http://stackoverflow.com/questions/939032/jquery-pass-more-parameters-into-callback the following function callBack data textStatus Therefore I think the solution is as follows var doSomething function extraStuff return function data textStatus do something with extraStuff var clicked function var extraStuff myParam1 'foo' myParam2.. think the solution is as follows var doSomething function extraStuff return function data textStatus do something with extraStuff var clicked function var extraStuff myParam1 'foo' myParam2 'bar' an object whatever extra params you wish to pass. .post.. doSomething function extraStuff return function data textStatus do something with extraStuff var clicked function var extraStuff myParam1 'foo' myParam2 'bar' an object whatever extra params you wish to pass. .post someurl.php someData doSomething extraStuff..
|