RE: 2nd send - talking to web front end

"Bertrand Mockers" <[email protected]>
Newsgroups gmane.comp.lang.4gl.fourjs.user
Message-ID <000001c57745$4a38c390$8200000a@MONTY>
Hi,

I am not sure that I understand exactly what your external customers
really
need to do or get, but let's assume that the javascript way is the right
one
and that your goal is to get "X" back in the javascript.

First:
You can use Internet Explorer and Mozilla/Firefox' XMLHttpRequest to
send
a request from javascript and then receive the response in your
javascript.

(nice tuto:
http://developer.apple.com/internet/webcontent/xmlhttpreq.html )

With this object invoke a simple web front end application:
- program it to display one unique page and then automatically leave
- configure it to not go on a second page (the "bye bye" page) but
to stay on the last application page

In your application display in this first page the "X" response.

Use string operation in your javascript, to parse and find the "X"
in the html you received from XMLHttpRequest.

(a more elegant solution: could be to try to produce some xml with the
web front-end and use the built xml parser of the XMLHttpRequest object,
but producing valid xml as a first page of a web front end application
might
be difficult or even impossible, so let's stay simple)

Configuring a WebFE application that remains on its last page:
http://www1.4js.com/html/supp/documentation/bdswp/DownloadBdsWp.shtml
Configuring Web Front End 3.50; page 107 (KEEP_LAST_PAGE)

We are clearly "nearly doing web services".
Using FourJ's web services might be an option...

We would be really interested to have news from you if you try this
XMLHttpRequest + KEEP_LAST_PAGE solution,
do not hesitate to ask for other information on this,
first off list, if you prefer.

BTW:
The XMLHttpREquest object is widely used in Genero Web solution (GWC),
thanks the product succeeds to do real in between field validation
(calling BEFORE / AFTER FIELD code on the server side...)
the results as many of you know, are quite impressive.

Thanks
Regards

Bertrand


-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Ray Garrison
Sent: mardi 21 juin 2005 20:03
To: [email protected]
Subject: [fourjs-users] 2nd send - talking to web front end

Hi there.

I sent this to fourjs-users a short time ago, then found I was no longer
subscribed to the mail list, and wasn't sure it had posted.
Re-subscribed and re-posted.  If it posted already, sorry for the
repost.

-----------------------

This is probably a very simple question, but I've never had to do this
before.

I have 4js apps using the Web Front End to support our administrative
intranet.  External customers of mine would like to be able to query my
system and get an answer.  Basically, they would like to say "given A, B
and C, what is X?"

I can give them a little javascript that connects to my fglccgi, calls
the appropriate module and passes A, B and C as parameters.  But how do
I send the "X" back to them?

This seems like it ought to be so simple that I'm kind of embarrassed to
ask.

Thanks,  Ray Garrison
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.