Webmaster Forum


Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 06-11-2004, 08:31 AM
Junior Member
 
Join Date: 06-11-04
Posts: 1
iTrader: 0 / 0%
Please help! My XML won't run in Netscape, only IE

I am an intern working for USAirways.com for the summer. I am doing a little project with XML to dymanically display airport information. I have tried everything! My XML will only work in IE. I know the part that doesn't run in Netscape (7.1) but I can't fix it.

What I have are XML & XSL files. The XML file holds airport information, the XSL file dynamically displays the information. For example. In IE if you go to: http://localhost/airportList.xml?=BWI

You will be displayed with all of the airport info for Balitmore Washington International. The part that doesn't work is the javascript that takes the URL and places it into an XSL variable:
<msxsl:script language="JScript" implements-prefix="url">
<![CDATA[
function findURL(nodelist) {
return nodelist.nextNode().url;
}
]]>
</msxsl:script>

You can find my files at: http://www.usairways.com/eric/

View it with IE to see how it works. In order for the code to work, it must be running through a web server. You cannot just open the files locally in your browser.

I think it *might* have something to do with not having a <xslutput> element anywhere to declare the "cdata-section-elements".

ANY help would be greatly appreciated! Thanks!

- Eric
 
Reply With Quote
  #2 (permalink)  
Old 06-11-2004, 12:36 PM
imaginemn's Avatar
v7n Mentor
Latest Blog:
None

 
Join Date: 02-18-04
Location: Brownsville, Texas
Posts: 1,356
iTrader: 0 / 0%
That's because IE4 allows you to parse an incoming XML document and use JavaScript to manipulate its contents and render elements. IE has the parser built in to the browser.

Netscape does not read XML files directly. What you will need to do is create a parser script in ASP, Cold Fusion, PHP or whatever programming language you are using and call the parser script to display the XML content. It's not too hard to accomplish this. I am sure if you can find free scripts online to do this.

imaginemn
__________________
Brownsville Web Design , McAllen Website Design, Harlingen Web Design
Website Design | Web Development | eCommerce | Search Engine Optimization (SEO)
 
Reply With Quote
  #3 (permalink)  
Old 06-11-2004, 12:47 PM
seonewbee's Avatar
Senior Member
Latest Blog:
None

 
Join Date: 05-12-04
Posts: 302
iTrader: 0 / 0%
I got this message in FireFox.



This is not 127.0.0.1 - your localhost.

If you are a Firefox (Mozilla) user:
set keyword.enabled to false in about:config

You can find an explanation here.
http://www.localhost.be/?dir=weblog&...d-detail&id=25

Otherwise: enter the localhost.be website here.
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why does Netscape AcRoNym Web Design Lobby 18 10-31-2008 02:22 PM
IE vs. Netscape Pipeline-Webdesign Coding Forum 13 05-06-2004 01:20 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 03:47 PM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.