[FONT=times new roman][COLOR=purple]
hi every body..
I was trying to make transaction between two select menus, and i did Finalyyyyyyyy.. BUT .. one last problem still … I want to delete the transfered item from the regional menu … but the way i followed gives me “Error on Page()” shown in the status bar of the browser ..
here’s the entire code:
[/FONT]
[CODE]
<script type=”text/javascript”>
<!–
function formAction()
{
var x=document.getElementById(“mySelect”)
x.multiple=true
}
function addOption(from,to)
{
var sfrom = document.getElementById(from);
var opt = sfrom.options[sfrom.selectedIndex].value;
var d = sfrom.selectedIndex;
var tolen = sfrom.options.length;
var i = d;
for ( ; i < tolen ; i++)
{
sfrom.options[i].value = sfrom.options[i+1].value;
sfrom.options[i].id = sfrom.options[i+1].id;
}
sfrom.options.length = sfrom.options.length -1;
var newOption = new Option(opt,opt);
var sto = document.getElementById(to);
var s2len = sto.options.length;
sto.options.length = sto.options.length +1;
sto.options[s2len] = newOption;
}
–>
</script>
[FONT=times new roman][COLOR=purple]
any idea will be highly appreciated..
rEgards,
dEllo.[/FONT]