I just did a quick search of CPAN and did not find anything that could be found relating to finding the users resolution.
I know that you can do this with C/C++ and some libraries, so you might want to investigate that further.
Question though, why would you want to do this on the server side? It just adds more strain on the server. Just use JavaScript to do so would be my suggestion.
Hope this helps.
-Vic vic cherubini
vikter@epicsoftware.com
Of course it can be done
a little javascript, that is triggerd on the form "submit"
don't actually use a submit button, use a normal button:
<button onclick="doScreen_Submit()">Submit</button>
<input name="screenW" type=hidden>
<input name="screenH" type=hidden>
<script>
function doScreen_submit()
{
form.screenW.value = document.screenWidth
form.screenH.value = document.screenHieght
form.submit()
}
</script>
i'm pretty sure thats all you need, but you might want to check MSDN online for the proper syntax for the res vars
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.