Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML 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
 
Old October 19th, 2004, 02:49 AM
Authorized User
 
Join Date: Dec 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sasidhar79
Default XML Javascript + Netscape equivalent

Hello,

i have the following code for Microsoft Internet Explorer below.
************************************************** **************
var objxmlHTTP = new ActiveXObject("Microsoft.XMLHTTP")
var xmlMyEvals = new ActiveXObject("Microsoft.xmldom")
xmlMyEvals.loadXML("<EMPTY/>")
objxmlHTTP.open("POST", strPath, false);
objxmlHTTP.send(xmlMyEvals.xml)
var objXMLReturn = new ActiveXObject("Microsoft.xmlDom")
objXMLReturn.loadXML(objxmlHTTP.responseText)
************************************************** **************
I need an equivalent code for the Netscape browser...

I tried doing the following for Netscape browser, but the last 2 lines of code never worked.
************************************************** ****************
var objxmlHTTP = new XMLHttpRequest();
var xmlMyEvals = document.implementation.createDocument("", "EMPTY", null);
objxmlHTTP.open("POST", strPath, false);
objxmlHTTP.send(xmlMyEvals.xml)
var objXMLReturn = document.implementation.createDocument("","doc", null);
objXMLReturn.load(objxmlHTTP.responseText)
************************************************** ****************

please help me if anybody has an alternative for Netscape.

regards
Sasidhar


thanks,
Sasidhar
__________________
thanks,
Sasidhar





Similar Threads
Thread Thread Starter Forum Replies Last Post
javascript+netscape sasidhar79 Javascript How-To 1 October 19th, 2004 05:52 AM
XML & Netscape Greg Griffiths Javascript How-To 13 September 30th, 2004 10:20 AM
Netscape Layers Using CSS+JavaScript(DOM) anshul Javascript How-To 2 May 26th, 2004 01:51 PM
XML and netscape / mozilla madhukp XML 1 May 21st, 2004 04:01 PM
javascript equivalent lcsgeek Classic ASP Basics 0 September 22nd, 2003 07:17 AM





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