How could I directly trigger a very simple on localhost and a known port
listening server from my internet browser client? Local host means the
little server would be running on the client machine, where my browser
resides. Browser would be IE, O.S. Windows 2000 or XP, and it's for an
intranet application. The goal of the little server on the localhost client
side would be to trigger a scanner, with the TWAIN library. Also this server
is just some local windows executable listening on a known port, it's not
THE server that provides javascript and html to the client. THE big Server
runs on Linux far far away.
Excuse me for my lack of knowledge, but since some cracks, (for which a
little candle will burn in my local church today, it's Sunday you know, and
it's a sin even to work today, as if I did not sin enough the past week
anyway), well again since some posters have explained me that the <object>
tag and related "classid" attribute do not necessarily have to point to an
'original' active x object, this I had this idea:
Could I then somehow use the object tag and the class id attribute to
trigger a very simple locally running server from my Internet Explorer
browser? This local server I then would register in the windows registry,
just like the JRE is registered with the magic number
classid="clsid: 8AD9C840-044E-11D1-B3E9-00805F499D93" .
And if this is not a good idea, how can I call this localhost sever on the
client side, since I cannot do windows socket programming or something from
html or even javascript? Or should I use a button which, as action, launches
a new browser, on say localhost:12345 ? Disadvantage would be that then I got
a new window that is of no other use then just kicking this local server,
hence that's not very pretty either.
For your interest, it's programming for an intranet, so some obliged
clientside properties are accepted in the system. I should call TWAIN and
kick a scanner from the browser. The little server running at the client
side, would be the alternative for a JTWAIN applet, I tried earlier. 6 2297
Marc wrote: For your interest, it's programming for an intranet, so some obliged clientside properties are accepted in the system. I should call TWAIN and kick a scanner from the browser. The little server running at the client side, would be the alternative for a JTWAIN applet, I tried earlier.
You did not specify the required browser coverage (IE-only, IE/FF etc.)
Also it is not clear if you want just trig the scanning process from
the web page or you want to get the scan results (image/recognized
text) back to your page.
Overall rule is "if you do something, do it good, right and scalable".
So I would just install free lightweight Abyss Web Server
<http://abyss.sourcefor ge.net/> and let it run on http://127.0.0.0 or
any other LAN IP of your choice. It takes memory less than Notepad.
Then from your web application you can:
<span onclick="
document.images['image01'].src = http://127.0.0.0/cgi-bin/your_twain_...foo¶m2=bar
">Get scan results</span>
Simplier solution - better it is ;-)
"VK" <sc**********@y ahoo.com> schreef You did not specify the required browser coverage (IE-only, IE/FF etc.)
The best would be IE and FF, but I would settle for IE.
Also it is not clear if you want just trig the scanning process from the web page or you want to get the scan results (image/recognized text) back to your page.
The image should be sent to the 'big' Linux server. If the image is there,
another page sent from that Linux server should display the image.
Overall rule is "if you do something, do it good, right and scalable". So I would just install free lightweight Abyss Web Server <http://abyss.sourcefor ge.net/> and let it run on http://127.0.0.0 or any other LAN IP of your choice. It takes memory less than Notepad.
Well the little sever I made is actually nothing either, but this is
interesting nevertheless.
Then from your web application you can: <span onclick=" document.images['image01'].src = http://127.0.0.0/cgi-bin/your_twain_...foo¶m2=bar ">Get scan results</span>
Should this not be something like: http://127.0.0.0:12345/ et cetera. Where 12345 is the listening address.
The little server would be not really a port 80 http internet cgi server,
it's nothing more then a socket listener that calls TWAIN when it is
triggered. And I do not want to use that little server to create (much) html
output like the Linux server would do. This servlet would just scan, and
send to the Linux server, and the Linux sends the html to the browser.
Eh..., I think, I have to think about it a bit myself also.
FYI: The whole reason behind this is that the teamlead would like to cut the
licence cost, since I already got it more or less working with the applet
and JTWAIN. Latter has to be paid for a licence to use.
But thanks a lot.
<not a script issue>
Marc wrote: The best would be IE and FF, but I would settle for IE.
A very nice way to say "our organization is IE-only so we do not care
about others". Appreciate it. :-) Then from your web application you can: <span onclick=" document.images['image01'].src = http://127.0.0.0/cgi-bin/your_twain_...foo¶m2=bar ">Get scan results</span>
Should this not be something like:
http://127.0.0.0:12345/ et cetera. Where 12345 is the listening address.
It all depends on what are you dealing with. If you just need to trig
an executable then it really doesn't matter what port are you calling
to: 80 or 12344 or 64000. Just give something HTTP-compliant back, at
the very least "204 No Content"
The little server would be not really a port 80 http internet cgi server, it's nothing more then a socket listener that calls TWAIN when it is triggered. And I do not want to use that little server to create (much) html output like the Linux server would do. This servlet would just scan, and send to the Linux server, and the Linux sends the html to the browser. Eh..., I think, I have to think about it a bit myself also.
Really :-)
The logic (lesser extra circumastances I'm not aware of) should be just
opposite: web page > Linux server [ > TWAIN call if needed > ] > HTTP
response back to the web page.
</not a script issue>
VK: A very nice way to say "our organization is IE-only so we do not care about others". Appreciate it. :-)
No, no, no, we use both mozilla firefox and internet explorer. The case
is, that this browser client would be a special client anyway, the one
ordernador in the intranet that has the scanner near it, and the twain
dll installed. So if one of the client properties would be, obliged IE
use, it would be excepted.
But the posibility that the software still would be browser
independant, could be appreciated. I mean, if we really loved Bill, we
probably would not use Linux for the server OS.
On 2005-12-18, Marc <no*****@for.me > wrote: The little server would be not really a port 80 http internet cgi server, it's nothing more then a socket listener that calls TWAIN when it is triggered. And I do not want to use that little server to create (much) html output like the Linux server would do. This servlet would just scan, and send to the Linux server, and the Linux sends the html to the browser.
how are you sending the image back? "printing" it to a "printter" on the
linux server?
Eh..., I think, I have to think about it a bit myself also.
FYI: The whole reason behind this is that the teamlead would like to cut the licence cost, since I already got it more or less working with the applet and JTWAIN. Latter has to be paid for a licence to use.
if there's a windows version of SANE the linux box could access the scanner
directly.
--
Bye.
Jasen
On 2005-12-18, Marc <no*****@for.me > wrote: How could I directly trigger a very simple on localhost and a known port listening server from my internet browser client? Local host means the little server would be running on the client machine, where my browser resides. Browser would be IE, O.S. Windows 2000 or XP, and it's for an intranet application. The goal of the little server on the localhost client side would be to trigger a scanner, with the TWAIN library. Also this server is just some local windows executable listening on a known port, it's not THE server that provides javascript and html to the client. THE big Server runs on Linux far far away.
you want to trigger a twain library (which will open the scanner dialog?)
Excuse me for my lack of knowledge, but since some cracks, (for which a little candle will burn in my local church today, it's Sunday you know, and it's a sin even to work today, as if I did not sin enough the past week anyway), well again since some posters have explained me that the <object> tag and related "classid" attribute do not necessarily have to point to an 'original' active x object, this I had this idea:
you could possibly develop a scanner activex object
Could I then somehow use the object tag and the class id attribute to trigger a very simple locally running server from my Internet Explorer browser? This local server I then would register in the windows registry, just like the JRE is registered with the magic number classid="clsid: 8AD9C840-044E-11D1-B3E9-00805F499D93" .
what sort of server?
And if this is not a good idea, how can I call this localhost sever on the client side, since I cannot do windows socket programming or something from html or even javascript? Or should I use a button which, as action, launches a new browser, on say localhost:12345 ? Disadvantage would be that then I got a new window that is of no other use then just kicking this local server, hence that's not very pretty either.
you can do this to kick a local server
var junk=new Image;
junk.src="http://localhost:12345/"+unique_string ;
For your interest, it's programming for an intranet, so some obliged clientside properties are accepted in the system. I should call TWAIN and kick a scanner from the browser. The little server running at the client side, would be the alternative for a JTWAIN applet, I tried earlier.
what is supposed to happen to the scanned image?
Bye.
Jasen This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Fuzzyman |
last post by:
I am trying to write a small server program that will work on a
*client* machine as a localhost server. It should then act as a proxy
server but modify URLs fetched through it - so that the fetches go via
an external CGI proxy.... Understand all that ? :-)
(I have a working CGI proxy that will remotely fetch web pages that I
can't access. The CGI proxy knows which page to fetch through the
PATH_INFO environment variable. What I'd like to...
|
by: Brian Henry |
last post by:
Hello,
I was tring to learn socket's (being i never used them before) and have a
simple question. I want to create a listner that will get any data recieved
and print it out. I've been able to get it to recieve only one line of data,
but the next one i send to it wont be printed like the 1st one. I had a
listner running in a thread, does anyone have a simple listner code example
that would show how to have a tcplistner thread running...
|
by: iwdu15 |
last post by:
hey, i was wondering if 1) anyone could tell me whats wrong with my code, i
did a little fixing to the msdn version fo this, or 2) how to make a simple
program that will connect and listen for connections async. if the user
pushes the selected buttons.
i just want a program that connects to another computer on the port and IP
address selected and if the other computer is listening, then connect to it
but this code doesnt work :
Imports...
|
by: serge |
last post by:
When i debug a trigger is it possible to add a WATCH
on the INSERTED or DELETED?
I think not, at least I couldn't figure out a way to do so.
Does someone have a suggestion on how I can see the values?
I did try to do something like
INSERT INTO TABLE1(NAME)
SELECT NAME FROM INSERTED
|
by: GregO |
last post by:
I am new to ASP and would like to know if anyone has a page that will
display username, time, IP
TIA - Grego
| |
by: Cathy |
last post by:
I am using a System.Data.SqlClient.SqlConnection to connect to a SQL
Server 2005 database. I instantiate the SqlConnection with a
connection string...
SqlConnection sqlConn = new SqlConnection(@"Network
Library=DBMSSOCN;Data Source=(local)" +
",1433;Database=CATHYDB;User
id=cathy;Password=pswd;");
When this code runs I can guarantee that everything about it will be
|
by: patrickr |
last post by:
Hi, can someone help me with with this stupid but fundamental problem...
I am trying to install Apache2.2.8 (I have also tried 2.2.6 & XAMPP) but when I try the local test (http:/localhost/) it just hangs up. I have followed the instructions in O'Reilly's Learning PHP & MySQL to the letter (basically following the install wizard and using 'localhost' & 'localhost' in the Network_Domain & Server_Name respectively and choosing HTTP server 2.0...
|
by: undbund |
last post by:
Hi I am creating a newsletter system. The software should run from
desktop computer (localhost) but be able to send email to anyone on
the internet. Can you guys give me some ideas on how to achieve this.
Thanks
|
by: zxo102 |
last post by:
Hi,
I am trying to use python module smtplib to send my email out on
window xp (localhost).
import smtplib
server = smtplib.SMTP('localhost')
but I got the error information as follows:
Traceback (most recent call last):
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |