Nitobi User Forums Forum Index

    (RSS)
Nitobi User Forums
Nitobi Support Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Row count for httprequest?

 
Post new topic   Reply to topic    Nitobi User Forums Forum Index -> Ajax Toolkit
View previous topic :: View next topic  
Author Message
jvantslot



Joined: 07 Oct 2007
Posts: 5

PostPosted: Sun Oct 07, 2007 3:38 am    Post subject: Row count for httprequest? Reply with quote

How do I get the count of rows from a response to an httpReqest?

I need to iterate through a xml result set using javascript. How do I access the row count?

Thanks!
Back to top
View user's profile Send private message
jvantslot



Joined: 07 Oct 2007
Posts: 5

PostPosted: Sun Oct 07, 2007 6:48 am    Post subject: Reply with quote

figured it out

Code:


var myXML = openrecord(rec_id);
                       
   e = myXML.getElementsByTagName('e');
                       
   for (var i=0; i<e.length; i++) {     
      var value1 = e.item(i).getAttribute('b')
   var value2 = e.item(i).getAttribute('c')   
   var value3 = e.item(i).getAttribute('d')
   var value4 = e.item(i).getAttribute('e')           
   }         
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Nitobi User Forums Forum Index -> Ajax Toolkit All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group