开发者

About opening new popup window

I have a ExtJS and jquery generated table with data fetched from database and I use this function to open new window

    function popUpPlayer(url) 
   {

         newWindow = window.op开发者_开发问答en(url, "Flash Player", "height=255, width=735, status = no, toolbar = no, menubar = no, resizable = no", "_blank");
         if (window.focus) 
        {
            newWindow.focus()
        }
        return false;
   }

which works fine. But the problem is that when I click on each row of the table I want brand new window to open and load new flash player that I have.

Instead it opens just one new window and when I click on other rows of the table it just reloads the content in the same window.

Any idea how to solve this, maybe with jquery or whatever?

The rows arent "a" tags, they are "tr" tags.


Not tested but worth a try:

newWindow = window.open(url, "_blank", "height=255, width=735, status=no, toolbar=no, menubar=no, resizable=no");


For me, using unique window name every time did the trick

function popUpPlayer(url) 
   {
         var rnd = Math.floor((Math.random()*200)+1);
         newWindow = window.open(url, rnd, "height=255, width=735, status = no, toolbar = no, menubar = no, resizable = no", "_blank");
         if (window.focus) 
        {
            newWindow.focus()
        }
        return false;
   }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜