Click here to Skip to main content
15,895,192 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Web service issues Pin
parsiphal1-Feb-07 3:46
parsiphal1-Feb-07 3:46 
QuestionJavascript Copy Text Pin
tech_freak1-Feb-07 1:49
tech_freak1-Feb-07 1:49 
AnswerRe: Javascript Copy Text Pin
Vasudevan Deepak Kumar1-Feb-07 3:52
Vasudevan Deepak Kumar1-Feb-07 3:52 
AnswerRe: Javascript Copy Text Pin
David Domingues1-Feb-07 5:44
David Domingues1-Feb-07 5:44 
Questionddl with grid Pin
praveenanand31-Jan-07 20:00
praveenanand31-Jan-07 20:00 
AnswerRe: ddl with grid Pin
badgrs31-Jan-07 22:44
badgrs31-Jan-07 22:44 
QuestionAdd elements from one ListBox to another Pin
varshavmane31-Jan-07 18:09
varshavmane31-Jan-07 18:09 
AnswerRe: Add elements from one ListBox to another Pin
Sachin Pimpale31-Jan-07 19:03
Sachin Pimpale31-Jan-07 19:03 
Hi try this out it may help u






var conAdd = 'Add';
var conRemove = 'Remove';
var delimiter = "|";

function MoveOption(f, From, To, action)
{
var eFrom = eval('f.msb' + From);
var eTo = eval('f.msb' + To);
var selection = eFrom.options.selectedIndex;
var eAddContainer;
var eRemoveContainer;


if (action == conAdd)
{
eAddContainer = eval('f.htx' + conAdd + To);
eRemoveContainer = eval('f.htx' + conRemove + To);
}


if (action == conRemove)
{
eAddContainer = eval('f.htx' + conRemove + From);
eRemoveContainer = eval('f.htx' + conAdd + From);
}


if (selection == -1)
{
alert("Please select one or more users to move.");
}
else
{
eval('f.cmd' + action + '.disabled = true;');

for (i = 0; i < eFrom.options.length; i++)
{
if(eFrom.options[i].selected)
{
var name = eFrom.options[i].text;
var ID = eFrom.options[i].value;
eFrom.options[i] = null;
eTo.options[eTo.options.length] = new Option (name,ID);
i = i - 1;
var rep = new String('\\' + delimiter + ID + '\\' + delimiter + '');
var repExp = new RegExp(rep);
}
}
}
}


function onChange_msbUserPool(f)
{
f.cmdAdd.disabled = (f.msbUserPool.selectedIndex == -1);
}


function onChange_msbAssignedUser(f)
{
f.cmdRemove.disabled = (f.msbAssignedUser.selectedIndex == -1);

}

function moveup(list)
{
var daflag = false
for (var i = 0; i <= list.options.length-1; i++) {
if (!list[i].selected) {
daflag = true
}
if (list[i].selected && daflag) {
list.insertBefore(list[i],list[i-1])
}
}
}
function test()
{
newtest();
}

function movedown(list)
{
var daflag = false
for (var i = list.options.length-1; i >= 0; i--) {
if (!list[i].selected) {
daflag = true
}
if (list[i].selected && daflag) {
list.insertBefore(list[i],list[i+2])
}
}
}



























 All Element Selected Elements


1

2

3

4

5


  



  




    UP



 Down









SP
--
Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.

GeneralRe: Add elements from one ListBox to another Pin
varshavmane31-Jan-07 19:58
varshavmane31-Jan-07 19:58 
Questiondesign and control media player Pin
gigo2k631-Jan-07 11:18
gigo2k631-Jan-07 11:18 
AnswerRe: design and control media player Pin
Bradml31-Jan-07 13:23
Bradml31-Jan-07 13:23 
AnswerRe: design and control media player Pin
Vasudevan Deepak Kumar1-Feb-07 3:53
Vasudevan Deepak Kumar1-Feb-07 3:53 
Questiondropdown menu with javascript Pin
MayyMagdy31-Jan-07 2:46
MayyMagdy31-Jan-07 2:46 
AnswerRe: dropdown menu with javascript Pin
badgrs31-Jan-07 2:55
badgrs31-Jan-07 2:55 
GeneralRe: dropdown menu with javascript Pin
MayyMagdy31-Jan-07 5:16
MayyMagdy31-Jan-07 5:16 
GeneralRe: dropdown menu with javascript Pin
badgrs31-Jan-07 6:29
badgrs31-Jan-07 6:29 
QuestionNeed help in making email client Pin
EEmaan30-Jan-07 20:10
EEmaan30-Jan-07 20:10 
AnswerRe: Need help in making email client Pin
Bradml30-Jan-07 20:44
Bradml30-Jan-07 20:44 
Questioni am in trouble because of very big ASP form Pin
ajitscorpio30-Jan-07 10:38
ajitscorpio30-Jan-07 10:38 
AnswerRe: i am in trouble because of very big ASP form Pin
Christian Graus30-Jan-07 10:55
protectorChristian Graus30-Jan-07 10:55 
GeneralRe: i am in trouble because of very big ASP form Pin
Vasudevan Deepak Kumar1-Feb-07 3:55
Vasudevan Deepak Kumar1-Feb-07 3:55 
AnswerRe: i am in trouble because of very big ASP form Pin
Guffa30-Jan-07 14:47
Guffa30-Jan-07 14:47 
QuestionBinary SOAP and DIME - sending email with attachment Pin
sharmankit30-Jan-07 8:22
sharmankit30-Jan-07 8:22 
AnswerRe: Binary SOAP and DIME - sending email with attachment Pin
Vasudevan Deepak Kumar1-Feb-07 3:56
Vasudevan Deepak Kumar1-Feb-07 3:56 
GeneralRe: Binary SOAP and DIME - sending email with attachment Pin
sharmankit1-Feb-07 7:57
sharmankit1-Feb-07 7:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.