How much is iimportant integrate xharbour Web 2.0 - xharbour

This is a discussion on How much is iimportant integrate xharbour Web 2.0 - xharbour ; How much is/will possible integrate xharbour with technologies such as .NET, JavaScript and AJAX anybody can share Experiences?...

+ Reply to Thread
Results 1 to 5 of 5

How much is iimportant integrate xharbour Web 2.0

  1. Default How much is iimportant integrate xharbour Web 2.0

    How much is/will possible integrate xharbour with technologies such
    as .NET, JavaScript and AJAX
    anybody can share Experiences?


  2. Default Re: How much is iimportant integrate xharbour Web 2.0

    On Jun 1, 5:58 pm, Massimo Belgrano <massimo.belgr...@gmail.com>
    wrote:
    > How much is/will possible integrate xharbour with technologies such
    > as .NET, JavaScript and AJAX
    > anybody can share Experiences?


    I use [x]Harbour to write cgi/Javascript/ajax apps under Linux every
    day.
    In tip/cgi.prg there is everything you need to start.
    The hard work is to fight with xhtml, dom, javascript, css2, ff,
    opera, ie5-6-7 and safari to show the same thing
    ( and possibly the one you wrote ).

    regards,
    Lorenzo Fiorini



  3. Default Re: How much is iimportant integrate xharbour Web 2.0

    is there any "hello world" cgi sample, link script, html ?

    Thanks

    "LF" <lorenzo.fiorini@gmail.com>
    ???????:1180717520.074228.262800@h2g2000hsg.googlegroups.com...
    > On Jun 1, 5:58 pm, Massimo Belgrano <massimo.belgr...@gmail.com>
    > wrote:
    >> How much is/will possible integrate xharbour with technologies such
    >> as .NET, JavaScript and AJAX
    >> anybody can share Experiences?

    >
    > I use [x]Harbour to write cgi/Javascript/ajax apps under Linux every
    > day.
    > In tip/cgi.prg there is everything you need to start.
    > The hard work is to fight with xhtml, dom, javascript, css2, ff,
    > opera, ie5-6-7 and safari to show the same thing
    > ( and possibly the one you wrote ).
    >
    > regards,
    > Lorenzo Fiorini
    >
    >




  4. Default Re: How much is iimportant integrate xharbour Web 2.0

    On Jun 1, 8:01 pm, "fatfat" <fat...@fatfat.com> wrote:

    > is there any "hello world" cgi sample, link script, html ?


    proc main( )

    local oCgi

    oCgi := TIpCgi():New()

    oCgi:Header()

    oCgi:StartHtml( { 'title' => 'first', 'text' => '#999999' } )

    oCgi:Print( '<h2>My first cgi</h2>' )

    oCgi:EndHtml()

    oCgi:Flush()

    return

    if you use Linux or msys/mingw you can build it simply using:

    [x]hbmk -n -gtcgi testcgi

    move the testcgi binary in cgi-bin of your http server and type
    http:://myserver/cgi-bin/testcgi

    The host language ( [x]Harbour in our case ) is probably the less
    critical link of the chain and almost every programming language
    can be used. Basically what you need is the ability to print to
    standard output.
    xhtml, javascript and css are simply texts that need to be printed out
    to the browser and ajax is simply a way to call other scripts
    using javascript, dom and a browser object called XmlHttpRequest()
    ( you can find zillion of pages about it on Google ).

    For example this is a valid cgi script that use only standard
    [x]Harbour functions.
    Run it with http://myserver/cgi-bin/testcgi?YourName and you'll see
    YourName as page title.

    procedure main(...)

    local s_cNewLine := HB_OSNewLine()

    outstd( "CONTENT-TYPE: TEXT/HTML" + s_cNewLine + s_cNewLine )
    outstd( "<HTML><HEAD>" + s_cNewLine + ;
    "<TITLE>" + hb_pValue(1) + "</TITLE>" + s_cNewLine + ;
    "<BODY>" + "Hello World!" + s_cNewLine + ;
    "</BODY></HTML>" )

    return

    best regards,
    Lorenzo Fiorini



  5. Default Re: How much is iimportant integrate xharbour Web 2.0

    On 1 Giu, 23:18, LF <lorenzo.fior...@gmail.com> wrote:
    > On Jun 1, 8:01 pm, "fatfat" <fat...@fatfat.com> wrote:
    >
    > > is there any "hello world" cgi sample, link script, html ?

    >
    > proc main( )
    >..
    > Lorenzo Fiorini


    Thanks


+ Reply to Thread

Similar Threads

  1. C++ and C# integrate
    By Application Development in forum CSharp
    Replies: 1
    Last Post: 11-27-2007, 10:36 AM
  2. How integrate word processing integrated in xharbour
    By Application Development in forum xharbour
    Replies: 11
    Last Post: 10-12-2007, 03:03 PM
  3. [Ann] xHarbour.com's SQLRDD available for xHarbour.ORG with BCC
    By Application Development in forum xharbour
    Replies: 8
    Last Post: 09-12-2007, 02:11 PM
  4. Replies: 0
    Last Post: 03-02-2007, 06:32 AM