skelleex — 2011-10-18T17:06:30-04:00 — #1
Hi I am new to jquery but I need a simple question answered that I can seem to find anywhere. How do you call a jquery function from an external js file and then load that function when the window loads, that is the .ready() function if I am not mistaken. Any help would be greatly appreciated.
sdleihssirhc — 2011-10-18T17:39:48-04:00 — #2
I'm afraid I didn't really understand the question at all. How can you call a function before you load it?
skelleex — 2011-10-18T17:49:03-04:00 — #3
I actually got a solution which you can see here: http://www.latentmotion.com/separating-jquery-functions-into-external-files-without-selectors/
What I was trying to do was to put my jquery function in an external file and only call it when I am ready for it which was when the page loads.