dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Javascript Code to allow XML Feed to appear on webpage!!!

  1. #1
    Join Date
    Apr 2013
    Posts
    6

    Javascript Code to allow XML Feed to appear on webpage!!!

    Hello all,

    I have tried so many things to get this to work but to no avail, can someon eplease help me out here with a simple script for n XML steam feed.


    http://api.steampowered.com/ISteamUserStats/GetGlobalAchievementPercentagesForApp/v0002/?gameid=221380&format=xml



    OK NOW THE ISSUE IS:

    I have a blank webpage which I have placed the above link into, I simply want the contents of the XML feed from the link to appear in my

    page.......

    How do I make the contents of that url appear on the same page??

    SO I NEED THE SMALL SCRIPT OR HTML CODE TO DO THIS

    Also I would like to have the background a certain colour and use a certain font like 12point arial with bold headings and lower case text.

    Can someone please provide me with the html to allow this XML feed to appear on my webpage with a different colour background, arial 12pt font in

    bold and lowercase

    ____________________________________________________________________________

    I RECEIVED A REPLY TO THIS POST AND THEY ADDED THIS:

    It's a little hard to tell from what you wrote. But, I think what you are looking for is an AJAX script to pull in the XML,
    then CSS can take care of the formatting.

    Look up how to process a XMLHttpRequest in javascript (or another scripting language). That will let you put the XML file into an array. Then,

    you can use (javascript) document.write() to put the pieces on your page.

    ______________________________________________________________________________

    SO this being said do I need a javascript code in the page to show the XML Feed with formatting, what would this code be, this is the magical

    question

    Could someone pleasde please help me..........

    With regards

    Mathew

  2. #2
    Join Date
    Jul 2008
    Location
    urbana, il
    Posts
    2,787
    you can try my data binder tool, it supports rss. http://danml.com/bind/

    the only rss example i have up is a table, but you can template any html markup with the datasrc attrib on each field's element, which means you can style them too

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles