473,399 Members | 3,038 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Latching onto open web windows

Hello

My question is a general web programming
question I suppose. We have a call centre web application which
receives data from the telephone system.
I initially thought that Java - using applets would be the way to do
what I need but not really sure. My idea on how to implement this was
as follows:
A) A Java applet embedded in a web page listens for data on a port
from a socket server. When incoming data is available we do a search
by creating our search url and simply posting to the web server.
B) Achieving A) I suppose should be doable but a requirement is that
the server will deliver subsequent call data (ie when call is
answered) and this data should be passed to the same database record.
That is fine because we can do a search for the required record via a
web URL. But what if a web page is open on that record on the
client. Using Java can we latch onto that web page, interrogate the
page to see what record it is (maybe via a form text box?) and then
perhaps save the record (How?) and then close the web page (How?).
It is the B) bit that troubles me most.

Is JavaScript a possible solution to any of this?

Is this possible? how?
Angus

Mar 6 '07 #1
1 1256
On Tue, 06 Mar 2007 17:31:15 +0100, Angus <an*********@gmail.comwrote:
Hello

My question is a general web programming
question I suppose. We have a call centre web application which
receives data from the telephone system.
I initially thought that Java - using applets would be the way to do
what I need but not really sure. My idea on how to implement this was
as follows:
A) A Java applet embedded in a web page listens for data on a port
from a socket server. When incoming data is available we do a search
by creating our search url and simply posting to the web server.
B) Achieving A) I suppose should be doable but a requirement is that
the server will deliver subsequent call data (ie when call is
answered) and this data should be passed to the same database record.
That is fine because we can do a search for the required record via a
web URL. But what if a web page is open on that record on the
client. Using Java can we latch onto that web page, interrogate the
page to see what record it is (maybe via a form text box?) and then
perhaps save the record (How?) and then close the web page (How?).
It is the B) bit that troubles me most.

Is JavaScript a possible solution to any of this?

Is this possible? how?
Angus
If I'm reading this correctly you're asking about a classic client-server
data access problem: concurrent access (meaning more users could be
editing the same record at the same time). The most basic solution to this
would be to add a time-stamp as a versioning principal to your record: if
someone else tries to save the record it checks its own time-stamp to the
one on record and acts accordingly. Thus far the theory.

How to do this in practice? Yes, you can do it using javascript. But since
you already have a Java applet, why would you? If the Java applet can
listen to the data being changed, it can also read the versioning
principal. If it can listen to the data, why wouldn't it save it as well?
One of the reasons I can think of, is that a web client should be able to
change some information. That still shouldn't require Javascript; instead
an html form and a server-based checking and saving script should be used.

Obviously you could use Javascript to update the html form or make parts
of it visible as more data comes in from the Java applet, but that's
GUI-programming instead of data manipulation: a whole different ball game.

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Mar 11 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Barry Newberger | last post by:
Wanted to install Python 2.3.2 for Windows onto a CD-ROM. Problem, my high-speed connection is on PC with no CD burner. My solution: install onto USB removable cartridge, move the cartridge to...
7
by: Jeff Harbin | last post by:
I have an Access 2000 database which saves (exports) of copy of the main data table each time it is opened. It continually over-writes the same file so I've got a back-up if anything were to...
9
by: Mark | last post by:
hi... i have a program that opens a couple files and performs some operations on them. i wanted to modify my program so that if you drag and drop a file onto the exe via windows, it will open...
2
by: continium | last post by:
I have been learning python during the past weeks and I have been able to program some interesting things. Python is my first and only programing language from which I wish to enter the programing...
8
by: Daz | last post by:
Hi all. I would like to make a console application, where I can drag, say, a text file, onto the exe itself, and the console window will popup and tell me what file was dragged onto the exe, (if...
7
by: MLH | last post by:
My firsta attempt at rolling out an Access 97 runtime installation onto a Windows 2000 Professional box did not go too well. The installation itself was bumpy. Afterward, attempts to run the app...
6
by: HolyShea | last post by:
All, Not sure if this is possible or not - I've created a class which performs an asynchronous operation and provides notification when the operation is complete. I'd like the notification to be...
3
by: Sizer | last post by:
I have several python utils that look at sys.argv to get a list of filenames to process and mangle the files in various ways. If I have a bar.bat file in Windows XP then I can just drag foo.avi...
2
by: shauncl | last post by:
Hello Everyone, I'm currently writing a simple Windows Service (C#) that pings an ip address and inserts the pingreply result in a SQL table. I'm able to send a ping request and get the reply...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.