Welcome to Clarion Community Sign in | Join | Faq

Clarion Language and Runtime Library

Started by gammalost at 04-18-2008 4:02 AM. Topic has 4 replies.

Print Search
Sort Posts:    
   04-18-2008, 4:02 AM
gammalost is not online. Last active: 9/24/2008 2:03:06 PM gammalost

Top 50 Posts
Joined on 09-14-2007
Posts 12
Help getting HTML with clarion
Reply Quote
First of all, I know nettalk is great, and I thank the creators for making it. BUT, I am not looking to integrate nettalk into my app. ("get nettalk" seems to be a very common answer to any question regarding clarion and the internet).

Here is my problem. I need a way to put the contents of a html file into a variable so I can analyze it.
Ie I need LOC:htmlbody to contain the HTML code of ie www.myurl.com/mypage.htm.
I need this to be able to analyze and extract information from a package tracking page.
I dont need to view the HTML page in any way, just get the contents of it.


Any hints would be helpful.
Thanks in advance

Using clarion 6.3, Legacy



   Report 
   04-27-2008, 4:06 PM
Clarion is not online. Last active: 10/28/2008 3:12:45 AM Clarion

Top 50 Posts
Joined on 03-05-2006
Norway
Posts 14
Sv.: Help getting HTML with clarion
Reply Quote
Hi,

I also use Clarion Legacy (9058) and Nettalk.

I`m truly sorry to say that I cant get passed the "Get NetTalk" (otherwise you are in a world of hurt), and my tips is to start reading about winsoc, Tcp/Ip protocol and so forth.

according to nettalk documentation, these to lines of code saves you many (many) hours of investigation.

ThisWebClient.Fetch('www.TheWebPage.com/Index.htm')

My_COOL_Variablet = ThisWebClient.Page [1 : ThisWebClient.PageLen]

So sorry about this, but "Get Netalk !!"

Cheers
Tor-Bjarne

   Report 
   04-28-2008, 3:00 AM
gammalost is not online. Last active: 9/24/2008 2:03:06 PM gammalost

Top 50 Posts
Joined on 09-14-2007
Posts 12
Re: Sv.: Help getting HTML with clarion
Reply Quote
I caved and got nettalk.

I can be stubborn, but I know when im beaten :)

   Report 
   05-05-2008, 2:54 AM
gammalost is not online. Last active: 9/24/2008 2:03:06 PM gammalost

Top 50 Posts
Joined on 09-14-2007
Posts 12
Re: Sv.: Help getting HTML with clarion
Reply Quote
Nettalk works great, but I do have a problem reading nordic pages (NetWebClient).
The problem is that the nordic characters, ie æøå does not show right.

I get similar problems with æøå if trying to read a txt file using ie the ASCII driver with the OEM option.
Could this be related somehow ?


   Report 
   05-05-2008, 3:04 PM
Clarion is not online. Last active: 10/28/2008 3:12:45 AM Clarion

Top 50 Posts
Joined on 03-05-2006
Norway
Posts 14
Sv.: Re: Sv.: Help getting HTML with clarion
Reply Quote
Hi,

Is there a place where you can specify Unicode (UTF-8) ?

Cheers
Tor-Bjarne

   Report 
Clarion Communi... » Clarion » Clarion Languag... » Sv.: Re: Sv.: Help getting HTML with clarion

Powered by Community Server, by Telligent Systems