Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/EjercitarWeb/WebContent/Tarea.jsp
blob: 74f1b2db4db8abfb2bb85abdec85d56cf6d9539e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%@ include file="templateCSS.jsp" %>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Tareas</title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
<%@page import="java.util.List" import="model.Tema" %> 
<%@page import="java.util.List" import="model.Concepto" %> 

<div id="content">
<form style="width: 1071px; height: 521px;" method="post" name="ejercicio_form">
		<br>
		Descripcion:
		<br>
		<textarea  name="descripcion" id="descripcion"></textarea>
		<br>
		Tema: <select id="temas" name="temas" onchange="cargarConceptos()">
				<% List<Tema> temas = (List<Tema>)request.getAttribute("lista_temas"); %>
				<% for(Tema tema : temas) {%>
					<option value="<%= tema.getIdTema() %>"><%= tema.getNombre() %></option>
				<% } %>
			</select>
		<br>	
		Concepto: <select id="conceptos" multiple="multiple" name="concepto" >
					
				</select>
	
		<input type="submit" name="Aceptar" value="Aceptar">
		
	</form>
	</div>
	
	<script type="text/javascript">

            function cargarConceptos(){
                //obtiene los objetos productCode, y obtiene el valor del objeto
                var tem_id=$("#temas").val(); //ya se tiene el objeto select
                //llama al servlet con el parametro seleccionado
                $("#conceptos").load("CargarConceptosServlet", {tema_id:tem_id})
            }
        </script>
        

</body>
</html>