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 6233829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:22:16+00:00 2026-05-24T10:22:16+00:00

I extended jquery object directly with a tween method. Does this apply to all

  • 0

I extended jquery object directly with a tween method.
Does this apply to all pages that use jquery or just within the page I made the extend. For example say this was a sublevel page and I had a script attached like below.

sublevel_page.js

$(function(){
  /// some script to do with my sub level page

  // my easing script
        jQuery.extend( jQuery.easing,{
            easeInOutExpo: function (x, t, b, c, d) {
                return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
            }
    })

})

Then I have lets say my home page which also has a script attached to it called home.js

$(function(){
   // my home page code
   // would I need to add my extend easing code again here or is it part of the 
   // framework once the extend happens in my sublevel_page
});

There are a few gray areas in jquery that I still don’t fully get and this is one. In a lot of languages you extend the framework in the application start level and it applies instantly to all code that uses the framework.
If my above assumption is correct then how would other pages that use jquery know as they are getting jquery scripts added to them when they load. Can someone please shed some light on this subject for me.

  • 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-24T10:22:17+00:00Added an answer on May 24, 2026 at 10:22 am

    When you extend jquery and add your own plugins into it, it gets added to the global object jQuery or $. But you have to make sure that you include the files which have this extending code before other files in which you are trying to use them. I hope this makes sense.

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

Sidebar

Related Questions

Can jQuery be extended so that I can use the above syntax? I can't
IE only bug... go figure... I get Object doesn't support this property or method
I am adding events to an extended object in jQuery using jQuery.extend(); Using jQuery
I have a standard javascript object whose prototype is extended with a .start() method
I recently extended with UserProfile so my admin.py looks like this: from django.contrib import
I have extended the ASP.NET MVC Html Helper to include my own ValidationImage that
I have some JavaScript/jQuery code that watches for the changed event on a checkbox:
So I'm using this pretty standard jquery plugin pattern whereby you can grab an
I just stumbled over a small problem when extending javascript objects using jQuery. When
my question is when do i should use $.extend(...) ? In many jquery plugins

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.