+ Reply to Thread
Results 1 to 13 of 13

Javascript creating object issue?

  1. #1
    Registered User
    Join Date
    07-01-2015
    Location
    Minnesota
    MS-Off Ver
    7
    Posts
    8

    Javascript creating object issue?

    Not sure if I am referencing correctly or if Javascript is my cause. Here is the code HTML code.
    Please Login or Register  to view this content.
    When I go to reference the ID tag name, with
    Please Login or Register  to view this content.
    it doesn't work. States object does not support method or property. .innertext .text does not work either. How should I reference the value?

    Thanks much guys.

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Javascript creating object issue?

    Getelementsbyid is wrong, should be getelementbyid

  3. #3
    Registered User
    Join Date
    07-01-2015
    Location
    Minnesota
    MS-Off Ver
    7
    Posts
    8
    Quote Originally Posted by Kyle123 View Post
    Getelementsbyid is wrong, should be getelementbyid
    Thanks... Isthere a method to access via label name?

  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Javascript creating object issue?

    I think you want getelelemtsbytagname if my label you mean element type

  5. #5
    Registered User
    Join Date
    07-01-2015
    Location
    Minnesota
    MS-Off Ver
    7
    Posts
    8

    Re: Javascript creating object issue?

    Here is the full VBA. I keep recieving object required. Forgive me as I am new to VBA with HTML so I am learning the syntaxt of HTML. I assume, I am not hitting the HTML doc correctly. Tag vs ID?

    Please Login or Register  to view this content.

  6. #6
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Javascript creating object issue?

    What's the url?

  7. #7
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Javascript creating object issue?

    You also will not have multiple results here:
    Please Login or Register  to view this content.
    Get element by ID returns a single element not multiple, so should be:
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    07-01-2015
    Location
    Minnesota
    MS-Off Ver
    7
    Posts
    8

    Re: Javascript creating object issue?

    Unfortunetely the URL is secure. Has secure info in it. I realize this may be difficult.

    Kyle, your second one gets me that the object does not supprt method. I tried value, inner text and recieve the same thing. Thoughts?

  9. #9
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Javascript creating object issue?

    Which version of IE are you using? Earlier ones do not support getElementsByClassName

    Without seeing the markup it's impossible to help you any further.

  10. #10
    Registered User
    Join Date
    07-01-2015
    Location
    Minnesota
    MS-Off Ver
    7
    Posts
    8

    Re: Javascript creating object issue?

    Given it is 6200 lines of code, I can't post it. And even if I give you the URL, it will block you. So, aside from the HTML/JAVA In the earlier post what info can I give you? Headings? ETC?

  11. #11
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Javascript creating object issue?

    That was kind of the point I can't help you. - It might be better to do this on an open site whilst you are learning so we can look at the same thing

    You didn't say which version of IE you are using.

  12. #12
    Registered User
    Join Date
    07-01-2015
    Location
    Minnesota
    MS-Off Ver
    7
    Posts
    8

    Re: Javascript creating object issue?

    Got you. Thanks for the help. IE 9. getElementsByClassName works on a nother script I am using on the site. I know it works. It is the way I am referencing the DIV I am sure. Is there a way to see parents and child nodes easily? I am using developer in IE?

  13. #13
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Javascript creating object issue?

    Yes, use chrome the developer tools are much better - same principles though. So do your working out in Chrome and then code for IE

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Call Javascript in VBA using IE object / update DateDropBox
    By shahzeb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-07-2014, 02:36 PM
  2. .Find Malfunctioning, Object Issue
    By Centexcel in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-02-2013, 04:20 PM
  3. Object Issue
    By darbar82 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-16-2013, 05:16 AM
  4. [SOLVED] File System Object Issue.
    By Max_Taylor in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-25-2012, 07:01 PM
  5. Converting Column Object to Line Object Issue
    By cocucraf in forum Excel Charting & Pivots
    Replies: 9
    Last Post: 07-08-2009, 04:15 AM
  6. Creating an object
    By aagray in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2006, 12:15 PM
  7. Creating a new Object
    By ADG in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-28-2006, 05:25 AM
  8. [SOLVED] Object variable issue
    By Tom in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-08-2006, 04:10 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1