Per essere più chiaro :
A me interesserebbe far questo :
Lo script dovrebbe leggere questa pagina : http://www.msnbc.com/m/chnk/d/weathe...?acid=ITXX0033
che contiene questo testo :
function makeWeatherObj() { this.swCity = "La Spezia"; this.swSubDiv = ""; this.swCountry = "Italy"; this.swRegion = "West Europe"; this.swTemp = "73"; this.swTempCel = Math.round((5/9)*(this.swTemp-32)); this.swCIcon = "30"; this.swWindS = "0"; this.swWindD = "CALM"; this.swBaro = "29.97"; this.swHumid = "65"; this.swReal = "74"; this.swUV = "2"; this.swVis = "6.21"; this.swLastUp = "07/03/2006 01:55:00"; this.swConText = "Partly Cloudy"; this.swFore = "2|3|4|5|6|07/03/2006|07/04/2006|07/05/2006|07/06/2006|07/07/2006|34|34|34|30|38|22|22|22|4|28|83|84|85|82|78|1 0|0|0|20|60|31|31|33|29|47|11|11|23|4|27|71|70|71| 70|70|"; this.swAcid = "ITXX0033"; }
Io devo estrapolare questi dati : this.swCity , this.swCountry , this.swTemp , this swCIcon.
Come output lo script dovra restituirmi quanto segue :
La Spezia, Italy 73 [img src=/images/icons/30.gif]
Qualcuno può aiutarmi ?????? Vi prego !!![]()
![]()
![]()
![]()