473,414 Members | 1,944 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,414 software developers and data experts.

crossbrowser ajax xsl issue

hi, i've done some searching and haven't found a solution that worked,
hopefully someone here can help.

i apologize in advance for my dyslexic thought process.

i have an xml file being transformed by an xsl file,
the xsl outputs an html page that then loads other xml via ajax and
applies an xsl to draw a user interface.

firefox does everything perfectly, but when ie tries to start my ajax
wrapper it errors and reports that ActiveXObject("Microsoft.XMLDOM")
can not be created by the Automation server.

i've read that this is because msxml parser cannot create instances of
the msxml parser inside itself.

what really bugs me is that when i try to do everything outside of the
xml/xsl, ie fails with no debug info when it reaches var xmlObj = new
iXMLObj();
iXMLObj being a javascript function that acts as my ajax object
constructor.
when dissecting the code, things just stop here:

( this segment works fine )
var objs = {
serializer : null,
parser : null,
httpreq : null,
xsltproc : null,
xpath : null,
domdoc : null,
xsltemplate : null
};
( it fails when any of these lines are added )
objs.domdoc = ActiveXObject("Microsoft.XMLDOM");
objs.httpreq = ActiveXObject("Microsoft.XMLHTTP");
objs.xsltproc = ActiveXObject("Microsoft.XMLDOM");
objs.xsltemplate = ActiveXObject("Microsoft.XMLDOM");

i'm sorry for not posting the complete code, but this is work being
done for client who asked that nothing be released unless absolutely
neccessary.

any ideas why i can't start the xmldom?

May 7 '06 #1
1 2086


nx*****@gmail.com wrote:

what really bugs me is that when i try to do everything outside of the
xml/xsl, ie fails with no debug info when it reaches var xmlObj = new
iXMLObj(); objs.domdoc = ActiveXObject("Microsoft.XMLDOM");


You need to construct the object with
new ActiveXObject("Microsoft.XMLDOM")

Also note that if you want to do XSLT 1.0 transformations you would
rather use a program id lik
new ActiveXObject('Msxml2.DOMDocument.3.0')
to make sure you have the proper version to support XSLT 1.0.

--

Martin Honnen
http://JavaScript.FAQTs.com/
May 7 '06 #2

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

Similar topics

4
by: bobzimuta | last post by:
I'm creating a simple AJAX library. It's an object that will return an array containing the response text or xml. I'm trying to find a way to assign the response as a property of the object, but...
3
by: Steel | last post by:
Hi at all, I'ld want to know if position:absolute is crossbrowser. Infact I cannot position absolutely an element in the some place with fox-pro and MSIE6 There is always a little difference...
13
by: Pablo | last post by:
Hi at all I'ld like to center a table crossbrowser therefore I wrote: <sryle> table {width:80%;margin-left:auto;margin-right:auto;} </style> firefox work fine but MSIE set the margin to zero...
7
by: =?Utf-8?B?Tmlrb2xheSBFdnNlZXY=?= | last post by:
Hi! I know this topic has been discussed a long way, but I haven't found any apparent solution (maybe I shouldn't be looking for a one :)) I have a very simple application with one page and with...
53
by: brave1979 | last post by:
Please check out my javascript library that allows you to create any layout for your web page, nested as deep as you like, adjusting to width and height of a browser window. You just describe it in...
5
by: simon | last post by:
hello, I have a server set up on my local (home) network and can not get an ajax application to run on the box. it works fine on our developement server and also works fine locally. I...
1
by: par7133 | last post by:
Hi, Yea, XMLHttpRequest give out a crossbrowser problem managing the status change of the connection. Here the solution: var xmlhttp; xmlhttp=null;
6
by: SAL | last post by:
hello, I'm using a radiobuttonlist in an updatepanel in an item template in a Gridview control. I'm populating the radiobuttonlist in the RowDataBound event. I have the control toolkit registered...
11
by: =?Utf-8?B?R2VyaGFyZA==?= | last post by:
I have run into a situation that if a page/tab that uses the Ajax toolkit (using .net version 3.5) is closed before the Ajax enable controls complete loading, then IE locks up. Does it in both IE7...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
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
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.