Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > Client Side Scripting
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 08-25-2007, 01:41 PM
  #1
mystic-d
Novice (Level 1)
 
Join Date: Aug 2007
Posts: 2
iTrader: (0)
mystic-d is an unknown quantity at this point
over around all the elements in listbox

hey
can someone plz tell me , how can i build a function on Javascript that copy one listbox to another listbox , i mean how can i take one element from the first lisbox and copy him to the another listbox for any iteration of the loop ?
thanks !
mystic-d is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 08-26-2007, 09:54 AM
  #2
muneepenee
Catapulted
 
Join Date: Aug 2007
Posts: 65
iTrader: (0)
muneepenee is an unknown quantity at this point
for drop box, sorted list, unsorted list:
1. name the from & to elements with yuneek name
if inside a form, name mite look like "document.formname.elementname"
2. objekt1=document.getElementById(name1)
objekt2=document.getElementById(name2)
size1=objekt1.length;
size2=objekt2.length;
for(loop1=0; loop1<size1; loop1=loop1+1){
werkstring=objekt1.innerText[loop1];
objekt2.innerText[loop1]=werkstring;
}

Last edited by muneepenee : 08-26-2007 at 02:51 PM.
muneepenee is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart



 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 11:28 PM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.