I've got to code a webapplication for a university project. It's something like a calender using JSP, Javascript, Java, JQuery and SQL. So I've come pretty far, but i've got a Problem with my Query Strings. I am trying to give the Id of the clicked Cell on to another Page, which is supposed to look in the Database for an Entry with that id. I am Passing this Id through a QueryString, but can't get it out. I've tried everything. Every little Piece of Code, which was supposed to get the Parameters out. That's my latest try:
var i = location.search.split('i=')[1];
to test if the parameter has been cut out, i've tried this, which isn't working...
var x = document.getElementById("vname");
x.setAttribute("value",i);
vname ist the id of an input field of the form on that site. Thanks for the help :) EDIT: My ID isn't just Integer it's something like this "fr21" for friday 21:00.
I've literally tried everything u recommended, but it's not working. If i use firebug on firefox it says: "ReferenceError: functionxyz is not defined" although it is... Don't know what to do.