SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Aug 2011
    Location
    Trinidad and Tobago
    Posts
    194
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    JQuery Function from External File

    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.

  2. #2
    SitePoint Addict sdleihssirhc's Avatar
    Join Date
    Feb 2009
    Posts
    387
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I'm afraid I didn't really understand the question at all. How can you call a function before you load it?
    I'm the web overlord for Graphic Business Systems

  3. #3
    SitePoint Zealot
    Join Date
    Aug 2011
    Location
    Trinidad and Tobago
    Posts
    194
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by sdleihssirhc View Post
    I'm afraid I didn't really understand the question at all. How can you call a function before you load it?
    I actually got a solution which you can see here: http://www.latentmotion.com/separati...out-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.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •