Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- ...stuffs...
- myFunction(par1, par2, anotherFucntion_callback);
- }
- );
- function anotherFunction_callback(data) {
- ..stuffs..
- }
- myFunction(par1, par2, anotherFunction_callback);
- var temp = function() { anotherFunction_callback(data) };
- function temp() { myFunction_callback(data) };
- // even though this looks just like a free function,
- // you still define it inside the ready(function())
- // that's why I call it "alternative". They are equivalent.
- $(document).ready(function() {});
Add Comment
Please, Sign In to add comment