Link to home
Start Free TrialLog in
Avatar of Waponi
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('monitor.htm?count=${status.count}', 'monitor','${jobRunner.job.jobId}','${jobRunner.job.jobId}')">${jobRunner.job.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,uniqueFormId)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string'){
            //alert(usePassword);
            href=mylink+'&origId='+uniqueFormId;
}else{
   href=mylink.href;
}
popUpWin = window.open(href, "_blank", 'resizable=1,width=500 height=550,scrollbars=yes');
return false;

}
</td>
SOLUTION
Avatar of enachemc
enachemc
Flag of Afghanistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sathish David  Kumar N
yaa u can ....

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 )
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
you cannot display a JSP without going to the server
the browser cannot interpret a JSP, just HTML
Avatar of Waponi
Waponi

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.