Hello Batalf,
Thanks for the advice it now works very well here is the final code
function saveDragDropNodes()
{
var saveString = "";
var uls = dragDropTopContainer.getElementsByTagName('UL');
for(var no=0;no<uls.length;no++){ // LOoping through all <ul>
var lis = uls[no].getElementsByTagName('LI');
for(var no2=0;no2<lis.length;no2++){
if(saveString.length>0)saveString = saveString + "; ";
saveString = saveString + uls[no].id + '-' + lis[no2].id;
}
}
document.forms[0].hiddenNodeIds.value = saveString;
}
It seems that the results must be saved using a seperate button with return false; before FrontPage is going to submit the form. Here is the button.
<input type="button" a href="#" onclick="saveDragDropNodes();return false" value="Save" style="font-size: 10pt; width: 225px; height: 23px; border: 2px solid #800000; background-color:#FFD7D7" name="Save" tabindex="1">
Here is the form
<form method="POST" action="--WEBBOT-SELF--" name="Polarity" onSubmit="location.href='_derived/nortbots.htm';return false;" webbot-onSubmit>
<!--webbot bot="SaveResults" U-File="_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Email-Format="TEXT/PRE" S-Email-Address="" B-Email-Label-Fields="TRUE" B-Email-Subject-From-Field="FALSE" S-Email-Subject="Polarity" S-Date-Format="%A, %B %d, %Y" S-Builtin-Fields="Date" startspan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" i-checksum="43374" endspan -->
<input type="hidden" name="hiddenNodeIds"><p> <input type="submit" value="Submit" name="B1" style="font-size: 10pt; width: 50px; height: 23px; border: 2px solid #800000; background-color: #BFD5D5" tabindex="4"><input type="reset" value="Reset" name="Reset" style="font-size: 10pt; width: 50px; height: 23px; border: 2px solid #800000; background-color: #BFD5D5" tabindex="5"></p>
</form>
Just one more question concerning the layout of the from results which i have modified slightly.
How can I display the results as a bulleted list?
Regards
Trevor