🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: chile.comp.programacion
2 messages
2 total messages Started by RobertoCL Mon, 19 Nov 2007 03:14
Javascript - Listbox - PHP
#697
Author: RobertoCL
Date: Mon, 19 Nov 2007 03:14
17 lines
1397 bytes
Tengo 2 listbox A y B m�ltiples. A por medio de un bot�n y javascript llena 
a B seg�n se seleccione.
ejem http://javascript.internet.com/forms/items-popup-list.html

PHP para recoger un listbox m�ltiples necesita el [] en el nombre del campo 
select.

Entonces la llamada de B es
destList = window.document.forms[0].B;
Cuando debiera ser
destList = window.document.forms[0].B[];<---
pero no funciona.


Tendr� soluci�n, sin tener que estar cargando pagina por cada click.
--
RCL
Re: Javascript - Listbox - PHP
#698
Author: RobertoCL
Date: Mon, 19 Nov 2007 03:29
23 lines
1628 bytes
"RobertoCL" <rcl2020NOSPAM@hotmail.com> escribi� en el mensaje 
news:fhqv2d$m49$1@news.nivel5.cl...
> Tengo 2 listbox A y B m�ltiples. A por medio de un bot�n y javascript 
> llena a B seg�n se seleccione.
> ejem http://javascript.internet.com/forms/items-popup-list.html
>
> PHP para recoger un listbox m�ltiples necesita el [] en el nombre del 
> campo select.
>
> Entonces la llamada de B es
> destList = window.document.forms[0].B;
> Cuando debiera ser
> destList = window.document.forms[0].B[];<---
> pero no funciona.
>
>
hum me respondo
var destList = document.getElementById("destList");

<select size="6" name="destList[]" multiple  id="destList">
--
RCL 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads