Peter,
I have only used wc to connect to internet resources from a desktop app,
but I guess you can also use wc to build a webapp.
I have found it very easy to work with ActiveVFP and I have gotten fast
response to my questions regarding ActiveVFP from Claude Fucht (not sure
about the spelling) on UT. I have created a pretty cool (if I may say so
myself) task manager called TaskAsap (go to www.iotechno.com and click
on the products/suppor clink on top and you should find a link to the
webapp with usernname and password if you want to check it out keep in
mind that the app is currently in beta and even though I don't think
there are any glitches there might be some anyways time to close this
comment and continue where I left off) using strictly VFP through
ActiveVFP and some javascript code for browser side stuff.
ActiveVFP is nothing more than a quick way of setting up a project to
create a MTDLL that you can call from either ASP or ASP.NET. It works
great and you can use syntax that is familiar to you.
UT also has a section for ActiveVFP where you can read about questions
posted.
Did I mention that ActiveVFP is free? Well just in case I didn't I'll
just say that ActiveVFP is free :)
Einar
toggle quoted message
Show quoted text
-----Original Message-----
From: Foxprotalk@... [mailto:Foxprotalk@...]
Sent: Friday, May 14, 2004 5:16 PM
To: madfox_vfp@...
Subject: Re: [madfox_vfp] Web Connect Question
Einar:
I remember seeing Active VFP a few years ago at one of the devcon's.
Chris Lange was the designer as I recall.
Do you find it easier/better than web connect? Have you found that each
tool has its place? If so, when would you use one over the other.
Thanks,
Peter d.
You are welcome. Glad I could help.
Working with webapps is a lot of fun.
I would recommend checking out www.activevfp.com it is very cool.
Einar
-----Original Message-----
From: Foxprotalk@... [mailto:Foxprotalk@...]
Sent: Friday, May 14, 2004 10:56 AM
To: madfox_vfp@...
Subject: Re: [madfox_vfp] Web Connect Question
Einar:
Thanks - that helped me solve it. Basically I had the window.open()
call, but it was cluttered with extra garbage. I stripped it down to:
window.open(cURL) and it gave me what I wanted!
Thanks. That URL is an excellent reference for the various
parameters.
Dave - thanks also for the idea - I did check the _hyperlink.vcx and
it's a good place for ideas around this topic.
peter d.
Check out
ht
ml
/reference/methods/open_0.asp
Window.open() takes several parameters and you can spcify the size
of the window (or fullsize).
Please let me know if you need further help.
Einar
-----Original Message-----
From: Foxprotalk@... [mailto:Foxprotalk@...]
Sent: Friday, May 14, 2004 9:59 AM
To: madfox_vfp@...
Subject: Re: [madfox_vfp] Web Connect Question
Einar:
Currently I have approximately 2 approaches:
1. Just a hyperlink to another form. When clicked, the next form
fills in the current screen. It's that scenario that I'd like a new
browser window to open.
2. My second approach I open a separate window, but most of it's
control features don't appear. Here's the code:
Within my PRG that generates the screen that contains the button to
jump to a different URL:
Basically, I want the user to click a button and be taken to
"CodeEdit.TIS" in a separate browser window. Currently it takes
them there in a different browser window, but the resultant window
is missing some of the standard navigation features, etc.
***within a PRG:
lobtn18=NEWOBJECT("PDwebButtonToFULLWindowURL","pcdwc.prg")
lobtn18.cvalue="Codes EDIT"
lobtn18.cwinfunction="ViewLogPopup()"
lobtn18.cwinName="ViewPop"
lobtn18.lReadOnly=.f.
lobtn18.cwinURL="CodesEdit.TIS"
lobtn18.renderjava()
***
And - within my "PCDWC.prg":
DEFINE CLASS PDwebButtonToFULLWindowURL AS PDwebControl
** this is similar/same as PDwebButtonToPopupURL - except trying
for a full-blown separate window
** coordinates of the resulting window
nwinLeft=5
nwinTop=5
nwinWidth=700
nwinHeight=350
** name of called popup function
cwinFunction=""
cwinClick=""
cwinUrlVars=""
** URL to call
cwinURL=""
cwinURLoFormCall=""
** retain reference to the java object created at top of calling
page routine
cwinName="POPUP"
FUNCTION Render
RETURN THIS.RenderButton()
ENDFUNC
FUNCTION RenderJava
response.writeln([<SCRIPT LANGUAGE="JavaScript">])
response.writeln([<!--])
response.writeln([ function ]+this.cwinFunction+[{])
** I feel like some setting here needs to be set to
give standard browser navigation ability
response.writeln([ var
windowprops="location=yes,scrollbars=yes,menubars=yes,toolbars=yes,r
es iz able=yes,controlbox=yes,controls=yes,left=]+;
TRANSFORM(this.nwinleft)+[,top=]+TRANSFORM(this.nwintop)+;
[,width=]+TRANSFORM(this.nwinwidth)+[,height=]+TRANSFORM(this.nwinhe
ig
ht
)+[";])
response.writeln([var URL
="]+this.cwinURL+["]+this.cWinUrlVars+[;])
response.writeln(this.cwinName+[=window.open(URL,"MenuPopup",windowp
ro
ps
)])
response.writeln(this.cwinName+[.focus()])
response.writeln([}])
response.writeln([-->])
response.writeln([ </SCRIPT>])
ENDFUNC
FUNCTION RenderButton
** define the button on the page
IF empty(this.cwinclick)
this.cwinclick=this.cwinfunction
ENDIF
RETURN ;
[<input type=button value="]+this.cvalue+["] +;
[ onClick="]+this.cwinclick+["]+;
IIF(THIS.lReadOnly,[ DISABLED>],[>])
ENDFUNC
ENDDEFINE
peter d.
Please post the code that currently opens the browser window.
Einar
-----Original Message-----
From: Foxprotalk@... [mailto:Foxprotalk@...]
Sent: Friday, May 14, 2004 8:58 AM
To: madfox_vfp@...
Subject: [madfox_vfp] Web Connect Question
What's the code/setting required so that a browser form will open
in
a
new, separate, full-functioning browser window?
I have a WC app that opens separate windows - but they aren't full
browser windows.
Peter d.
Yahoo! Groups Links
------------------------ Yahoo! Groups Sponsor
---------------------~--> <FONT COLOR="#000099">Yahoo! Domains -
Claim
yours for only $14.70 </FONT><A
href="><B
C
li
ck Here!</B></A>
------------------------------------------------------------
---------~->
Yahoo! Groups Links
Yahoo! Groups Links
------------------------ Yahoo! Groups Sponsor
---------------------~--> <FONT COLOR="#000099">Make a clean sweep
of
pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
</FONT><A
href="><B>C
li
ck Here!</B></A>
------------------------------------------------------------
---------~->
Yahoo! Groups Links
Yahoo! Groups Links
------------------------ Yahoo! Groups Sponsor
---------------------~--> <FONT COLOR="#000099">Make a clean sweep of
pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
</FONT><A
href="><B>Cli
ck Here!</B></A>
------------------------------------------------------------
---------~->
Yahoo! Groups Links
Yahoo! Groups Links