Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    reading in xml data

    need help....
    I need to create a web page that can pull data from sensatronics senturion sensor probe. The unit has a web server that displays temperature, humidity,etc. You can also query it for from telnet or webpage which kicks back xml.

    My page needs to read the values of the probes. I don't know much about javascript and have been unsuccessful trying to use httprequest. I guess this would be considered cross domain as well?

    Here is the XML that is generated from the unit. I get this by pulling through a web browser x.x.x.x/xmldata

    Thanks

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <Sensatronics id="S10604" hb="10554">
    <Group id="1">
    <Probe id="100"><Value>75.2</Value></Probe>
    </Group>
    <Group id="2">
    </Group>
    <Group id="3">
    </Group>
    <Group id="4">
    </Group>
    <Group id="5">
    </Group>
    <Group id="6">
    </Group>
    <Group id="7">
    </Group>
    <Group id="8">
    </Group>
    <Group id="9">
    <Probe id="99"><Value>1.0</Value></Probe>
    <Probe id="1"><Value>79.5</Value></Probe>
    <Probe id="2"><Value>34.3</Value></Probe>
    <Probe id="3"><Value>35.6</Value></Probe>
    <Probe id="4"><Value>0.0</Value></Probe>
    </Group>
    </Sensatronics>

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,986
    Thanks
    79
    Thanked 4,432 Times in 4,397 Posts
    have been unsuccessful trying to use httprequest. I guess this would be considered cross domain as well?
    Yes. So you can't do it in the browser. You will need to do this via server side code (PHP, ASP, JSP, etc.).

    If there is some reason you *need* to do this in the browser, you could perhaps set up a simple proxy on your server that would "forward" the data from the foreign URL to your own.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    LinkBacks (?)


    Posting Permissions

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