473,473 Members | 1,672 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

JavaScrip, xml and Linux

Dear readers,

Can I use the following object on a Linux based web server:

var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");

If not, is there a compatible object?

Tia, Jean.
Jul 23 '05 #1
5 3615
Dear readers,

Okay, that was a bit stupid because the object is - ofcourse - created by
the browser...
Now the real trouble is the following code:

var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async = "false";
xmlDoc.load(http://111.222.333.444/btw/Btw2Xml.jsp?parm=NYC);

If I have a local file, I can do the load... ( the url shown is a fake one)

If I put very same file on my webserver, I get a an "access error" in IE on
the 3rd line show, character 7.
This is the 'dot' in "xmlDoc.load". If I use the script debugger it says:
"msxml3.dll : access denied".

Which is very informative, but not a great help.
Does anyone have a clue?

Tia, Jean.

"Jean Pion" <je*******@hotmail.com> schreef in bericht
news:ab***************************@news1.zonnet.nl ...
Dear readers,

Can I use the following object on a Linux based web server:

var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");

If not, is there a compatible object?

Tia, Jean.

Jul 23 '05 #2


Jean Pion wrote:

Now the real trouble is the following code:

var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async = "false";
Should be
xmlDoc.async = false;
xmlDoc.load(http://111.222.333.444/btw/Btw2Xml.jsp?parm=NYC);

If I have a local file, I can do the load... ( the url shown is a fake one)

If I put very same file on my webserver, I get a an "access error" in IE on
the 3rd line show, character 7.


If you have script in a page served from http://example.com/ then using
Microsoft.XMLDOM you can only load URLs from that host
http://example.com/, at least with the normal security settings in IE.
I think you can make http://example.com/ a trusted site and thereby
allow it to connect to other servers.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #3
Thanks Martin,

That sounds very reasonable...
I tried this, but I still have the same troubles.
Even checked all the options for trusted sites, which seem to allow for
cross-domain activities.

Now trough yout link found that:

Set the domain property only if you must allow cross-domain scripting. Use a
value determined on the server. Setting this property to a value determined
on the client (like through the location object) could expose your site to
attack from another site through Domain Name System (DNS) manipulation.

But I'm unsure what it means but I think it is releated.
Any examples?

Tia, Jean.

"Martin Honnen" <ma*******@yahoo.de> schreef in bericht
news:41***********************@newsread4.arcor-online.net...


Jean Pion wrote:

Now the real trouble is the following code:

var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async = "false";


Should be
xmlDoc.async = false;
xmlDoc.load(http://111.222.333.444/btw/Btw2Xml.jsp?parm=NYC);

If I have a local file, I can do the load... ( the url shown is a fake one)
If I put very same file on my webserver, I get a an "access error" in IE on the 3rd line show, character 7.


If you have script in a page served from http://example.com/ then using
Microsoft.XMLDOM you can only load URLs from that host
http://example.com/, at least with the normal security settings in IE.
I think you can make http://example.com/ a trusted site and thereby
allow it to connect to other servers.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 23 '05 #4
Thanks Martin,

Oh dear, oh dear. In my hury I 'trusted' the the wrong site.
So, to follow your example:

If you have script in a page served from http://www.example.com then using
Microsoft.XMLDOM you can load URLs from http://www.elsewhere.com
if you can make http://www.example.com a trusted site.

You were right, thank you.
I was confused and tried to 'trust' http://www.elsewhere.com but that does
not work.

Jean

"Jean Pion" <je*******@hotmail.com> schreef in bericht
news:c4**************************@news1.zonnet.nl. ..
Thanks Martin,

That sounds very reasonable...
I tried this, but I still have the same troubles.
Even checked all the options for trusted sites, which seem to allow for
cross-domain activities.

Now trough yout link found that:

Set the domain property only if you must allow cross-domain scripting. Use a value determined on the server. Setting this property to a value determined on the client (like through the location object) could expose your site to
attack from another site through Domain Name System (DNS) manipulation.

But I'm unsure what it means but I think it is releated.
Any examples?

Tia, Jean.

"Martin Honnen" <ma*******@yahoo.de> schreef in bericht
news:41***********************@newsread4.arcor-online.net...


Jean Pion wrote:

Now the real trouble is the following code:

var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async = "false";
Should be
xmlDoc.async = false;
xmlDoc.load(http://111.222.333.444/btw/Btw2Xml.jsp?parm=NYC);

If I have a local file, I can do the load... ( the url shown is a fake one)
If I put very same file on my webserver, I get a an "access error" in
IE on the 3rd line show, character 7.


If you have script in a page served from http://example.com/ then using
Microsoft.XMLDOM you can only load URLs from that host
http://example.com/, at least with the normal security settings in IE.
I think you can make http://example.com/ a trusted site and thereby
allow it to connect to other servers.

--

Martin Honnen
http://JavaScript.FAQTs.com/


Jul 23 '05 #5
Jean Pion wrote:
Dear readers,

Can I use the following object on a Linux based web server:

var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");

If not, is there a compatible object?

Jean,

I see you already have a few answers, but not about the actual problem.
As a test, can you imagine where a Linux system would get hold of either
ActiveXObjects or Microsoft.XMLDOM?

That's right - neither can I. Both are, after all, _Microsoft_ products
which are in notoriously short supply on Linux systems...
Jul 23 '05 #6

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

Similar topics

4
by: Jhuola Hoptire | last post by:
Just installed J2RE 1.4.2 on a Linux server. I am very knew to the POSIX world. I couldn't dig-up much in the docs or via google about the following: 1 - Is there a standard way to make sure...
0
by: Eric Raymond | last post by:
When installing the rpms (or the tar file) onto Red Hat Enteprise Linux AS Beta 1 (Taroon), we get the follwing error: Installing all prepared tables /usr/bin/mysql_install_db: line 1: 7690...
6
by: gnu | last post by:
Rationale to use Linux ======================= - I can't afford paying for $199 for the license of an OS that's arguably better thank Linux for each of 10 computers I have. - I want to be...
1
by: srihari | last post by:
Hai, I am trying to install IBM DB2 8.1 on Red Hat linux 8.0. My machine is Intel XEON 64bit. The installation went well except for the creation of tools catalog. When I tried to install the tools...
5
by: cranium.2003 | last post by:
hi, Here is my code #include <iostream.h> int main() { cout <<"HI"; return 0; } and using following command to compile a C++ program g++ ex1.cpp -o ex1
1
by: ♥eXtreme oXygen♥ | last post by:
How do i call JAVASCRIP function from an event of ASP.NET:BUTTON, if runat=server attribute is true... actually i want to open an popup window using asp.net--button onclick event, but its not...
3
by: Brett Wesoloski | last post by:
I can not seem to figure this out, but really haven't work a lot with javascrip and .NET. I have a data grid and I want to put a button in it and when the button is pressed it will call my...
1
by: lathamoulali | last post by:
Hello Frnds, I am new to the ASP.NET Programming.Please help me out with this problem. I have a page_load() method in which i have to invoke the javascrip's alert method.I am using inline...
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
Oralloy
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,...
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...
1
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...
0
tracyyun
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.