JavaScript

Moderators: None (Apply to moderate this forum)
Number of threads: 2061
Number of posts: 5164

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Two List Windows Posted by mpangrekar on 18 Oct 2001 at 1:47 PM
Hello,

I am trying to do this:

At this site, http://www.eng.usf.edu/~mpangrek/interface5.html
I have one list window which has 3 commands and I would like to acheive this: when user clicks/double clicks on any one command in the right window that command should appear in the Left window.

How can I make this appear in the left window from the right window using Javascript?

Thank You !!!
Mayur


Report
Re: Two List Windows Posted by Modalman on 20 Oct 2001 at 5:36 AM
: Hello,
:
: I am trying to do this:
:
: At this site, http://www.eng.usf.edu/~mpangrek/interface5.html
: I have one list window which has 3 commands and I would like to acheive this: when user clicks/double clicks on any one command in the right window that command should appear in the Left window.

Hi. I'll start you off. Its quite involved especially if you want it to work in Netscape as well as IE.

Within the Select tag insert the following:

<select name=D1 onChange='return optionchg(this.selectedIndex);'>

This will call a function called optionchg(optionNo). In that function you can delete the value from the one list box and then create another in the other listbox. You may have to create a couple of vars to hold the no of options in each box. Also onClick might be better to use instead of onChange but I have never tried this. OnDblClick may be even better. Hope this gets you started anyway.





Report
Re: Two List Windows Posted by mpangrekar on 20 Oct 2001 at 9:00 AM
Thank You !!
That helped !!
Mayur

: : Hello,
: :
: : I am trying to do this:
: :
: : At this site, http://www.eng.usf.edu/~mpangrek/interface5.html
: : I have one list window which has 3 commands and I would like to acheive this: when user clicks/double clicks on any one command in the right window that command should appear in the Left window.
:
: Hi. I'll start you off. Its quite involved especially if you want it to work in Netscape as well as IE.
:
: Within the Select tag insert the following:
:
: <select name=D1 onChange='return optionchg(this.selectedIndex);'>
:
: This will call a function called optionchg(optionNo). In that function you can delete the value from the one list box and then create another in the other listbox. You may have to create a couple of vars to hold the no of options in each box. Also onClick might be better to use instead of onChange but I have never tried this. OnDblClick may be even better. Hope this gets you started anyway.
:
:
:
:
:





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.