Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/07/2014, 02:41
Xmarq
 
Fecha de Ingreso: junio-2014
Mensajes: 9
Antigüedad: 9 años, 10 meses
Puntos: 0
Creacion dinamica de objeto JSON

Hola a todos!

Mi problema es que quiero crear un objeto JSON de forma dinamica y no se como hacerlo.

Tengo la siguiente tabla

Código HTML:
 <table id="tab">
            <tr id="titulo">
                <th>User</th>
                <th>08:00-10:00</th>
                <th>10:00-12:00</th>
                <th>13:00-15:00</th>
                <th>15:00-17:00</th>
                <th>17:00-19:00</th>
               
                
            </tr>
            <tr id="horario">
                <th><p id="message"></p></th>
                <th><input type="checkbox" id="check1" name="check1" /> </th>
                <th><input type="checkbox" id="check2" name="cehck2" /> </th>
                <th><input type="checkbox" id="check3" name="check3" /> </th>
                <th><input type="checkbox" id="check4" name="check4" /> </th>
                <th><input type="checkbox" id="check5" name="check5" /> </th>
               
               

            </tr>
        </table> 
Como veis es una tabla en la que un usuario puede clicar en diferentes horarios para crear una reunion. Lo que quiero hacer es crear un objeto JSON con esas informaciones ( es decir usuario "x" ha creado una reunion en los horarios "y" y "z". Se mas o menos como se crea un objeto JSON pero no se hacerlo de forma dinamica.

ALguna propuesta??

Gracias