Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Popups and Background with _webbrowser4
Message
From
25/01/2005 14:56:37
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
00980421
Message ID:
00980500
Views:
57
If you are planning to create your own web site, they are good. But, unless you plan to build your own web server, then these may be a bit more difficult to maintain. There are few web hosts out there that support VFP{ based web sites. Most support ASP / ASP.net for windows, and PHP for Unix. I strongly recommend that you look into building your site using one these over the VFP ones. But if the site is either internal (intranet) or the web server is inhouse, then VFP approuch may be the best. Because, you are here on the UT, says you like VFP like the rest of us.

Happy coding.

>I will have to check those out - I have an ActiveVFP "setup" somewhere. But for now I need to test some behaviors!
>
>Thanks
>
>>I am assuming you are speaking of a physical HTML type file residing on the harddrive. If this is the case, use the FileToString() to read it in to a variable and thne send it to the client using the function in FoxIsapi. The ReadURL is a client side function, not a server side function.
>>
>>It has been years sence I worked with FoxIsapi (VFP 5.0). When ASP came in to play, I drop using it. Besides, there are excellant Foxpro based Isapi (west-wind, ActiveVFP, etc.) that I fill little need to build my own.
>>
>>>Greg -
>>>I am trying to figure out how to have a VFP COM (foxisapi) return a "hard" page to the browser. I know it can return a "scripted" page. The "Hello World" samples will return script to the client. Can a VFP COM return an HTML (file) page to a client?
>>>
>>>Or - is that something that should be done with the ReadURL function?
>>>
>>>Thanks
>>>
>>>
>>>>>Hi Greg,
>>>>>I don't understand. I looked at the page you refered me to. That just reads the URL, it doesn't load in the background, specifically I can't run the _webbrowser4.Refresh2() method on the file that's read (unless I don't understand it). I don't think I can get away from having to see the web page any way.
>>>>>
>>>>>>Unless you need to see the web page, try loading in the background with this.
>>>>>>
>>>>>>Check http://fox.wikis.com/wc.dll?Wiki~ReadUrl~VFP
>>>>
>>>>When you run the ReadURL, it retreives the HTML content of the web page and places it in a string variable.
>>>>
>>>>
>>>>cHTMLstring = ReadURL("http://www.GLRsoftware.com" )
>>>>
>>>>
>>>>Unlike the web browser control (_webbrowser4) which loads and executes any script embedded. This is where the popup is come from. If no script code is execute, no popup will occur. If I understand you right, you are only interested in the contents of the web page, not the script being ran.
Greg Reichert
Previous
Reply
Map
View

Click here to load this message in the networking platform