I can't get it done with a multidimensional array though :s
jsTypeProjecten = new Array( <% TypeProjecten %>);
Says the types are different :'(
I was able to get all the numbers in different array.. but they'll be a real pain to address.
'for i = 0 to Ubound(TypeProjecten)
' response.write(" jsType" + Cstr(i) + " = new Array("

' for j = 0 to Ubound(TypeProjecten(i)) - 1
' if j = Ubound(TypeProjecten(i)) - 1 Then
' response.write(TypeProjecten(i)(j))
' else
' response.write(TypeProjecten(i)(j) + ","

' end if
' next
' response.write("

;" + vbCRLF)
'next
'response.write("jsTypeProjecten = new Array(" + Cstr(Ubound(TypeProjecten)) + "

;"
'response.write("jsTypeProjecten[1] = jsType()"
Gives as output
jsType0 = new Array();
jsType1 = new Array(6,5);
jsType2 = new Array(7);
jsType3 = new Array(8);
But I want to be able to write a function like
function filterPic(type) {
for (i=0;i < type
;i++) {
parent.mainFrame.document.images.FPT_P type.src = "affli3t.jpg";
}
}
I have no idea how to make it so that FPT_P type.src changes like FPT_P5
and I want to call this function with something like
<A HREF="#" onclick="filterPic(jsType<%=(rsTypes.Fields.Item("TypeID"
.Value)%>)"> <% response.write(rsTypes.Fields.Item("Tnaam"
.Value) %> </A>
Aren't there any better ways :'(
All I need to do is have the numbers from the pictures that need to be changed in an array.
When clicked on the link the pictures with that number need changing ...