|
Bryceneeds
While you are at it, what the IBMi really could do with (or, perhaps
more to the point, what I really could do with) is a port of node.js
http://www.yuiblog.com/blog/2010/05/20/video-dahl/
An event driven server on the IBMi (written in my favourite language
- javascript) which our rich clients can interact with using HTML5
Web Sockets. What more could a person want, I ask you?
According to the doco (http://nodejs.org/ ):
"Node is tested on Linux, Macintosh, and Solaris. It also runs on
Windows/Cygwin, FreeBSD, and OpenBSD. The build system requires
Python 2.4 or better. V8, on which Node is built, supports only
IA-32, x64, and ARM processors. V8 is included in the Node
distribution. To use TLS, OpenSSL is required. There are no other
dependencies"
Am I asking too much? :-)
Rgds
Kevin
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@midrange.
com] On Behalf Of Bryce Martin
Sent: 30 November 2010 16:36
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] What is Event Driven Programming, its uses, &
how to implement it in PHP?
I think we would just need to compile it in PASE. It looks like it
MYSQL5, which is now native on IBM i. So with some tweaking I think itright
would be possible to get it going. I have a few projects on my list
now, but I'll add this one. Aaron, the jQuery version of ChattyGabby isclose
on there, havn't touched it since last week, but I'm getting fairly
:DOn
Thanks
Bryce Martin
Programmer/Analyst I
570-546-4777
Kevin Turner <kevin.turner@xxxxxxxxxxxxxxx>
Sent by: web400-bounces@xxxxxxxxxxxx
11/30/2010 10:44 AM
Please respond to
Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>
To
"'Web Enabling the AS400 / iSeries'" <web400@xxxxxxxxxxxx>
cc
Subject
Re: [WEB400] What is Event Driven Programming, its uses, & how to
implement it in PHP?
I guess the fly in the ointment would be where to install the APE server
and how to integrate it with the CTI database and web services which are
all on the IBMi. I don't fancy the idea of trying to persuade the
customer to create a Linux partition, much less my chances of making it
work :-(
That said, this is the sort of thing we would need. APE for the IBMi
would be a good open source project. Any takers?
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]
Behalf Of Bryce Martinto
Sent: 30 November 2010 14:23
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] What is Event Driven Programming, its uses, & how
implement it in PHP?Seems
Hey Kevin,
Look at a project called the Ape Project. I think you'll like it :)
to me it might be a good fit. http://www.ape-project.org/website.
For the list's sake... APE is an Ajax-Push-Engine. Check out the
Its something that I really want to play with, but don't have anyhighly
interactive projects right now to use it. But yours sounds perfectKevin
:Dscreen
Thanks
Bryce Martin
Programmer/Analyst I
570-546-4777
Kevin Turner <kevin.turner@xxxxxxxxxxxxxxx>
Sent by: web400-bounces@xxxxxxxxxxxx
11/30/2010 08:52 AM
Please respond to
Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>
To
"'Web Enabling the AS400 / iSeries'" <web400@xxxxxxxxxxxx>
cc
Subject
Re: [WEB400] What is Event Driven Programming, its uses, & how to
implement it in PHP?
Perhaps it is more of a question of how to implement it on the browser
rather than how to implement it in PHP.
For quite some time we have had a CTI function running on a browser. You
know the sort of thing - a call centre agent sits staring at their
waiting for an incoming call. When it arrives (i.e. their phone rings)the
they answer it and at the same time the browser pops up with the details
of the customer on the end of the phone.
So far we have only managed to get this working consistently by having
browser polling the server for the incoming call using anxmlHttpRequest.
It either returns "nothing there" or it returns the page containing thesometimes
customer details of the incoming call. However, since it is a polling
technique, you get the inevitable timing issues where the agent
gets a pregnant pause before the screen pops up.to
It would be much better if we could write a listener that runs on the
browser, so that the server can ping the details back to the browser and
get it to instantly respond consistently. So far though, we haven't
managed it. I think it might be possible to create a socket client in
Adobe Flex that can establish a connection with the server and then wait
for a response - perhaps periodically timing out to allow other events
fire. We haven't had time to try it, and I don't know how well it wouldOn
work. The main issue appears to be with the inability to do true
multithreading. The other issue would be the fact that it would not be
good to start tying up lots of Apache CGI threads with permanent
connections to the browser - which perhaps indicates the need for a
different socket server, or a different Apache instance, which in turn
raises the problem of cross-domain request handling.
If anyone has cracked this sort of issue I would be anxious to see some
details.
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]
Behalf Of Nathan Andelincommand
Sent: 30 November 2010 12:44
To: Web Enabling the AS400 / iSeries
Subject: [WEB400] What is Event Driven Programming, its uses, & how to
implement it in PHP?
That is a question that came up recently in a PHP group on Linkedin. I
thought
it might also be worth discussing here, too.
Some years ago I became acquainted with a rather robust system for
managing
credit unions where the entire UI was implemented through a single
linegenerally
prompt, like a Unix or DOS shell. Quite literally, the only two events
that the
server would respond to were the Enter and Escape keys. Interaction with
the
server would begin by entering a short action code, which would
trigger a dialog to enter data into a database, perform transactions,and
soelement
forth, one input line at a time.
Perhaps surprisingly, users liked it, and became productive with it, but
contrast that type of UI with an HTML page that may be filled with any
number of
visual and input capable elements simultaneously, and using
element.addEventListener() or element.attachEvent() to register a
potentially
broad range of keyboard and mouse event handlers for any number UI
displayed.using
I suppose you could carry the comparison (contrast) even further by
AJAXa
to subscribe to a network service which may be "listening" for events on
network, and notify each client of it. A good use case might be athe
moderated chat
service. It might be helpful to update each user's screen whenever a
participant
on the network enters or leaves the chat service. Maybe you want their
name
begin flashing when they begin typing. Every client should be notified
moment any one of them enters a new message.is
I'm not sure how to implement something that in PHP. I assume it can be
done
because Facebook chat works something like that. Using a tool like
Fiddler, you
can see the browser performing an asynchronous request that waits for up
to
something like 2 minutes, for the server respond. I assume the server in
turn is
waiting on a queue of sorts. But I'm not aware of the implementation
details on
the server, beyond configuring the HTTP server to allow persistent
connections.
Contrast network listening, vs network polling. Polling from the client
at
regular intervals consumes more bandwidth and other resources, and yet
notto
quite as responsive as listening on a queue.
-Nathan
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
NOTICE: The information in this electronic mail transmission is intended
by CoralTree Systems Ltd for the use of the named individuals or entity
which it is directed and may contain information that is privileged orby
otherwise confidential. If you have received this electronic mail
transmission in error, please delete it from your system without copying
or forwarding it, and notify the sender of the error by reply email or
telephone, so that the sender's address records can be corrected.--------------------------------------------------------------------------------
use
CoralTree Systems Limited
25 Barnes Wallis Road
Segensworth East, Fareham
PO15 5TT
Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton, UK
SO15 2EA
VAT Registration Number 834 1020 74.
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
--- This message (including any attachments) is intended only for the
of the individual or entity to which it is addressed and may containand
information that is non-public, proprietary, privileged, confidential,
exempt from disclosure under applicable law. If you are not the intendedIf
recipient, you are hereby notified that any use, dissemination,
distribution, or copying of this communication is strictly prohibited.
you have received this communication in error, please notify us andto
destroy this message immediately. ---
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
NOTICE: The information in this electronic mail transmission is intended
by CoralTree Systems Ltd for the use of the named individuals or entity
which it is directed and may contain information that is privileged orby
otherwise confidential. If you have received this electronic mail
transmission in error, please delete it from your system without copying
or forwarding it, and notify the sender of the error by reply email or
telephone, so that the sender's address records can be corrected.--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
CoralTree Systems Limited
25 Barnes Wallis Road
Segensworth East, Fareham
PO15 5TT
Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton, UK
SO15 2EA
VAT Registration Number 834 1020 74.
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
--- This message (including any attachments) is intended only for
the use of the individual or entity to which it is addressed and may
contain information that is non-public, proprietary, privileged,
confidential, and exempt from disclosure under applicable law. If
you are not the intended recipient, you are hereby notified that any
use, dissemination, distribution, or copying of this communication
is strictly prohibited. If you have received this communication in
error, please notify us and destroy this message immediately. ---
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
NOTICE: The information in this electronic mail transmission is
intended by CoralTree Systems Ltd for the use of the named
individuals or entity to which it is directed and may contain
information that is privileged or otherwise confidential. If you
have received this electronic mail transmission in error, please
delete it from your system without copying or forwarding it, and
notify the sender of the error by reply email or by telephone, so
that the sender's address records can be corrected.
CoralTree Systems Limited
25 Barnes Wallis Road
Segensworth East, Fareham
PO15 5TT
Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton, UK
SO15 2EA
VAT Registration Number 834 1020 74.
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.