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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:33:50+00:00 2026-06-10T14:33:50+00:00

I have some code where there is a var Signature in one file (File

  • 0

I have some code where there is a “var Signature” in one file (File A). And in the same File A a method is created “Signature.prototype.PreSaveSignature = ..”.
And then in a second file (File B), the same method is created “Signature.prototype.PreSaveSignature = ..”.

Now in IE8 and below it executes the method in File B … while in IE9 it executes the method in File A. Howecome? Is there any valid reason for having two methods with same name using prototype?

  • 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-06-10T14:33:51+00:00Added an answer on June 10, 2026 at 2:33 pm

    You cannot have two different methods on the same prototype with the same name. The one that is defined last will be in operation for objects created in the future. You can think of Signature.prototype.PreSaveSignature as a storage slot for a method pointer. It can only hold one value and whichever value was last assigned to that storage slot is the one that will be used for signatures Signature() objects.

    If you are getting different behavior in different browsers, that is either because you are getting different errors in one browser versus the other or you are getting different load and execution timing in the different browsers with something dynamically loaded.

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

Sidebar

Related Questions

I have some code to read from a pdf file. Is there a way
I have ace editor integrated in my site. I have some code there, and
I have some code that looks like this. There is also an autoincrement field
I have some code that creates a Process instance and later starts it. There's
In my application there is language detection. Languages have some identification code like en
I have a web application with bunch of HTML code. There are some style-attributes
I have some code here: case MONITORTYPE_WUXGA_SXGA_WXGA: bResult |= (var == enum1); bResult |=
I have created some code to popup a confirm dialog if a user tries
I have some code as follows var MyObjectInstance = httpContext.Items[key] as MyObject What overhead
I have some code like this: public void SaveImage(int Counter) { var task =

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.