I have a link on my page, which has an onClick event. The link looks like this:
& lt; A class = 'person' href = 'http: // {urlPath}? Id = "+ x [i] .getAttribute ('id') +" '+ "onClick =' personClick () & lt; / A & gt;
You can see that I do some insects on the user id as URL parameter from some XML which I previously returned.
On clicking the link on the page I'm using Colorbox to open a new one, onClick looks like this:
click the function person () {$ ("Person"). Colorbox ({iframe: true, width: "80%", height: "80%"}); }
My problem is: When the link is clicked, then I need to call another JSP call that asks the database using the URL parameter "id" and that XML returns back I'm not sure how to do it. I, trying to present HTML in JSP that the database query has been created, is not working very well. I thought about calling JSP that asks a question inside the javascript function, then to parse and render data using javascript dome parser, but I'm not sure how to do it.
I am not sure if I have clarified my problem or not, if not, then tell me and I will explain it further.
Comments
Post a Comment