Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Victor Espina
  Where is Victor Espina?
 Rancagua
 Chile
 Victor Espina
 To: Thomas Cayne
  Where is Thomas Cayne?
 Brimfield
 Ohio - United States
 Thomas Cayne
 Tags
Subject: RE: ACTIVEVFP - Getting started
Thread ID: 409131 Message ID: 416002 # Views: 44 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Web Applications
Date: Thursday, December 18, 2014 3:43:41 PM         
   


Could you post here the href value of one of those links?

Victor


> Hello Victor,
>
> Thanks for posting this. I'm new to activeVFP but not to Foxpro as I was a programmer in the 90's. Now I'm back on the scene again. I'm on GoDaddy.com with a cheap testing host. I'm working on a massive project hoping that VFP will solve this.
>
> You finding the bug in MAIN.prg is very helpful. I inserted it and the page loads but now all the links produce "This webpage is not available". I traced it down to oProp.ScriptPath which echos "/fp". Your test.html works when I type it. I think the links are point to "/". I spend 3 weeks on this already setting up 3 websites + 2 at home.
>
> Can you help? Thanks.
>
> > Elijah, it should work. Current release of AVFP has a bug on MAIN.PRG that avoids to automatically open Default.avfp if you point to the root folder, i.e., http://localhost/demo/. This can be fixed adding the line:
> >
> > oProp.Ext = ".avfp"
> >
> > as shown here:
> >
> >
> >   OTHERWISE   && get .avfp script
> >     IF !ISNULL(oProp.Action) AND !EMPTY(oProp.Action)  
> >         * This section must stay here for pure scripting mode
> >     	lcHTMLout= FILETOSTR(oProp.HtmlPath+oProp.Action+oProp.Ext)
> >     	oProp.RunningPrg=oProp.Action+oProp.Ext
> > 	    lcHTMLout= oHTML.mergescript(lcHTMLout)
> >     ELSE    && goto default page
> > *		USE mydbf  && test error
> > 		CookieLogin()  && checks for cookie to authenticate
> > 		oProp.Ext = ".avfp"   && FIX FOR DEFAULT PAGE AUTO LOADING
> > 		lcHTMLfile = 'default' + oProp.Ext
> > 		lcHTMLout= FILETOSTR(oProp.HtmlPath+lcHTMLfile)
> > 		oProp.RunningPrg=[default]+oProp.Ext
> > 		lcHTMLout= oHTML.mergescript(lcHTMLout)
> >     ENDIF
> > 

> >
> >
> > Nevertheless, if you are loading a page explicitly, it should worked. Please try creating a normal html page called test.htm:
> >
> > <html>
> > <body>
> > <h3>Hello world!</h3>
> > </body>
> > </html>
> >
> >
> > and then point to http://localhost/demo/test.htm
> >
> > if it works, then there is a problem with AVFP installation. If you get a blank page again, then there is a problem with the IIS or the Virtual Directory itself.
> >
> >
> > Also, I am working with a modified version of AVFP that includes a lot of new functionality like plugins, custom HTML parsers, custom HTTP handlers, better REST implementation, better error handling, and a lot more. If you are interested, I can send you the updated files so you work with this version.
> >
> >
> > Regards
> >
> > Victor Espina
> >
> >
> >
> >
> >
> >
> > /* ---------------------------------- *\<br />> > Victor J Espina S
> > www.victorespina.com.ve/wiki
> > "Change is the only constant in the Universe"
>
>
>
> Thomas Cayne
> List Services Programmer, dBase veteran



/* ---------------------------------- *\<br />Victor J Espina S
www.victorespina.com.ve/wiki
"Change is the only constant in the Universe"

ENTIRE THREAD

ACTIVEVFP - Getting started Posted by Elijah ICS @ 7/16/2014 8:17:49 AM
RE: ACTIVEVFP - Getting started Posted by Victor Espina @ 7/16/2014 6:08:05 PM
RE: ACTIVEVFP - Getting started Posted by Elijah ICS @ 7/16/2014 7:32:30 PM
RE: ACTIVEVFP - Getting started Posted by Don Higgins @ 7/17/2014 5:51:38 AM
RE: ACTIVEVFP - Getting started Posted by Elijah ICS @ 7/17/2014 12:29:16 PM
RE: ACTIVEVFP - Getting started Posted by Victor Espina @ 7/17/2014 5:35:11 PM
RE: ACTIVEVFP - Getting started Posted by Victor Espina @ 7/17/2014 5:47:35 PM
RE: ACTIVEVFP - Getting started Posted by Vivek Deodhar @ 7/18/2014 8:02:43 AM
RE: ACTIVEVFP - Getting started Posted by Elijah ICS @ 7/17/2014 7:10:03 PM
RE: ACTIVEVFP - Getting started Posted by Victor Espina @ 7/17/2014 11:04:42 PM
RE: ACTIVEVFP - Getting started Posted by Thomas Cayne @ 12/16/2014 6:21:47 PM
RE: ACTIVEVFP - Getting started Posted by Victor Espina @ 12/18/2014 3:43:41 PM
RE: ACTIVEVFP - Getting started Posted by Todd Landrum @ 7/18/2014 12:10:50 AM