Forum Moderators: not2easy
this is my first post here:
<script type="text/javascript"><!--
document.write(\'<link rel="stylesheet" type="text/css" href="http://www.blabla.net/dynamic_resolution_stylesheet.php?width=\' + screen.width + \'&height=\' + screen.height + \'&pixelDepth=\' + screen.pixelDepth + \'&colorDepth=\' + screen.colorDepth + \'&availWidth=\' + screen.availWidth + \'&availHeight=\' +screen.availHeight +\'>\');
--></script>
this way you can, if javascript is enabled, generate a dynamic stylesheet with font-size for a specific resolution.
hope you know what i mean ;-)
Be sure to read Marcia`s WebmasterWorld Welcome and Guide to the Basics [webmasterworld.com] post.
This is basically the same technique used by a lot of logging systems. Build a query string using javascript and then request some resource on some server.
Could you explain why you are escaping the single quotes. AFAIK they should not be escaped since you need them as the string delimiter. You would need to escape a single quote if you wanted to have it as a ordinary character in a string delimited by single quotes.
var test = 'Aaron\'s Party'; Andreas
If you are not sure, i.e. the code has not been tested, please say so explicitly.
Using here doc syntax in PHP would have saved you from having to escape quotes at all.
Andreas