|
|
# 1 |
|
חבר על
|
עבודה עם XML בJS
אהלן,
יש לי את קוד הJS הנ"ל (קוד רלוונטי): קוד:
new Ajax.Request("action.php",{
method:"post",
parameters:{
action:"getFlights",
destId:destIdValue
},
onComplete: function(t){
cleanUpRows();
var xmlobject = (new DOMParser()).parseFromString(t.responseText.trim() , "text/xml");
xmlobject = xmlobject.getElementsByTagName("root").item(0);
var o = xmlobject;
יש למישהו רעיונות? עריכה: עברתי על הקוד והרצתי מספר בדיקות. הxmlobject מתאפס בקטע של: קוד:
xmlobject = xmlobject.getElementsByTagName("root").item(0);
__________________
דוד בן דוד. Last edited by DavidBD; 01-04-09 at 09:06.. |
|
| חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים) | |
|
|