Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7445821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T12:07:54+00:00 2026-05-29T12:07:54+00:00

I have multiple jquery files in my project. Yesterday googled this problem and find

  • 0

I have multiple jquery files in my project.
Yesterday googled this problem and find solution. I edited this

$(document).ready(function () {

with this

function pageLoad() {

Now problem is that if i will use this in all my jquery files. Every scripts will stops working.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T12:07:57+00:00Added an answer on May 29, 2026 at 12:07 pm

    That is two different things. The

    $(document).ready(function () {
    

    is from and to jquery, it tells when the DOM is loaded and it start executing the code inside.

    The

    function pageLoad() {
    

    is from ASP.NET and it is one of handler of Application.Load (client-side)

    The reason why it will stop working is because in the same page you can only have one event with the same name, by default pageLoad will be the handler of Application.Load but you can associate another name. I don’t see why you have problems between the two, can you explain it better?

    EDIT:
    After your comment, if you want/need to use Sys.Application.add_load (by default pageLoad) you should add a different name for each js file you need.

    From msdn:

    // Attach a handler to the load event.
    Sys.Application.add_load(applicationLoadHandler);
    
    function applicationLoadHandler() {
        // Redirect to alternate page if not business hours.
        var d = new Date();
        if (!(8 < d.getHours() < 17)) {
            window.location = "AfterHours.aspx";
        }
    

    As you can see, you can give a different name to add_load and you should give a different name to use more than one for the same page/request.

    }

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have multiple jquery files in my project. I am using facebox using jquery1.4.2
I have a problem using multiple (2) jQuery plugins. I've googled a little but
I have a webpage with multiple DIV elements. If i use the jquery function
I have used Fancybox on multiple occasions and never run into this problem. I
I am using uploadify plugin of jquery and have set multiple files upload to
I have noticed that sometimes people have to use multiple versions of jQuery in
I have a fairly complex html form enhanced via jquery. It has multiple tabs,
I have multiple layers in an application and i find myself having to bubble
I have multiple images stored at URLs like: /uploads/hash/IMAGE001.jpg . Using jQuery UI's sortable()
How can I pass multiple variables between PHP files using jquery with json? Ex:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.