Can i use internet with Lazarus? lazarus / 9-Editor ---------------------------------------------------------------------- Danail · 2006-10-04 12:36 Hi all! Please tell me if I can request, download and preview a web site or page with Lazarus. If possible, please tell me how. Tanks in regards. ---------------------------------------------------------------------- CCRDude · 2006-10-04 14:08 Well, it's quite easy, take a look at he button named "Search" and you'll find a multitude of suggestions (which will probably include Synapse and TIpHtmlPanel or whatever it was called) ---------------------------------------------------------------------- Danail · 2006-10-04 14:11 Do you mean rthe search option in the forum? I am already searching there but nothing usefull for now ... ---------------------------------------------------------------------- Zorba · 2006-10-05 04:42 Networking can be accomplished by using either Synapse (blocking) or lNet (non-blocking). Viewing the html source similar to a browser, I haven't tried yet, but downloading page source and saving it as html is easy with Synapse, and somewhat easy with lNet. ---------------------------------------------------------------------- Danail · 2006-10-07 10:17 Thanks But how to use that? And what exactly is that Sybapse? ---------------------------------------------------------------------- CCRDude · 2006-10-07 10:40 Synapse - demos and descriptions included. ---------------------------------------------------------------------- Danail · 2006-10-09 13:04 Thanks to all who posted me. Especially to CCRDude. I feel interesting exploring the new .pas files from Synapse. Thanks dude However I did my task on another way - I used the TProcess object to call InternetExplorer with parameter the addres of the page and made it to go to the page I want to. The effect was marvelous atleast for me. No need to make the page look as good as shown in internet explorer On the same way appeared that can be opened and folders in the hard drive. (Another useful thing for my prog). While exploring synapse I reached to a problem. I used the HTTPGetText function. Declared in the var section SomeStrings: TStrings; then I called the httpgettext function to fill the SomeStrings with text then compiled the project and run it and... well... nothing happened. The project blocked very nice I waited for several mins then went outside my house for a while, come back after 1 hour and it still was blocked. It's blocking do not affect other programs running. This hapens every time that I start the ready Project1.EXE file no mater if lazarus is turn on or off. On the other hand while the project1.exe is blocked internet explorer opens pages succesfully, so the reason maybe is not in the internet. If some one know how to deal the problem I will be glad to understand. Thanks to all. ---------------------------------------------------------------------- CCRDude · 2006-10-09 17:46 Maybe you could show us the code you wrote around that HTTPGetText? It's difficult to guess an error just from a description. Also, it could be helpful if you just debug the application to the point where it hangs; insteda of starting it with F9, start it with F8 and then press F8, which executed lines by line. Or better, set a breakpoint (click on the line number on the left of the editor) and run with F9; the code will stop at the breakpoint where you can continue line by line with F8.