Jump to content

Lost focus


McenterFreak

Recommended Posts

In RS webinterface/TV Guide i click a program. I can now choose Reruns, X, Play, Record and IMDb

I choose the red button (record). But now i am returned to the TV Guide, and the New Timer window is placed in the background, so i now need to change focus to this window before i can schedule this recording

Link to comment

open the globals.js in the svcweb folder with notepad and change it to

function record(URL, show) {
if (URL!="")
{
 	if (show!=""){
      var topP = (screen.availHeight - 565) / 2;
      var leftP = (screen.availWidth - 740) / 2;
      awindow = window.open(URL, '_new2', 'width=740, height=565,top=' + topP + ',left=' + leftP +', scrollbars=yes, resizable=yes');
      awindow.focus();
      self.close();
      }
 	else
 	{
	Now = new Date();
	callurl(URL + "&" + Now.getTime());
 	}
}
}

This should do the trick :)

Link to comment

open the globals.js in the svcweb folder with notepad and change it to

function record(URL, show) {
if (URL!="")
{
 	if (show!=""){
      var topP = (screen.availHeight - 565) / 2;
      var leftP = (screen.availWidth - 740) / 2;
      awindow = window.open(URL, '_new2', 'width=740, height=565,top=' + topP + ',left=' + leftP +', scrollbars=yes, resizable=yes');
      awindow.focus();
      self.close();
      }
 	else
 	{
	Now = new Date();
	callurl(URL + "&" + Now.getTime());
 	}
}
}

This should do the trick :)

Hello Lars

Sorry to say, it didn't help

I have attached the changed global.js file (renamed it to global.txt)

Link to comment

Exactly the same here with IE8 on Windows 7.

 

Made the same modifications for the global.js as suggested earlier, restarted RS and still when I click 'Record', the record window briefly appears on screen, then is moved out of focus and replaced by the main IE Recording Service window

Link to comment

Open epg_details.html search for

parent.$.colorbox.close();

and delete it. Then it works. If somebody with more html/javascript knowledge knows anything better, please tell. :)

Link to comment

Open epg_details.html search for

parent.$.colorbox.close();

and delete it. Then it works. If somebody with more html/javascript knowledge knows anything better, please tell. :)

I have found the file here: C:\Program Files\DVBViewer\web\epg_details.html, but there are no entries named parent in the file. I opened it with notepad

Link to comment

It's in this block (inline javascript):

<!-- START BLOCK : withrights -->
 <a href="javascript:record('{recurl}','{doclose}');parent.$.colorbox.close();" title="{lngrecord}"><img src="gfx/btn_record.gif" alt="{lngrecord}"></a>
<!-- END BLOCK : withrights -->

Link to comment

It's in this block (inline javascript):

<!-- START BLOCK : withrights -->
 <a href="javascript:record('{recurl}','{doclose}');parent.$.colorbox.close();" title="{lngrecord}"><img src="gfx/btn_record.gif" alt="{lngrecord}"></a>
<!-- END BLOCK : withrights -->

Maybe i look the wrong place, but in this file, i can't find it: C:\Program Files\DVBViewer\web\epg_details.html

I have used Notepad ability to search, but it didn't find it

I have attached my epg_details.html

Link to comment

I do not want to fool around more with this. Could you please release a new version of Recording Service. I have tried to make changes to those files, but running into Access denied etc. So please change and release. I do not want to fool around with ownership, privelleges etc. to get this to work

Best Regards

McenterFreak

Link to comment
×
×
  • Create New...