Quantcast
Channel: Home of ActiveVFP - Foxpro on the World Wide Web
Viewing all 1109 articles
Browse latest View live

New Post: Working on a new version for a native JSON parser for AVFP


Updated Wiki: Home

$
0
0

ActiveVFP Project - Foxpro on the World Wide Web

PHP or MVC style, you choose.  VFP pages or VFP controller - just add Fox code!!

Arvixe!

AVFP- best choice for using FoxPro with REST as a RESTful server. AVFP- best choice for using FoxPro with Android, iPad, iPhone.

ActiveVFP 6.03 Demo onGoDaddy Shared Hosting.
ActiveVFP 6.03 Demo on local network.

Easily installs on local IIS, GoDaddyArvixe, WinHost, Discount ASP.NETSoftSys, many others.  Get the cheapest web hosting rates ($5/month and below) using AVFP.  Don't pay a premium just for using FoxPro!

FoxPro to Web, FoxPro to Mobile, FoxPro to Cloud: ActiveVFP(AVFP) is a completely free and open source project for creating web applications with the Visual Foxpro programming language and database (and other DBs like MSSQL or MySQL). It provides an easy-to-use framework in pure fox code for utilizing a multi-threaded vfp dll (vfp mtdll) called from ASP.NET.  If you're considering web programming with FoxPro, using FoxPro in the cloud, or converting desktop VFP to web or mobile - using Android, iPhone, or iPad, this tool is for you.

Free and open source web software for the Foxpro community!!!

Faster than PHP on Windows, easier than C#!
Windows Web Scripting Comparison for AVFP vs. PHP vs. ASP.NET Razor

Really multi-threaded, really runs in the cloud, really open-source - accept no substitute!  The goal of this project was to match or surpass the capabilities of commercial vfp web development products and to take vfp into the future by making it easy to interop with .NET for web applications. Along with this, ActiveVFP makes using cool web and mobile technologies like JavaScript, AJAX, JSON, jQuery, jQuery Mobile, AngularJS, Bootstrap, HTML5, CSS, PDF, Android, iPhone, iPad, RESTful web services (and more!) with FoxPro a breeze.

Fastest and most scalable VFP web solution, yet also the easiest to setup and program!

"...It can do everything the commercial vfp web products can and more like the ability to be easily hosted atcheap shared web hosts like GoDaddy, XCOPY deployment, and true multi-threading.  I think of it as applying more modern technology to foxpro web development as compared to most of the older products that were developed 20 years ago and still use the original outdated techniques.  However, AVFP is extremely easy to use and develop in." -VFP Developer.  No more paying for the privilege of using outdated technology!

High Availability, High Performance, works with Everything! Unlike commercial VFP web products, ActiveVFP concentrates on producing multi-threaded COM VFP server apps. While commercial VFP web products all have a multi-threaded ISAPI client (as does ActiveVFP), only ActiveVFP focuses on creating multi-threaded VFP web server applications using a vfp mtdll. No simulated multi-threading (using multiple VFP EXE processes) here.  What this means for you is much faster, efficient and scalable vfp web applications along with far less maintenance headaches and worries about uptime. It also means you take full advantage of new Dual-Core, Quad-Core or multiple processors in new computers increasingly available now.

Your ideas and code contributions to this project are always welcome. Guidance for enhancements to ActiveVFP is on theIssue Tracker page.

Making it easy to use Foxpro on the web!!

Links
ActiveVFP 6.03 Demo on GoDaddy Shared Hosting.
ActiveVFP 6.03 Demo on local network.
ActiveVFP Documentation
ActiveVFP Video Overview
Windows Web Scripting Comparison for AVFP vs. PHP vs. ASP.NET Razor
Free Community Support
Consulting Support

Background Articles
Advanced VFP Servers by Calvin Hsia, Microsoft
VFP COM Debugging

From Microsoft Visual Foxpro FAQ:
"Q: Can I use Visual FoxPro to build Web applications?
Visual FoxPro COM components can be used with Internet Information Services (IIS) to build high-powered Internet database applications. This is because Visual FoxPro components can be called from Active Server Pages (ASP). Visual FoxPro is compatible with ASP but works even better in conjunction with the more modern ASP.NET. The components will retrieve and manipulate data, and will build some of the HTML returned to the user. "

Notable Quotes

"I was able to get a mobile site using AVFP up and 
running in about 30 minutes." Andrew MacNeill, Akselsoft 

On running ActiveVFP at GoDaddy, "I got it working and I tell you its sweet" LarryJ

"Everything you see is completely controlled by VFP code. Data controlled pictures, text, links,
and calculations are 100% VFP. I can change anything on the fly and it is multiuser right out of the box."
"...The dealership has a server guy who didn't know it was a VFP application. He was bad mouthing VFP for being old and slow. He was glad my new Super Fast application was built on .NET and used SQL server backend. I let him ramble on, then told him that it was powered by VFP and used DBF tables. He told me "There is no way, a Foxpro application with that much data would be terribly slow." I just laughed and simply told him that any *Decent* Programmer can make VFP fly. I am still chuckling. He was so sure it was .NET with SQL. He had to admit it was extemely fast." Don Higgins, Crew Chief Pro Software

"You should not have an issue with performance if you use multi-threaded
DLLs. I regularly test Visual FoxPro COM DLLs by simulating 40 clients
pounding the server for days at a time, generating as many as 3 million hits
per day (on a four-proc machine with 2Gb of RAM and striped RAID). If you're
site is generating more hits per day than that, I think other stuff is going
to break down before your COM servers. :-)" Mike Stewart, Microsoft

"I installed AVFP 5.5 experimentally this morning: xcopy the app and support libs to a
Windows 2003 server,create a new IIS virtual directory, map it to the new folder,
allow scripts and execute, I also created a new application pool out of habit...
then hit the site and the VFP app was serving pages. No DCOM, no registration,
nothing else to configure..."
"..Just for the record for people who haven't tried it, we're using an ActiveVFP MTDLL
in a production environment at the moment. That thing is fast- quick enough that it's
the server and network latency causing the biggest bottlenecks. We're talking a 15Mbps
connection burstable to 100Mbps so the app itself is doing fine." Jack Ryan

--
Donations
Donations are accepted.
Click here to donate to help support ActiveVFP and Open Source VFP projects.

Donate!


Thank you for your support!

New Post: Minor annoyance: funky symbols at top of page

$
0
0
My pages are loading just fine, but I have some weird symbols appearing at the top of the page:



Is it something to do with the HTML header information I am using? Here is the HTML header information I am using now:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head> <title>Customer_List</title> <META http-equiv=Content-Type content="text/html; charset=windows-1252"> <link rel="stylesheet" type="text/css" href="css/bluedream.css"> <style type="text/css"> table.pagnav {font-family:Verdana,Arial,sans-serif; } </style> </head> Thanks

New Post: Minor annoyance: funky symbols at top of page

$
0
0
Use
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
instead of
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
This solves the squiggly character() problem at the top of the page. You may have to start with a completely new page if those characters are already in the document.

New Post: Modern web\mobile development with ActiveVFP example!

$
0
0
http://www.noiqs.com/sws_avfp/chc/

Demonstrates:
  • use of theme which can be swapped for others
  • new built in PDF generator that can run at shared web hosts like Arvixe
  • Responsive design: works as is on web and mobile. same code base
  • web forms: works as is in both web and mobile
To test:

1) On the left menu, click on Reports & Labels-> Registration & Eligibility -
Notice Of Action (in mobile, click the horizontal lines to get to this menu)

2) Enter your data in the form

3) Press “Generate Report”

4) Once the report is generated and shown on screen, press “Print” button.

Works in Chrome, Firefox, IE, Safari
Works in Web or Mobile (iPhone, iPad, Android, etc.)
Note: on iPhone Safari settings you need to enable pop-ups to see the generated

report.

All server-side is VFP code. Existing VFP code can be used.:
  1. NOA Report Form View (noaReportView.avfp). At the start of the view I use
    VFP code to open some tables and prepare data to be shown in the form. This
    code was copied from Init method of Action2014.scx file.
  2. Some of this same Init method code was used to set pre-report code in
    denialReport() method on the NOA REST controller.
  3. Denial NOA report (denialaction2014-1.frx) was reused as it was. The only
    change I made was to exclude the Printer Environment. In fact, the idea for the
    conversion project is to reuse ALL his report formats as they are, without
    changing anything.

General notes:

For a Software as Service (SaaS) running on a web host serving multiple clients,
we'd use this sort of PDF generation. PDFs will work in this application either
remotely or locally (if the app is run on the local LAN)

As an alternative, if this application is running in-house on the local LAN, we
can also generate the VFP report directly to the printer without need for PDF

using this application.

New Post: Modern web\mobile development with ActiveVFP example!

$
0
0
This was a Proof Of Concept we made for a potential customer looking for converting his VFP Desktop App to a web app. The idea was to reuse as much of the original code as possible.

For this, the customer sent us a report format and the code to prepare that report, taken from his actual app. With this, we created a Single Page Applicaation, using a metro theme. We also used GridForms to create a data entry view and used REST controllers to receive the form data, save it to a DBF file and then call the original FRX report with no changes at all. The output of the report was saved as PDF and returned to the browser for its display on screen.

This probed that although ActiveVFP will require to rebuild the whole UI of your application, it its actually possible to reuse all your biz code and all your reports with minimum effort.

Also, this sample use some of the new features that will be included in the next release of ActiveVFP, including:

1) MVC REST service
2) Built-in reporting and PDF exporting
3) New built-in fast JSON parser
4) New bult-in functions



Victor Espina

New Post: Modern web\mobile development with ActiveVFP example!

$
0
0
This is very cool demo. Can't wait for the final release of this new version. Good job Claude/Victor.

New Post: Modern web\mobile development with ActiveVFP example!


New Post: Pdfrun random problem

$
0
0
Hi friends,
i have a random problem with pdfrun. I use it for make a pdf from report at end of my procedure. It works fine but randomly he stop to work and show me error on wrong identity or invalid username and password.

I release the object "oPDF" every time. I can solve the problem only with IIS restart.

Do you have a idea?

New Post: Problem with download file from AVFP

$
0
0
Hi friends,
i have a new problem when i try to download a file from AVFP.

I have a directory that includes all my attachments that i want to show in my web page.
I use this code:
nAllegati = ADIR(cAllegato,ADDBS(oProp.DataPath + "allegati\" + ALLTRIM(STR(cScheda.ieanno)) + "_" + ALLTRIM(STR(cScheda.ieprog)))+"*.*") %>
<% FOR i = 1 TO nAllegati %>
<p><a href="<%=[http://]+oRequest.ServerVariables("HTTP_HOST")+JustPath(oRequest.ServerVariables("URL"))+[/data/allegati/]+ALLTRIM(STR(cScheda.ieanno)) + "_" + ALLTRIM(STR(cScheda.ieprog))+[/]+ALLTRIM(cAllegato[i,1])%>">Scarica</p>
<% ENDFOR %>
Seems to working fine. The hypertext is correctly but when i click on it, i'm redirected to wrong link, such as this:
http://localhost/xxx/data/allegati/2015_72/file.zip/default.avfp
N.B. In my IIS configuration i have already an MIME TYPE for .zip format.

New Post: Modern web\mobile development with ActiveVFP example!

$
0
0
Hi Victor,

One question on the demo website regarding the report generation. What will happen if the workstation trying to view the report doesn't have an acrobat or a PDF viewer installed?

New Post: Modern web\mobile development with ActiveVFP example!

$
0
0
Seemingly all the browsers have built-in PDF viewing\printing support except IE. If there's nothing to bring up the PDF with, I'm assuming it will prompt you in some way to install a PDF viewer.

New Post: Modern web\mobile development with ActiveVFP example!

$
0
0
We have some fallback options:

1) As claude suggested, we could redirect the user to an specific error page instructing him to install Adobe Reader to preview reports. This page could also contains a link to download the generated PDF.

2) A variant of the error page could be to show a warning inside the preview area pointing out that PDF preview is not available, with instructions on how to install Adobe Reader and a link to download de generated report.

3) We can redirect the user to an external PDF previewer service, like Google Docs or something link that.


My choice would be 2).

Victor

New Post: Problem with download file from AVFP

$
0
0
My mistake... I haven't put the web.config in the attachments directory. I'm sorry!

New Post: Modern web\mobile development with ActiveVFP example!

$
0
0
claudefox wrote:
Seemingly all the browsers have built-in PDF viewing\printing support except IE. If there's nothing to bring up the PDF with, I'm assuming it will prompt you in some way to install a PDF viewer.
I think that in this case, the browser give you a download file dialog.

New Post: Pdfrun random problem

$
0
0
I read an old topic and i've tried the way to use "computer account" instead "interactive user" but the browser tell me, always, unknown error. Only with "interactive user"mode it works but with error if i reuse it in the same times (1 or 2 minutes later).

New Post: Modern web\mobile development with ActiveVFP example!

$
0
0
apaustria wrote:
Hi Victor,

One question on the demo website regarding the report generation. What will happen if the workstation trying to view the report doesn't have an acrobat or a PDF viewer installed?
At this time the demo check if the browser is a mobile browser or doesn't have any PDF plugin installed. If either of this conditions results true, the demo opens the PDF file in a new browser window. In mobile browsers this results in the PDF being shown in screen. In IE it results in the file being download (I am not really sure about this one).


Victor

New Post: DOCUMENTATION

$
0
0
Where can i find the documentation for programming in avfp? Is there also examples that can be seen somewhere? Please let me know where.

New Post: DOCUMENTATION

$
0
0
Here you can find the documentation of AVFP: Click here, and here you can see many examples: Click here.

There isn't a tutorial step-by-step because is necessary to know Visual FoxPro and the base Web Development.

New Post: DOCUMENTATION

$
0
0
You can find an older version of the docs online here
and, as mr. ocean said, the online demo shows the source code with the examples. You get the same thing on your computer when you download the software.

The most current docs will be up soon. I'm transitioning web sites (GoDaddy will give me free Windows Plesk hosting for a year!) and I'll put everything there along with the new version of AVFP demos.
Viewing all 1109 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>