Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HTML getting switched?
Message
De
15/04/2003 12:02:15
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00777574
Message ID:
00777831
Vues:
33
Hi Sergey,
My God, you are a fountain of knowledge.
I didn't study the document you refered me to, because my gut tells me it won't work.
I'm trying to read the HTML produced by a CGI file, so there is no HTML file to download.
If I'm wrong, please let me know.

Is there any way to know how Webrowser control is going to reformat the HTML?
Can I depend on the reformatting to always be the same?
After you see my reply to your question about the FOR EACH loop crashing, you'll see that
I'm looking for a particular line in the source code, so I'm concerned about the Webrowser
reformatting it.


>Hi Bill,
>
>The HTML is reformated by Webrowser control. You can download original HTML using URLDownloadToFile function http://www.news2news.com/vfp/?group=-1&function=268.
>
>>I'm starting to use the VFP WebBrowser.
>>
>>I have this line in my code:
>>= ALINES( THIS._iaLines, loFrame.documentElement.outerHTML )
>>
>>It works fine, except:
>>
>>when I right mouse on the page and select "View Source", I see this line:
>><A href='...' target='_parent' title='Blue'>
>>
>>but during debugging I find that THIS._iaLines contains this line:
>><A Title=blue href='...' target=_parent>
>>
>>Just in case you didn't notice, the title has been moved inside the brackets, and the single quotes have been lost.
>>What gives?
>>
>>Is the "...documentElement.outerHTML" reading a different frame than "view source" is?
>>Does "...documentElement.outerHTML" rearrange things inside brackets to suit itself?
>>
>>TIA
Bill Morris
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform