how do you do this ?

Discussion in 'Programming' started by AfroSamurai, Jan 5, 2010.

  1. #1
    [​IMG]
    it updates the weather data. I looked at the source code but I can't seems to figure out how it works.
    this is the web site, http://www.vic.gov.au/index.html

    Cheers
     
    AfroSamurai, Jan 5, 2010 IP
  2. ookie1

    ookie1 Peon

    Messages:
    134
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <select id="weatherRegion" name="weather_location">
    <option value="Bairnsdale" >Bairnsdale</option>
    <option value="Ballarat" >Ballarat</option>

    <option value="Beechworth" >Beechworth</option>
    <option value="Benalla" >Benalla</option>
    <option value="Bendigo" >Bendigo</option>
    <option value="Castlemaine" >Castlemaine</option>
    <option value="Colac" >Colac</option>
    <option value="Corryong" >Corryong</option>

    <option value="Echuca" >Echuca</option>
    <option value="Eildon" >Eildon</option>
    <option value="Frankston" >Frankston</option>
    <option value="Geelong" >Geelong</option>
    <option value="Hamilton" >Hamilton</option>
    <option value="Heidelberg" >Heidelberg</option>

    <option value="Horsham" >Horsham</option>
    <option value="Latrobe Valley" >Latrobe Valley</option>
    <option value="Melbourne" selected="selected">Melbourne</option>
    <option value="Mildura" >Mildura</option>
    <option value="Mortlake" >Mortlake</option>
    <option value="Mt Buller" >Mt Buller</option>

    <option value="Mt Dandenong" >Mt Dandenong</option>
    <option value="Mt Hotham" >Mt Hotham</option>
    <option value="Omeo" >Omeo</option>
    <option value="Orbost" >Orbost</option>
    <option value="Ouyen" >Ouyen</option>
    <option value="Sale" >Sale</option>

    <option value="Scoresby" >Scoresby</option>
    <option value="Seymour" >Seymour</option>
    <option value="Shepparton" >Shepparton</option>
    <option value="Stawell" >Stawell</option>
    <option value="Swan Hill" >Swan Hill</option>
    <option value="Tullamarine" >Tullamarine</option>

    <option value="Wangaratta" >Wangaratta</option>
    <option value="Warrnambool" >Warrnambool</option>
    <option value="Werribee" >Werribee</option>
    <option value="Wonthaggi" >Wonthaggi</option>
    <option value="Yarra Glen" >Yarra Glen</option>
    <option value="Yarrawonga" >Yarrawonga</option>


    </select>
    <button class="blue" type="submit" name="events[weather][OnChangeCurrentLocation]" value="Go">Go</button>
    </div>
    </form>
    <div class="align_left margin-top-4"><img src="http://www.vic.gov.au/kernel/images/weather_forecasts//mostly_sunny_sm.gif" height="20" id="weatherIcon" alt=" "/> </div>
    <div class="align_left margin-top-4"> 16&nbsp;-&nbsp;23 &deg;C, Mostly sunny 22.0&deg;C at 4:40pm </div>


    Probably a script that is updated via RSS feed. ;)
     
    ookie1, Jan 5, 2010 IP
  3. AfroSamurai

    AfroSamurai Peon

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    these codings are just for the form there but wht next to it is what i'm interested. it updates automatically.. can't seems to find anything in the coding.. if it's through a rss feed , you should be able to see it in the code yea ??
     
    Last edited: Jan 5, 2010
    AfroSamurai, Jan 5, 2010 IP
  4. ookie1

    ookie1 Peon

    Messages:
    134
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    No, you won't see it in the code.

    It would be in one of the scripts in the header. ;)
     
    ookie1, Jan 6, 2010 IP
  5. NeoCambell

    NeoCambell Peon

    Messages:
    456
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    NeoCambell, Jan 6, 2010 IP