Предыдущая тема :: Следующая тема |
Автор |
Сообщение |
Littlemary
Зарегистрирован: 17.06.2002 Сообщения: 22
|
Добавлено: Пт Апр 09 2004 11:44 Заголовок сообщения: JavaScript + XML |
|
|
Здравствуйте. Мне нужно брать данные из XML файла и обновлять форму каждые 10 секунд.
Есть ли в JavaScript готовые функции для работы с xml? Подскажите пожайлуста.
Вот xml
<adoCmdObj>
<resObj instrumentid="726" symbol="USDCHF Spot" description="Spot US Dollar vs Swiss Franc" type="2" term="2" region="26" pip="0.0001" bid="1.2808" offer="1.2812" spread="4" margin="1.00" ntr="0.00" openinghours="openinghours" flagBid="2" flagOffer="2" flagSpread="2" />
<resObj instrumentid="777" symbol="USDJPY Spot" description="Spot US Dollar vs Japanese Yen" type="2" term="2" region="77" pip="0.01" bid="106.49" offer="106.52" spread="3" margin="1.00" ntr="0.00" openinghours="openinghours" flagBid="1" flagOffer="1" flagSpread="3" />
<resObj instrumentid="754" symbol="GBPUSD Spot" description="Spot British Pound vs US Dollar" type="2" term="2" region="154" pip="0.0001" bid="1.8323" offer="1.8327" spread="4" margin="1.00" ntr="0.00" openinghours="openinghours" flagBid="3" flagOffer="3" flagSpread="4" />
<resObj instrumentid="2245" symbol="EURUSD Spot" description="Spot Euro vs US Dollar" type="2" term="2" region="154" pip="0.0001" bid="1.2088" offer="1.2091" spread="3" margin="1.00" ntr="0.00" openinghours="openinghours" flagBid="3" flagOffer="3" flagSpread="4" />
</adoCmdObj> |
|
Вернуться к началу |
|
 |
Гость
|
Добавлено: Вт Апр 13 2004 02:57 Заголовок сообщения: |
|
|
There are some ActiveX components + XML data binding but it works only in IE. Check out ActiveX component Microsoft.XMLHTTP which you can create using JavaScript:
var xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
but keep in mind it works only in IE.
There a plenty server side components to parse XML in ASP, JSP, etc. |
|
Вернуться к началу |
|
 |
|