1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

ASP Weather Script

Discussion in 'C#' started by sethyr, Jan 16, 2010.

  1. #1
    Hi!
    I'm working on the new version of my school site, and we would like to include the current temperature along with an icon to represent the conditions outside. I have made a mock up:
    [​IMG]
    SEMrush
    We are running on an IIS server (asp) and most tutorials I can find are hard to follow or are for php. Does anyone know the easiest way I can achieve this?
    Thanks :)
     
    sethyr, Jan 16, 2010 IP
    SEMrush
  2. mrbrantley

    mrbrantley Member

    Messages:
    87
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #2
    You would probally need to do an XML call to some sort of data store, like Yahoo (http://developer.yahoo.com/weather/). With that, phrase the results and show the data you are interested in.

    First, check that Yahoo link. Second, read up on ASP / XML
     
    mrbrantley, Jan 20, 2010 IP
  3. Where2Buy.eu

    Where2Buy.eu Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Have you contacted their Support team, where are you getting the data from and in what form, i mean xml, txt or simply http response???
     
    Where2Buy.eu, Jan 20, 2010 IP
  4. vihutuo

    vihutuo Well-Known Member

    Messages:
    1,511
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    130
    #4
    vihutuo, Jan 25, 2010 IP
  5. sethyr

    sethyr Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    sethyr, Jan 30, 2010 IP
  6. sdnsoft

    sdnsoft Member

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #6
    In one of my project I was using Google Weather XML API and it was very friendly and works till today:)

    Look at this: http://www.googleapihelp.com/2009/08/google-weather-api.html
     
    sdnsoft, Feb 22, 2010 IP
  7. sethyr

    sethyr Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Awesome! Is there anyway I can translate that php code into javascript? I don't have php on the server and would like to avoid having to change every html page to an asp page.
     
    sethyr, Feb 22, 2010 IP
  8. sdnsoft

    sdnsoft Member

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #8
    I'm not fimiliar with javascript http request but for sure it's possible to solve it this way.

    Below link to article about making XMLHTTP request using javascript you can adapt it somehow:
    http://snippets.dzone.com/posts/show/2913
     
    sdnsoft, Feb 22, 2010 IP
  9. sethyr

    sethyr Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I know close to absolutely nothing about javascript :\ and trying to do something this advanced compared to my level is frying my brain. With this being a project with a deadline I have no time to learn about javascript.
     
    sethyr, Feb 22, 2010 IP