diff --git a/WebContent/html/css/stylesheet.css b/WebContent/html/css/stylesheet.css index f063542..bbe9f43 100644 --- a/WebContent/html/css/stylesheet.css +++ b/WebContent/html/css/stylesheet.css @@ -59,7 +59,7 @@ div.modal-content{ padding: 10px; border: 1px solid #888; width: 80%; - max-height: 80%; + max-height: 100%; text-align: center; vertical-align: center; align-items: center; diff --git a/WebContent/html/javascript/request.jsp b/WebContent/html/javascript/request.jsp index 68ffb65..5414824 100644 --- a/WebContent/html/javascript/request.jsp +++ b/WebContent/html/javascript/request.jsp @@ -21,35 +21,6 @@ var devices = makeDeviceArray(); //get all the option buttons var hardwareOptions = document.getElementsByClassName('hw-data-type'); var softwareOptions = document.getElementsByClassName('sw-data-type'); -function ajaxFunction(){ - var request; - try { - request = new XMLHttpRequest(); - } - catch(e){ - try { - request = new ActiveXObject("Msxml2.XMLHTTP"); - } - catch(e){ - try { - request = new ActiveXObject(Microsoft.XMLHTTP); - } catch(e) { - alert("Something is wrong with your browser"); - return false; - } - - } - } - - - request.onreadystatechange = function(){ - if(request.readyState == 4){ - var display = document.getElementById('ajaxDiv'); - display.innerHTML = request.responseText; - } - } - -} //add event listeners to the options in the left sidebar for(var a = 0; a < hardwareOptions.length; a++){ hardwareOptions[a].addEventListener('click', refresh); diff --git a/WebContent/html/webpages/navbar.html b/WebContent/html/webpages/navbar.html index 578a279..3f7f865 100644 --- a/WebContent/html/webpages/navbar.html +++ b/WebContent/html/webpages/navbar.html @@ -1,3 +1,5 @@ +<%@ page import = "database.*,entities.User" %> +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
Thanks for returning some devices!
- + <% //get string from request form String devices = request.getParameter("devicesToReturn"); DeviceQueries.returnDevices(devices); %> -