This topic is locked
[SOLVED]

 popup window.focus

11/19/2013 3:36:42 PM
PHPRunner General questions
F
fantasmino author

Hi all

I have custom button popup windows for add edit view for childs tables in master table view and edit.

in server

$result["record"] = $button->getCurrentRecord();



in client after

window.open('mytable.php?editid1='+ result.record["id"],'popUpWindow','height=630,width=530,left=20,top=20,resizable=no,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no,status=no')



and works well eccept simetime that popup remain under other windows

Where can i put window.focus()?

in client after doesn't work

Thanks

F
fantasmino author 11/23/2013

I forgot the var now is ok

In client after:

var mywin =window.open('mytable.php?editid1='+ result.record["id"],'popUpWindow','height=630,width=530,left=20,top=20,resizable=no,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no,status=no');

mywin.focus();



now is ok in all browsers