Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
| Search | Today's Posts | Mark Forums Read
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old December 20th, 2007, 01:54 AM
Registered User
 
Join Date: Oct 2006
Location: chennai, tamilnadu, India.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default transformNode not working in firefox

Hi All,

 I have my javscript code as following to apply xslt for the xml content present inside a div tag. This code works in ie. But not working in FireFox , Safari.

var strStyle = document.getElementById(“sStyle”).XMLDocument;
 document.getElementById(“wd”).innerHTML = document.getElementById(“forxml”).transformNod e(“strStyle”);

here is the piece of code in my asp file where the xml transformation is taking place.

<XML ID="forxml" HEIGHT="0" WIDTH="0"><%=sentence%></XML>
<XML ID="sStyle" SRC="aod.xsl"></XML>

<div id =”wd”></div>

the asp variable sentence holds the xml tag information .

This code works perfectly in Internet Explorer . But its not at all working in FireFox.

Its displaying error message as “transformNode not a function in firefox”

Please give me suggestions how to rectify this…?

Thanks in advance.





Similar Threads
Thread Thread Starter Forum Replies Last Post
innerHTML tag is not working in firefox johnpaul8182 ASP.NET 2.0 Professional 0 March 4th, 2008 07:29 AM
Blog with FCKeditor not working in Firefox cwh BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 5 March 20th, 2007 01:35 AM
logout not working in firefox sen22 ASP.NET 2.0 Basics 0 January 25th, 2007 04:21 AM
Client side XSLT not working in FireFox ole_v2 XSLT 1 November 13th, 2006 06:26 PM
responseText not working in FireFox Coyote21 BOOK: Professional Ajax ISBN: 978-0-471-77778-6 0 July 13th, 2006 05:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.