473,385 Members | 1,907 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Browser width

Hi,
Is there any mean that I could use to get browser width? so I can adjust a
table or a panel width to browser width.
Thank you.
Gun
Apr 20 '07 #1
3 1301
Try using the window.innerHeight and window.innerWidth properties. See the
following page for more details:

http://www.devguru.com/Technologies/...ef/window.html

Hopefully this will help you solve your problem. However, keep in mind that
you may need to adjust the values when the window is resized, so it sounds
like it would be better in your case to use the value of 100% instead, this
will automatically resize the width when the window is resized and is
simpler to code. Good Luck!
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"Gunawan" <jg**********@gmail.comwrote in message
news:ud**************@TK2MSFTNGP03.phx.gbl...
Hi,
Is there any mean that I could use to get browser width? so I can adjust a
table or a panel width to browser width.
Thank you.
Gun

Apr 20 '07 #2
Hi,
Thank you for your reply.
I have used 100% before but I've got problem with gridview.
I want if the current window width smaller than gridview width I would like
to display scrollbar.
I put gridview on a panel.
I am very sorry if my english is not too good. Thank you.
Regards,
Gun

"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:el**************@TK2MSFTNGP04.phx.gbl...
Try using the window.innerHeight and window.innerWidth properties. See the
following page for more details:

http://www.devguru.com/Technologies/...ef/window.html

Hopefully this will help you solve your problem. However, keep in mind
that you may need to adjust the values when the window is resized, so it
sounds like it would be better in your case to use the value of 100%
instead, this will automatically resize the width when the window is
resized and is simpler to code. Good Luck!
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"Gunawan" <jg**********@gmail.comwrote in message
news:ud**************@TK2MSFTNGP03.phx.gbl...
>Hi,
Is there any mean that I could use to get browser width? so I can adjust
a table or a panel width to browser width.
Thank you.
Gun


Apr 20 '07 #3
I have never done a lot of work with gridview, but have you tried the CSS
overflow property? This is the only suggestion I can come up with based on
what I know, maybe someone who has more experience with gridview will have
some other ideas.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"Gunawan" <jg**********@gmail.comwrote in message
news:ud**************@TK2MSFTNGP05.phx.gbl...
Hi,
Thank you for your reply.
I have used 100% before but I've got problem with gridview.
I want if the current window width smaller than gridview width I would
like to display scrollbar.
I put gridview on a panel.
I am very sorry if my english is not too good. Thank you.
Regards,
Gun

"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:el**************@TK2MSFTNGP04.phx.gbl...
>Try using the window.innerHeight and window.innerWidth properties. See
the following page for more details:

http://www.devguru.com/Technologies/...ef/window.html

Hopefully this will help you solve your problem. However, keep in mind
that you may need to adjust the values when the window is resized, so it
sounds like it would be better in your case to use the value of 100%
instead, this will automatically resize the width when the window is
resized and is simpler to code. Good Luck!
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"Gunawan" <jg**********@gmail.comwrote in message
news:ud**************@TK2MSFTNGP03.phx.gbl...
>>Hi,
Is there any mean that I could use to get browser width? so I can adjust
a table or a panel width to browser width.
Thank you.
Gun



Apr 20 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: bayram guzer | last post by:
hi everybody, i have very strange error. i can not see some of the asp pages on my browser. when i look from view source, all the source is there but browser does not show anything, just an empty...
9
by: Bryan R. Meyer | last post by:
Hello Everyone, The problem of browser resizing has become an issue for me. While redesigning my webpage, I set the left and right margins to be auto so that my content would be centered. ...
8
by: lawrence | last post by:
Under the domain publicpen.com I've several dozen sites in subdiretories, such as www.publicpen.com/honenbeger. I've no trouble with any of these sites. But under one, which I put in yesterday,...
12
by: Kepler | last post by:
How do you get the height of the client browser in IE? Both document.body.clientHeight and document.body.offsetHeight return the height of the document. If the page is long and there's a vertical...
10
by: santiago538 | last post by:
Hi, Is there any way to specify which monitor a Window.open() will launch a new browser window in on systems with more than one display. It would only need to work with Mozilla browsers, and not...
5
by: Luis Fajardo | last post by:
I'm expiriencing a basic HTML appearance problem with ASP.NET. Following a couple of sample tags to ilustrate my problem: <asp:TextBox id="txtWidthIssue" runat="server"...
9
by: WRH | last post by:
Hello I am new to asp but I made some Jscript functions which work fine. The functions contain some strings used as a registration key for some apps. It is important that these strings not be...
13
by: anil.rita | last post by:
When the user chooses an AV file to play, based upon the type of file, I want to use the default installed media player to play it. I am wondering if this is a good way - any alternatives,...
1
by: Starance | last post by:
Well... I'm not sure if this can be fixed, I've tried many ways. But here goes; When you resize your browser window it seems to move my video & photo divs. I want them kept in line with the...
1
oranoos3000
by: oranoos3000 | last post by:
hi would you please help me i have a online shopping center that i show pictures of the my product in home page. in the InterExplorer pictures is shown correctly but in Firefox browser is shown...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.