Consulting

Results 1 to 4 of 4

Thread: get "attenzione" if in response exists

  1. #1

    get "attenzione" if in response exists

    my code:

    url="https://www.xamig.com/superenalotto/2005/12/31/risultati-montepremi-vincite-estrazione.php"

    ...
    ...
    With http
                .Open "GET", URL, False
                .send
                Do: DoEvents: Loop Until .readyState = 4
                html.body.innerHTML = .responseText
            End With
    ...
    if the page dont have a correct result appear the text like this:

    Attenzione! Si è verificato un errore: estrazione non trovata.


    I need to get the result in myvar

    note:
    instead if the result is correct result see here:

    https://www.xamig.com/superenalotto/...estrazione.php
    Sal
    1 help 1 pizza
    2 help 1 pizza 1 caff?
    3 help 1 pizza 1 caff? 1 mozzarella
    ...
    Spaghetti, Lasagne and Tortellini for the "Lady" ;-)

  2. #2
    VBAX Master Aflatoon's Avatar
    Joined
    Sep 2009
    Location
    UK
    Posts
    1,797
    Location
    Last edited by Aflatoon; 05-19-2025 at 06:52 AM.
    Be as you wish to seem

  3. #3
    Administrator VBAX Master georgiboy's Avatar
    Joined
    Mar 2008
    Location
    Kent, England
    Posts
    1,280
    Location
    Hi sal21,

    Please check the below link:
    https://excelguru.ca/a-message-to-forum-cross-posters/
    Click here for a guide on how to add code tags
    Click here for a guide on how to mark a thread as solved
    Click here for a guide on how to upload a file with your post

    Excel 365, Version 2408, Build 17928.20080

  4. #4
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,427
    Location
    Its not the first time that Sal21 has been informed re cross posting.
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

Posting Permissions

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