Iterate Through Nodeset Without For Each

I have 2 nodesets, the first is looped through to give a row name to a table, the second contains the data:

Set names = xmlDoc.selectNodes("/data/categories/category")
Set data= xmlDoc.selectNodes("/data/dataset[@year='2006-07']/set")

z=0
For Each name In names
Response.write(... td with name in.....)
Response.Write(...td with data.selectSingleNode(".[z]/@value").text)
z=z+1

Next
this is roughly what i want to do, but i cant get the data to work (Object doesn't support this property or method: 'selectSingleNode' )

is this possible?

View Replies


ADVERTISEMENT

Iterate Through Numbers And Form A Loop

i have an sms phone book that allows users to send multiple sms from the internet to a cell phone.

However when a users chooses to send bulk, it inserts the numbers into a textfield box seperated by commas. Which are in turn passed to the server side to be sent.

PROBLEM
Now i would want to seperate each number and loop through them e.g

numbers could be : Note they are seperated by comma

2865843275,253245234,254235432,4325432542,2452345234

1. on the server side i would like to loop though each number and assign to a variable

2. Count the number of phone numbers and assign a variable total_numbers to it.

e.g. something like this

for each
a = phone_variable
next

HOw do i achieve this ?

View Replies View Related

Automatically Iterate Through Form Data

Is there any way to access form data in an automatic sense? For some reason, I thought you could access form elements by request.form(0) and it would give you the first form element, but that doesn't work.

My problem is that I have a dynamically generated from (to the point where fields change depending on DB data) and I need to access both the name of the form object, and the data in the object dynamically. I thought there was a way to do this, but w3schools.com doesn't have anything like that listed for the request or request.form object.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved