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

  • Home
  • SEARCH
  • 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 527469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:53:10+00:00 2026-05-13T08:53:10+00:00

I have this function correctly linked in an external .js file… function SubmitAge(age, UpdatePanelID,

  • 0

I have this function correctly linked in an external .js file…

 function SubmitAge(age, UpdatePanelID, HiddenAgeID) {
  $get(HiddenAgeID).value = age;
  __doPostBack(UpdatePanelID);
 }

and am calling it like this from an onClick of an a href="#" … html tag

(tags removed, please scroll right as stackoverflow has the greatest difficulty in displaying simple content, 7th display related edit, thanks stackoverflow)

a href="#" onclick="SubmitAge(24, 'ctl00_MainContent_arFrom_upAgeRange', 'MainContent_arFrom_HiddenAge')" runat="server" 24 /a 

yet, i am getting this error, and its being called on the first line of the SubmitAge function (line with $get(HiddenAgeID)… etc…)

Error:
Microsoft JScript runtime error: 'null' is null or not an object

i’ve copied and pasted my WATCH windows in visual studio .net (vs2010 beta 2 using vb.net & c#) while the execution breaks inside teh SubmitAge .js function…

  age 53 Number
  UpdatePanelID "ctl00_MainContent_arTo_upAgeRange" String
  HiddenAgeID Undefined identifier Error

Why on earth is HiddenAgeId, clearly passed just like UpdatePanelID, is returning an “Undefined identifier Error”??? its perplexed me to the point where i have no room to move! have i missed something guys? thanks – your help or pointers is greatly appreciated.

edit: Update: turns out it works perfectly (as it should) when i load it up in FireFox, but has the resulting error in Internet Explorer, this is not a browser compatibility issue, it should also work in IE, but it doesn’t!

  • 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-13T08:53:10+00:00Added an answer on May 13, 2026 at 8:53 am

    so far, i’ve determined that this is a bug in internet explorer, it really is not expected behaviour, and it can’t be by design under any condition, and i’m almost certain it’s a bug. i have tried everything from rearranging js function arguments to adding dummy arguments, and restarting internet explorer, visual studio and the computer several times with no luck.

    so, i’ve decided to put the entire functions contents directly into the onclick=”(lines of code” event attribute, which means that for every single page on my website, the entire functions lines of code will have to be re printed 110 times (a good 20 to 30 KB of download for users)… this is for the time being anyway, until i have the time to find a better solution.

    does anyone know if we can give the correct department’s bug report team a link or a pointer to this thread so that they may at least investigate and fix this problem for the betterment of the product? i’m not entirely sure if it’s a vs or ie issue, but i think they would both be concerned by this. am willing to provide problem replication help if needed. thank you to everyone for you help.

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

Sidebar

Ask A Question

Stats

  • Questions 302k
  • Answers 302k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer After looking around for quite some time, I have finally… May 13, 2026 at 8:21 pm
  • Editorial Team
    Editorial Team added an answer I'd code something like this as follows: for i, grp… May 13, 2026 at 8:21 pm
  • Editorial Team
    Editorial Team added an answer Your Java program needs to be invoked from the command… May 13, 2026 at 8:21 pm

Related Questions

I have very little idea what's going in regards to C++ templates, but I'm
What is the best way to create several scrollable regions in an ActionScript 3
I was struggling with the issue described in this question (declaring a template function
I have an application consisting of different modules written in C++. One of the
I have been provided with a C++ DLL and associated header file in order

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.