I encounter a problem about how to open a page in a new window by js. In the
following js, the function play() will be called when user click a window,

And then try to open VidioPlayer page in a new window, the id will be
captured in VideoPlayer.java (  onActivate(int id)    ). 

Now my question is,

How can I identify the page VideoPlayer?   "/VideoPlayer " means root
context, "VideoPlayer " means current folder VideoPlayer page. Both of them
are not what I expected.

 

function OpenWindow(openurl)

{

 

         var paramet =
'toolbar=no,width=520,height=440,location=no,status=no,scrollbars=no,menubar
=no,resizable=no';

 

         newWindow = window.open(openurl, "jdzcnnet", paramet);

 

         newWindow.focus();

 

}

 

function play(id)

{

         OpenWindow('/VideoPlayer/' + id);

 

}

Reply via email to