CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2012
    Posts
    5

    How to grab an element by it class, and saying if it contains a number

    Hi Guys

    I was just wondering if anybody can help me with a problem i have been having. Basically what i am trying to do is grab an element off a WebPage by it's class name and make Vb automatically look up to see if there is a number (greater than) with in the element. I have the html code below. In my case i am looking for a code to say greater than 0

    <div class="tix_limit_num">0</div>

    Any suggestions here guys.

    Thank You In Advance.

  2. #2
    Join Date
    Jun 2012
    Posts
    5

    Re: How to grab an element by it class, and saying if it contains a number

    bump

  3. #3
    Join Date
    Apr 2012
    Posts
    43

    Re: How to grab an element by it class, and saying if it contains a number

    Are you already able to retrieve the HTML for the whole web page ?
    Last edited by Niya; June 29th, 2012 at 01:05 PM.

  4. #4
    Join Date
    Apr 2012
    Posts
    43

    Re: How to grab an element by it class, and saying if it contains a number

    [DELETED] Double post
    Last edited by Niya; June 29th, 2012 at 12:45 PM.

  5. #5
    Join Date
    Jun 2012
    Posts
    5

    Re: How to grab an element by it class, and saying if it contains a number

    what do you mean, yes

    <div class="tix_limit_num">0</div>

    is the html on the webpage

  6. #6
    Join Date
    Jun 2012
    Posts
    5

    Re: How to grab an element by it class, and saying if it contains a number

    oh sorry, yes i am already able to receive the whole html

  7. #7
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: How to grab an element by it class, and saying if it contains a number

    Sounds like you are trying to manipulate TICKET sales, which is the same as hacking. Against the AUP (Bottom of every page)
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured