Call VFP Function from HTML??  
Author Message
peterbf





PostPosted: Wed Mar 01 10:38:53 CST 2006 Top

Exchange Servers >> Call VFP Function from HTML??

Hi,
Is there a way to call a VFP function from within a web page. I have a need
to call a custom class from a web page I generated using VFP. I'm not sure
if this is possible and if it is, how to go about it. I'm using VFP8.0.
Thanks,
John

Exchange Server10  
 
 
Dan





PostPosted: Wed Mar 01 10:38:53 CST 2006 Top

Exchange Servers >> Call VFP Function from HTML?? Yes, but it has to be in script. Can you tell us more about what you're
trying to do?

Dan


> Hi,
> Is there a way to call a VFP function from within a web page. I have
> a need to call a custom class from a web page I generated using VFP.
> I'm not sure if this is possible and if it is, how to go about it.
> I'm using VFP8.0. Thanks,
> John


 
 
John





PostPosted: Wed Mar 01 11:07:23 CST 2006 Top

Exchange Servers >> Call VFP Function from HTML?? Well, just trying to do more with VFP!
I've created a form that outputs HTML from several tables in my dbc. I
would like to generate "live" data while I'm browsing the web pages. It
will only being running on my LAN..not over the internet. My call will be
to REPORT FORM or my own classes which will in turn generate and display a
new web page.
Thanks,
John.




> Yes, but it has to be in script. Can you tell us more about what you're
> trying to do?
>
> Dan
>

> > Hi,
> > Is there a way to call a VFP function from within a web page. I have
> > a need to call a custom class from a web page I generated using VFP.
> > I'm not sure if this is possible and if it is, how to go about it.
> > I'm using VFP8.0. Thanks,
> > John
>
>


 
 
Dan





PostPosted: Wed Mar 01 12:00:36 CST 2006 Top

Exchange Servers >> Call VFP Function from HTML?? OK, you're bunching up two distinctly different activities, which is why
it's so hard to give you an answer.

1) Generating HTML. You seem to have this nut cracked.
2) Active content inside a document. I think this is really where you're
heading.

You can certainly use client-side script (VBScript or JScript) in an HTML
document. That will require that anyone viewing the pages have either VFP or
a COM component of your creation installed, and may involve security
settings that are not allowed in your environment. Or you could do
server-side scripting (my preference -- you control where the required
software lives), which would require setting up a web server on your LAN
that can handle active content.

Which way do you want to go?

Dan


> Well, just trying to do more with VFP!
> I've created a form that outputs HTML from several tables in my dbc.
> I would like to generate "live" data while I'm browsing the web
> pages. It will only being running on my LAN..not over the internet.
> My call will be to REPORT FORM or my own classes which will in turn
> generate and display a new web page.
> Thanks,
> John.
>
>


>> Yes, but it has to be in script. Can you tell us more about what
>> you're trying to do?
>>
>> Dan
>>

>>> Hi,
>>> Is there a way to call a VFP function from within a web page. I
>>> have a need to call a custom class from a web page I generated
>>> using VFP. I'm not sure if this is possible and if it is, how to go
>>> about it. I'm using VFP8.0. Thanks,
>>> John


 
 
John





PostPosted: Wed Mar 01 13:08:16 CST 2006 Top

Exchange Servers >> Call VFP Function from HTML?? All users on my lan have a VFP com server exe installed on their machine.
But you mean I will have to create a single or multi threaded com server
(dll) and install it on each machine? I would make calls to the com server
object (such as oMyObject.gen_html() ) from the JScript? Please understand
this is new to me.

I'm not sure that I want to get into installing and purchasing a web server.
But for starters, if I choose this method, will the web server generate a
scrip that will access my com file and then generate the web page? I'll do
some studying on server-side scripting..
Thanks,
John





> OK, you're bunching up two distinctly different activities, which is why
> it's so hard to give you an answer.
>
> 1) Generating HTML. You seem to have this nut cracked.
> 2) Active content inside a document. I think this is really where you're
> heading.
>
> You can certainly use client-side script (VBScript or JScript) in an HTML
> document. That will require that anyone viewing the pages have either VFP
or
> a COM component of your creation installed, and may involve security
> settings that are not allowed in your environment. Or you could do
> server-side scripting (my preference -- you control where the required
> software lives), which would require setting up a web server on your LAN
> that can handle active content.
>
> Which way do you want to go?
>
> Dan
>

> > Well, just trying to do more with VFP!
> > I've created a form that outputs HTML from several tables in my dbc.
> > I would like to generate "live" data while I'm browsing the web
> > pages. It will only being running on my LAN..not over the internet.
> > My call will be to REPORT FORM or my own classes which will in turn
> > generate and display a new web page.
> > Thanks,
> > John.
> >
> >


> >> Yes, but it has to be in script. Can you tell us more about what
> >> you're trying to do?
> >>
> >> Dan
> >>

> >>> Hi,
> >>> Is there a way to call a VFP function from within a web page. I
> >>> have a need to call a custom class from a web page I generated
> >>> using VFP. I'm not sure if this is possible and if it is, how to go
> >>> about it. I'm using VFP8.0. Thanks,
> >>> John
>
>


 
 
Dan





PostPosted: Wed Mar 01 15:59:09 CST 2006 Top

Exchange Servers >> Call VFP Function from HTML?? If everyone on the LAN has the COM object installed, you can use client-side
scripting.

There is much written about this. It isn't a VFP topic at all. You need to
study up on basic web technologies (HTML, scripting languages, etc.).

A good place to start might be the white papers at www.west-wind.com.

Dan


> All users on my lan have a VFP com server exe installed on their
> machine. But you mean I will have to create a single or multi
> threaded com server (dll) and install it on each machine? I would
> make calls to the com server object (such as oMyObject.gen_html() )
> from the JScript? Please understand this is new to me.
>
> I'm not sure that I want to get into installing and purchasing a web
> server. But for starters, if I choose this method, will the web
> server generate a scrip that will access my com file and then
> generate the web page? I'll do some studying on server-side
> scripting..
> Thanks,
> John
>
>
>


>> OK, you're bunching up two distinctly different activities, which is
>> why it's so hard to give you an answer.
>>
>> 1) Generating HTML. You seem to have this nut cracked.
>> 2) Active content inside a document. I think this is really where
>> you're heading.
>>
>> You can certainly use client-side script (VBScript or JScript) in an
>> HTML document. That will require that anyone viewing the pages have
>> either VFP or a COM component of your creation installed, and may
>> involve security settings that are not allowed in your environment.
>> Or you could do server-side scripting (my preference -- you control
>> where the required software lives), which would require setting up a
>> web server on your LAN that can handle active content.
>>
>> Which way do you want to go?
>>
>> Dan
>>

>>> Well, just trying to do more with VFP!
>>> I've created a form that outputs HTML from several tables in my dbc.
>>> I would like to generate "live" data while I'm browsing the web
>>> pages. It will only being running on my LAN..not over the internet.
>>> My call will be to REPORT FORM or my own classes which will in turn
>>> generate and display a new web page.
>>> Thanks,
>>> John.
>>>
>>>


>>>> Yes, but it has to be in script. Can you tell us more about what
>>>> you're trying to do?
>>>>
>>>> Dan
>>>>

>>>>> Hi,
>>>>> Is there a way to call a VFP function from within a web page. I
>>>>> have a need to call a custom class from a web page I generated
>>>>> using VFP. I'm not sure if this is possible and if it is, how to
>>>>> go about it. I'm using VFP8.0. Thanks,
>>>>> John


 
 
swdev2





PostPosted: Sun Mar 12 15:16:37 CST 2006 Top

Exchange Servers >> Call VFP Function from HTML?? Heya John.
If you use AFP or AVFP, then you can use non-visual VFP classes at the web
server,
and call them in vfpscript embedded in an html page.
Would that get you where you wanted to go?
regards [Bill]

--
===================
William Sanders / EFG VFP / mySql / MS-SQL
www.efgroup.net/vfpwebhosting
www.terrafox.net www.viasqlserver.net



> Hi,
> Is there a way to call a VFP function from within a web page. I have a
need
> to call a custom class from a web page I generated using VFP. I'm not
sure
> if this is possible and if it is, how to go about it. I'm using VFP8.0.
> Thanks,
> John
>
>


 
 
John





PostPosted: Mon Mar 13 07:25:34 CST 2006 Top

Exchange Servers >> Call VFP Function from HTML?? Thanks,
Can you give me an example? I do not have AFP???
John.



> Heya John.
> If you use AFP or AVFP, then you can use non-visual VFP classes at the web
> server,
> and call them in vfpscript embedded in an html page.
> Would that get you where you wanted to go?
> regards [Bill]
>
> --
> ===================
> William Sanders / EFG VFP / mySql / MS-SQL
> www.efgroup.net/vfpwebhosting
> www.terrafox.net www.viasqlserver.net
>


> > Hi,
> > Is there a way to call a VFP function from within a web page. I have a
> need
> > to call a custom class from a web page I generated using VFP. I'm not
> sure
> > if this is possible and if it is, how to go about it. I'm using VFP8.0.
> > Thanks,
> > John
> >
> >
>
>