wilberforce2
IS-IT--Management
I have some Javascript code that splits one string into categories for example:
Armed Forces[14]|Territorial Organisations and Bodies[1]
The categories are seperated by | and the numbers in the squate brackets are sort order.
The problem I am having is that the returning numbers submitted to the database search using asp are coming up wrong for example Armed forces returns Armed Forces[12] when the sort number should be 14? This only appears to happen on some of the categories. The code runs so it must be an error in the process somewhere.
To see what I mean the web page is located at:
I have sorted so that an SQL debug print appears on screen so you can see what is happening. If you prefer I can post the code here but there is quite a bit and did not want to flood the page with reams of code. The javascript code was written for me and although I have a basic understanding this problem is beyond what I understand so any help in what’s going wrong would be appreciated.
Many thanks.
Armed Forces[14]|Territorial Organisations and Bodies[1]
The categories are seperated by | and the numbers in the squate brackets are sort order.
The problem I am having is that the returning numbers submitted to the database search using asp are coming up wrong for example Armed forces returns Armed Forces[12] when the sort number should be 14? This only appears to happen on some of the categories. The code runs so it must be an error in the process somewhere.
To see what I mean the web page is located at:
I have sorted so that an SQL debug print appears on screen so you can see what is happening. If you prefer I can post the code here but there is quite a bit and did not want to flood the page with reams of code. The javascript code was written for me and although I have a basic understanding this problem is beyond what I understand so any help in what’s going wrong would be appreciated.
Many thanks.