|
Posted by PTM on July 26, 2006, 6:50 pm
Please log in for more thread options
> PTM wrote:
>>> RC wrote:
>>>> I know how to do this in JavaScript by
>>>>
>>>> window.open("newFile.html",
>>>> "newTarget",
>>>> "scrollbars=no,resizable=0,width=200,height=200");
>>>>
>>>> The browser will open a new window size 200x200, not allow resize and
>>>> no auto horizontal, vertical scrolling bars.
>>>>
>>>> I am wonder can I do the similar inside a HTML file like
>>>>
>>>> <html><head>
>>>> <meta pageSize=200x200, resize=no, scrollbars=no />
>>>> </head>
>>>> <body>
>>>> ...
>>>> </body></html>
>>>>
>>>> Can I do that?
>>>>
>>>> Or do in CSS
>>>> html { height: 200; width: 200;
>>>> overflow-y: hidden; overflow-x: hidden; }
>>>>
>>>> But how can you in CSS out side of the html tag?
>>>> Because the <style> tag is between the html open/close tags.
>>> It's the user's business, not yours, how big he wants or needs his
>>> window to be. One of the most obnoxious things I've come across on the
>>> web is a page that suddenly makes my browser open full-screen, as though
>>> the site owner has any business whatsoever controlling the layout of my
>>> computer screen. This is right up there with playing unwanted music.
>>
>> That's not always true. Often users get frustrated or annoyed by windows
>> that are far too big or small for the content. Sometimes it's preferable
>> (user wise) for the window size to be dictated by the developer.
>
> The preferable solution is for the developer to stop annoying the users by
> designing pages that only work with the browser set to a particular size.
>
>> Specifically in the case of corporate web apps for example, not all
>> html/css questions relate to internet sites.
>
> The ones that don't are off-topic in comp.infosystems.www.*.
>
>> Back to the initial question.
>> Html is used primarily for the content of a page to be displayed after
>> the holding window is open. CSS is for layout again once the window is
>> open.
>> Essentially what you are trying to do is auto resize a window once it's
>> been opened and while it's loading the page code.
>> Html and css don't have the tags required for resizing, while meta tags
>> are fairly loose and not all work cross browser.
>> JavaScript or php/asp is definitely the best way to go.
>
> PHP and ASP have nothing to do with it. The only way to resize the window
> is with client-side code, and the ability to send such code to the client
> is independent of the presence or absence of any particular server-side
> programming technology .
And here was me thinking that in a newsgroup you asked a question in order
to find out some information, not to get an agitated response as to why you
shouldn't do what you want to.
I must apologise and remember to be more unhelpful in future, lol.
|