Thanks Dan.
I've tired your suggestion, and have received the following error: "document.getElementsByNam
I thought that "latest date" in "if ((tord[i].value==0)&&(tpub
"<input type="text" name="txtCurrentDate" value="<%=Now%>">"
and passed it to the JavaScript as follows:
"if ((tord[i].value==0)&&(tpub
"document.getElementsByNam
Even If I remove the following from the code completely:
"if ((tord[i].value==0)&&(tpub
{
v=i;
}"
I still received an error at: "var v=-1;" line, saying: "document.getElementsByNam
Any ideas?
Maybe I should try to explain the problem properly, so just to clarify I need the following:
1. Search through an array of input boxes "txtOrder" and find the input box where value is "0"
2. When that record is found, I need to check if "txtPublished" record is higher or equal to today's date "txtCurrentDate"
3. If it is higher or equal to today's date then this is our record that we are looking for
4. Now we need to apply to this record the highest value, i.e. replace "txtOrder" value "0" to the highest number from the list. We might already have several "txtOrder" values on the list such as 1,2,3,4 so we need to replace our record value "0" to "5" for example.
Hope this makes more sense.
Cheers!!!
Main Topics
Browse All Topics





by: mrdanyPosted on 2008-07-31 at 16:32:20ID: 22134405
i dont think there's a unique way of linking any txtPublished box with its own txtOrder.
which returns an array of all elements having a specific name.
("txtorder ")[0] will be linked with document.getElementsByName ("txtPubli shed")[0] we can proceed with your request.
but we can make use of the method document.getElementsByName
assuming that document.getElementsByName
i dont understand very well the definitions that you put in the folder, but i've assumed this is what you want... if might need some more tweeking, just let me know what are your needs, more clearly..
hope this helps,
cheers,
dan
Select allOpen in new window