By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,711 Members | 2,158 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,711 IT Pros & Developers. It's quick & easy.

nsIServerSocket alternatives?

P: n/a
In firefox, an easy alternative for some applications of
nsIServerSocket is the URI "data:", if the only goal was to do
http://localhost/ connections (for instance, you have build an image
within javascript, or some other kind of binary data, and you want to
show it in an iframe).

Are there altertatives in explorer? Either for http://localhost/ and
for generic listening. I have even checked about using VBScript!
Feb 5 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Alejandro Rivero wrote:
In firefox, an easy alternative for some applications of
nsIServerSocket is the URI "data:", if the only goal was to do
http://localhost/ connections (for instance, you have build an image
within javascript, or some other kind of binary data, and you want to
show it in an iframe).
http://localhost/ is an URI that, when applied and working, causes a HTTP
connection to be established. That has nothing to do with `data:' URIs,
which refer to volatile resources that are not available via HTTP.
Are there altertatives in explorer? Either for http://localhost/ and
for generic listening. I have even checked about using VBScript!
To the extent that Internet Explorer supports (2038 characters max.), you
can use the `javascript:' URI/pseudo-protocol scheme to generate arbitrary
data. This approach also works in other user agents, including Firefox.
For example, an example has been posted here that displays a volatile XBM
image generated with client-side J(ava)Script.
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Feb 6 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.