Waponi
asked on
JSP / Javascript popup to another jsp page
Hello,
From a basic javascript popup, is it possible to display another JSP page without going to the server.
<td>
<a href="javascript:popup('mo nitor.htm? count=${st atus.count }', 'monitor','${jobRunner.job .jobId}',' ${jobRunne r.job.jobI d}')">${jo bRunner.jo b.jobName} </a>
Right now the popup function does a request, but I really want it to goto another jsp and have that page do the request (buttons/forms, etc)
function popup(mylink, windowname,auxEmailid,uniq ueFormId)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string'){
//alert(usePassword);
href=mylink+'&origId='+uni queFormId;
}else{
href=mylink.href;
}
popUpWin = window.open(href, "_blank", 'resizable=1,width=500 height=550,scrollbars=yes' );
return false;
}
</td>
From a basic javascript popup, is it possible to display another JSP page without going to the server.
<td>
<a href="javascript:popup('mo
Right now the popup function does a request, but I really want it to goto another jsp and have that page do the request (buttons/forms, etc)
function popup(mylink, windowname,auxEmailid,uniq
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string'){
//alert(usePassword);
href=mylink+'&origId='+uni
}else{
href=mylink.href;
}
popUpWin = window.open(href, "_blank", 'resizable=1,width=500 height=550,scrollbars=yes'
return false;
}
</td>
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you cannot display a JSP without going to the server
the browser cannot interpret a JSP, just HTML
the browser cannot interpret a JSP, just HTML
ASKER
Thanks,
The jsp in the url does do work..., (not sure why),
but I could see cases where it would not be the best practice.
The jsp in the url does do work..., (not sure why),
but I could see cases where it would not be the best practice.
in ur jsut mention the fileName. jsp page then it will go to that jsp ...(dont mention .do or .htm then iwill go to the server )