FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour createjsobject
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
createjsobject
Posted: Mon Sep 29, 2008 11:58 AM

it is possible use this command ?

Best Regards, Saludos



Falconi Silvio
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
createjsobject
Posted: Tue Sep 30, 2008 08:43 AM

Silvio,

CreateJSObject() creates a JavaScript object (or a JScript one, not sure about it).

What do you want it for ?

Windows scripting may be a starting point:

http://msdn.microsoft.com/en-us/library/ms950396.aspx

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
createjsobject
Posted: Tue Sep 30, 2008 09:12 AM
Because I use on PHP or ASP a lib utility source code for create PDF
<%@language=vbscript%>
<!--#include file="fpdf.asp"-->
<%
 
Set pdf=CreateJsObject("FPDF")
pdf.CreatePDF()
pdf.SetPath("fpdf/")
pdf.SetFont "Arial","",16
pdf.Open()
pdf.AddPage()
pdf.Cell 40,10,"Hello Word!"
pdf.Close()
pdf.Output()
%>


we can make a good Invoice pdf
sample http://www.fpdf.org/en/script/ex20.pdf
Best Regards, Saludos



Falconi Silvio
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
createjsobject
Posted: Wed Oct 01, 2008 07:37 AM

Hi Silvio,

how can you use php with fwh ?

kind regards

Stefan
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
createjsobject
Posted: Wed Oct 01, 2008 09:28 AM

No I ask to Antonio if possible use javascript with fwh
and the fpdf is a java lib

Best Regards, Saludos



Falconi Silvio
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
createjsobject
Posted: Wed Oct 01, 2008 09:58 AM

Silvio,

Yesterday I used "Shell.Explorer" to load a HTML page with javascript into it and worked fine (calling a javascript function, using alert(), etc).

But some functions are not available for "Shell.Explorer". In fact, CreateJSObject() was the one that I tried to use and failed.

Thats why I think Microsoft scripting is the way to go. But the only way is to google for info and read and read :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion