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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T19:53:09+00:00 2026-06-01T19:53:09+00:00

When calling an applet id from JS giving Object doesn’t support this property or

  • 0

When calling an applet id from JS giving Object doesn't support this property or method error.

Please check the code…

<!--[if !IE]> Firefox and others will use outer object -->
    <object
        classid     = "java:com.mypack.myclass.ABCClass.class"
        type        = "application/x-java-applet"
        height      = "200"
        width       = "480"
        id          = "myappletId">
        <!-- Konqueror browser needs the following param -->
        <param name="cache_archive" value="a.jar, b.jar, c.jar" />
        <param name="codebase" value="applets/" />
        <param name="OnMouseLeftClickJS" value="showModal()">
        <!--<![endif]-->
        <!-- MSIE (Microsoft Internet Explorer) will use inner object -->
        <object 
            classid     = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
            codebase    = "http://java.sun.com/update/1.5.0/jinstall-1_5_0-windows-i586.cab"
            height      = "200"
            width       = "480"
            id          = "myappletId">
            <param name="code" value="com.mypack.myclass.ABCClass" />
            <param name="cache_archive" value="a.jar, b.jar, c.jar" />
            <param name="OnMouseLeftClickJS" value="showModal()">
            <param name="codebase" value="applets/" />
            <strong>No Java Support</strong>
        </object>
        <!--[if !IE]> close outer object -->
    </object>
<!--<![endif]-->

Now, in my showModal() js function I have,

var myId = document.getElementById("myappletId"); //At this point I am getting the object data.

I perform some operations in my modal window which is a jquery modal window and I have a button in it. When I click on that I am calling a function say xyz().

function xyz() {
    var myId = document.getElementById("myappletId"); 
    //At this point myId is getting empty.
}

This is happening in only IE Browser. I tested in IE8.
Works good in Firefox and chrome.

I am not navigating my page and on view source I can see my object tag.

Please help me out.

Thanks in advance…

  • 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-01T19:53:11+00:00Added an answer on June 1, 2026 at 7:53 pm

    Thanks for your effort guys, the mistake is in my code. When I open a modal window making the object tag visibility hidden in the back. Even I am make it visible after closing the modal window, This IE is not identifying it. Weird but true…

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

Sidebar

Related Questions

I read that you could call JavaScript code from a Java Applet by calling
I am trying to call javascript method from an Applet using netscapte.java.JSObject . in
The problem in the code below is calling one function from another - the
Many iPhone code samples (from Apple, etc.) include code like this: - (void)viewDidLoad {
I've successfully implemented a Javascript call from Silverlight (i'm calling a java applet). When
The problem in the code below is calling one function from another then all
Calling Html.RenderPartial(~/Views/Payments/MyControl.ascx); from a view works if MyControl.ascx is a control that directly inherits
Calling the ajax called URL works well without ajax eg. http://localhost/ci/controller/method/param_value . But using
Calling getActionBar returns null . This has been frequently reported so I've made sure
Calling urrlib2.urlopen on a link to an article fetched from an RSS feed leads

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.