Network_ninja Posted July 6, 2011 Share Posted July 6, 2011 Need help... is there a way to fully control the width and height of your window browser? I mean something like this. index.php <script type="text/javascript"> window.open('login.php','Record','width=600,height=500,toolbar=no, location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no'); window.close(); </script> when you open the index.php it will open another window that has fixed withd and height and i will not allow the user to resize the window. tnx in advance Quote Link to comment https://forums.phpfreaks.com/topic/241188-php-window-control/ Share on other sites More sharing options...
Adam Posted July 6, 2011 Share Posted July 6, 2011 Haven't you answered your own question there? Quote Link to comment https://forums.phpfreaks.com/topic/241188-php-window-control/#findComment-1238904 Share on other sites More sharing options...
Network_ninja Posted July 6, 2011 Author Share Posted July 6, 2011 nope... that is my code but it does't working well. in IE it works fine but you still need to confirm before the parent window close, in some other browser FF,chrome the user can adjust the width and height of the new window and the parent window will not close... Quote Link to comment https://forums.phpfreaks.com/topic/241188-php-window-control/#findComment-1238905 Share on other sites More sharing options...
xyph Posted July 6, 2011 Share Posted July 6, 2011 Seems like really annoying JavaScript. I'm glad it doesn't work. Quote Link to comment https://forums.phpfreaks.com/topic/241188-php-window-control/#findComment-1238909 Share on other sites More sharing options...
Network_ninja Posted July 6, 2011 Author Share Posted July 6, 2011 sorry dude... im a total beginner in programming world... It's just that i wanted to have a window browser that have a specific width and height that i specified above and the user cannot resize or maximize the window. Do you have such a good code for doing it so? I will gladly appreciate any help... Quote Link to comment https://forums.phpfreaks.com/topic/241188-php-window-control/#findComment-1238911 Share on other sites More sharing options...
Adam Posted July 6, 2011 Share Posted July 6, 2011 I haven't actually used JS window pop-ups in a while - these days it's all about "modal" pop-ups - so can only speculate that it's the browser preventing you from doing that. Quote Link to comment https://forums.phpfreaks.com/topic/241188-php-window-control/#findComment-1238917 Share on other sites More sharing options...
Network_ninja Posted July 6, 2011 Author Share Posted July 6, 2011 so there is no way to do it using javascript? "modal" are you referring with jquery? Quote Link to comment https://forums.phpfreaks.com/topic/241188-php-window-control/#findComment-1238922 Share on other sites More sharing options...
xyph Posted July 6, 2011 Share Posted July 6, 2011 Why not just force an element, say a div, to be a fixed size with overflow Quote Link to comment https://forums.phpfreaks.com/topic/241188-php-window-control/#findComment-1238946 Share on other sites More sharing options...
Network_ninja Posted July 7, 2011 Author Share Posted July 7, 2011 If i cannot make the javascript work out i don't have any other option maybe but to use element. But it's just that i don't need the full screen or maximize windows because i only display minimal data. Here is the Sample Output: TIME RECORD: DATE TIME IN TIME OUT LEAVE LATE ABSENT UNDERTIME 6/20/2011 0830 1730 0.00 0.00 6/19/2011 0820 1800 0.00 0.00 etc... Quote Link to comment https://forums.phpfreaks.com/topic/241188-php-window-control/#findComment-1239349 Share on other sites More sharing options...
Adam Posted July 7, 2011 Share Posted July 7, 2011 What if someone is visually impaired and needs to increase the font-size? Quote Link to comment https://forums.phpfreaks.com/topic/241188-php-window-control/#findComment-1239552 Share on other sites More sharing options...
Network_ninja Posted July 8, 2011 Author Share Posted July 8, 2011 You have a point.. but i am already setting the font size to 16px.. i think it's quite enough for the majority of the population of my company to be able to read the letters... Quote Link to comment https://forums.phpfreaks.com/topic/241188-php-window-control/#findComment-1239892 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.