Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By sunde887

Thread: Can't access Object of JavaScript

  1. #1
    scsvel's Avatar
    scsvel is offline Member
    Join Date
    Jun 2011
    Posts
    3
    Rep Power
    0

    Default Can't access Object of JavaScript

    Hi all,
    Actually I designed a COM DLL using VB.Net and Its working good. I created instance for the COM Objetc and using it in my JavaScripting like,

    Java Code:
    var obj = new ActiveXObject("MyProgID");
    var tab = obj.function1(); //Here function1 returns an object of 2D array.
    So now "tab" having an Object and its showing values if I drill through Evalute/View but I can't access the values. I attached the screenshot of the Evalute Box...


    I tried many ways like
    tab.(0).(0)
    tab.[0].[0]
    tab.("0").("0")
    tab.["0"].["0"]
    tab["0"]["0"]
    (tab["0"])["0"] etc....


    Can anyone help me on this?

    Thanks,
    Shanmugavel.C
    Attached Thumbnails Attached Thumbnails Can't access Object of JavaScript-data.png  

  2. #2
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    Java is to JavaScript as ham is to hamster. They are entirely different languages, and you would get a lot more help on a JavaScript forum.
    scsvel likes this.

  3. #3
    Dark's Avatar
    Dark is offline Senior Member
    Join Date
    Apr 2011
    Location
    Camp Lejuene, North Carolina
    Posts
    643
    Rep Power
    4

    Default

    Um, so JavaScript is now Java? I'm confused, I thought they were two totally different languages.
    • Use [code][/code] tags when posting code. That way people don't want to stab their eyes out when trying to help you.
    • +Rep people for helpful posts.

Similar Threads

  1. Replies: 0
    Last Post: 03-01-2011, 10:41 AM
  2. Access object variables
    By AcousticBruce in forum New To Java
    Replies: 6
    Last Post: 01-10-2011, 09:41 AM
  3. how to access JSP variable in javascript
    By sauravsinha in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 03-31-2010, 04:41 PM
  4. Object access between classes
    By qazplm123890 in forum AWT / Swing
    Replies: 1
    Last Post: 03-05-2009, 05:00 AM
  5. how to access to an object from a thread
    By tamayo in forum New To Java
    Replies: 1
    Last Post: 07-24-2007, 04:24 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •