Reply
Old 03-11-2006, 01:21 AM from A to B
Heba's Avatar
Average Talker

Posts: 28
Trades: 0
Hi I need help in this

please bare with me alittle

ok say this is my window



in A are all the item we have in the system which are entered from a different form. and say i want to chose and item from A and move it to B how can i do it?
Heba is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 03-11-2006, 03:55 AM Re: from A to B
chrishirst's Avatar
Super Moderator

Posts: 26,544
Location: Blackpool. UK
Trades: 0
with javascript
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | Crowded Nightclub? | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-11-2006, 04:04 AM Re: from A to B
Heba's Avatar
Average Talker

Posts: 28
Trades: 0
am sorry!
Heba is offline
Reply With Quote
View Public Profile
 
Old 03-11-2006, 04:16 AM Re: from A to B
chrishirst's Avatar
Super Moderator

Posts: 26,544
Location: Blackpool. UK
Trades: 0
no need, just pointing you to where to look to get an answer.

this thread will get moved later
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | Crowded Nightclub? | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-11-2006, 06:50 AM Re: from A to B
Heba's Avatar
Average Talker

Posts: 28
Trades: 0
Quote:
<script language="JavaScript" type="text/javascript">
<!--
var NS4 = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) < 5);
function addOption(theSel, theText, theValue)
{
var newOpt = new Option(theText, theValue);
var selLength = theSel.length;
theSel.options[selLength] = newOpt;
}
function deleteOption(theSel, theIndex)
{
var selLength = theSel.length;
if(selLength>0)
{
theSel.options[theIndex] = null;
}
}
function moveOptions(theSelFrom, theSelTo)
{

var selLength = theSelFrom.length;
var selectedText = new Array();
var selectedValues = new Array();
var selectedCount = 0;

var i;

// Find the selected Options in reverse order
// and delete them from the 'from' Select.
for(i=selLength-1; i>=0; i--)
{
if(theSelFrom.options[i].selected)
{
selectedText[selectedCount] = theSelFrom.options[i].text;
selectedValues[selectedCount] = theSelFrom.options[i].value;
deleteOption(theSelFrom, i);
selectedCount++;
}
}

// Add the selected text/values in reverse order.
// This will add the Options to the 'to' Select
// in the same order as they were in the 'from' Select.
for(i=selectedCount-1; i>=0; i--)
{
addOption(theSelTo, selectedText[i], selectedValues[i]);
}

if(NS4) history.go(0);
}
//-->
</script>
I found this code but i need explanation plz
Heba is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to from A to B
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.09620 seconds with 13 queries