www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > XML

    XML Discussion and technical support for using and deploying XML applications and websites.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 12-14-2006, 11:06 PM
    evo33 evo33 is offline
    Registered User
     
    Join Date: Nov 2006
    Posts: 9
    Question Will this simple code work in Firefox? it does work in IE6

    Hi,

    I have a query in regards to some code i've been trying to display data in a table. I can get the site to display the data in the table using Internet Explorer 6 however in Firefox 1 it woint display?

    I have read that Netscape 6 and 7 don't support xml - is this true.

    Is there anything I can do to alter the code so it works in both browsers'?

    The code is:


    <xml id="produce" src="../xml/produce.xml"></xml>

    <table align="center" style="width: 500px;" datasrc="#produce" border="1" cellpadding="3" cellspacing="2" summary="Joe's Product Listing">
    <thead>
    <th>Item</th>
    <th>Price</th>
    </tr>
    <thead> <tbody>
    <tr>
    <td><span datafld="item"></span></td>
    <td><span datafld="price"></span></td>
    <tr>
    </tbody>
    </table>


    and this is linked to a xml file which contains the data:

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!-- <?xml-stylesheet type="text/css" href="../css/produce_xml.css"?> -->
    <STOCK>
    <PRODUCE>
    <ITEM>Alfalfa Sprouts</ITEM>
    <PRICE>$1.50 per punnet</PRICE>
    </PRODUCE>



    Now I have applied CSS styles and appears to be working in IE6 fine,

    Css is:

    PRODUCE {display:table-row;}
    ITEM {display:table-cell;
    font-weight:bold;
    padding-left:20px;
    padding-right:20px;}
    PRICE {display:table-cell;}


    Please let me know if this will not work in Firefox or if it can and how?

    regards
    Adrian..
    Reply With Quote
      #2  
    Old 12-15-2006, 09:37 AM
    aussie girl aussie girl is offline
    Registered User
     
    Join Date: Jun 2006
    Posts: 472
    well first off FF is not as forgiving as IE, you need to check your tags which some closing tags are missing.. I can get the ALFALFA Sprouts $1.50 per punnet displayed in FF but not the tables, it's been a while since I have played around with XML
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    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 Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 03:37 PM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.