Click here to Skip to main content
15,887,214 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: guidance regarding a project Pin
Afzaal Ahmad Zeeshan1-Aug-15 0:48
professionalAfzaal Ahmad Zeeshan1-Aug-15 0:48 
GeneralRe: guidance regarding a project Pin
Member 118784441-Aug-15 3:56
Member 118784441-Aug-15 3:56 
AnswerRe: guidance regarding a project Pin
Aladár Horváth3-Aug-15 3:33
professionalAladár Horváth3-Aug-15 3:33 
AnswerRe: guidance regarding a project Pin
Erick Shawn3-Aug-15 22:07
professionalErick Shawn3-Aug-15 22:07 
QuestionEvent to detect when browser(IE) is maximized... Pin
NJdotnetdev30-Jul-15 7:33
NJdotnetdev30-Jul-15 7:33 
AnswerRe: Event to detect when browser(IE) is maximized... Pin
Kornfeld Eliyahu Peter30-Jul-15 8:48
professionalKornfeld Eliyahu Peter30-Jul-15 8:48 
GeneralRe: Event to detect when browser(IE) is maximized... Pin
NJdotnetdev30-Jul-15 9:48
NJdotnetdev30-Jul-15 9:48 
AnswerRe: Event to detect when browser(IE) is maximized... Pin
Afzaal Ahmad Zeeshan1-Aug-15 0:54
professionalAfzaal Ahmad Zeeshan1-Aug-15 0:54 
No, there isn't. Usually, to check whether an application is maximized it to check the windows properties, but IE won't share any of these abstract properties to a web application. In that case, you are only left with an option of window.onresize event.

After handling the event, you can manage a guess for the IE's size (in pixels) and change the dimensions of the table depending on the size of viewport. Remember, it is the viewport that you are able to check against. If you (somehow) try to work around with document's dimensions, you may or may not get values biggers than the window or screen itself.

That is why, I would still recommend that instead of using JavaScript, you try using CSS3's media queries.

CSS
// default style

@media screen and (max-width: 300px) {
  // CSS styles when screen is only 300px
}

@media screen and (max-width: 500px) {
  // CSS styles when screen is 500px
}

@media screen and (min-width: 700) {
  // CSS styles when screen is minimum 500px and no matter how large
}


Avoid using JavaScript, as JavaScript costs CPU clocks, thus making it a non-friendly for device's battery, or maybe cause a lagging in your users device. Users may be using mobile.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~

GeneralRe: Event to detect when browser(IE) is maximized... Pin
NJdotnetdev3-Aug-15 3:07
NJdotnetdev3-Aug-15 3:07 
QuestionMy Data is not showing on my html page Pin
Salman _Memon28-Jul-15 21:17
Salman _Memon28-Jul-15 21:17 
AnswerRe: My Data is not showing on my html page Pin
DPaul199417-Aug-15 19:46
DPaul199417-Aug-15 19:46 
QuestionConvert Horizontal <table> to vertical using CSS Pin
Jassim Rahma26-Jul-15 20:39
Jassim Rahma26-Jul-15 20:39 
AnswerRe: Convert Horizontal <table> to vertical using CSS Pin
Salman _Memon28-Jul-15 21:36
Salman _Memon28-Jul-15 21:36 
AnswerRe: Convert Horizontal <table> to vertical using CSS Pin
Erick Shawn3-Aug-15 22:22
professionalErick Shawn3-Aug-15 22:22 
QuestionWindows VM to process Microsoft Office files Pin
jgrogan26-Jul-15 4:54
jgrogan26-Jul-15 4:54 
AnswerRe: Windows VM to process Microsoft Office files Pin
Erick Shawn3-Aug-15 22:32
professionalErick Shawn3-Aug-15 22:32 
QuestionConvert Device Info to Media Query Pin
Jassim Rahma26-Jul-15 4:34
Jassim Rahma26-Jul-15 4:34 
QuestionAdjust Table into CSS based on Device Width Pin
Jassim Rahma25-Jul-15 21:51
Jassim Rahma25-Jul-15 21:51 
AnswerRe: Adjust Table into CSS based on Device Width Pin
Jassim Rahma26-Jul-15 1:42
Jassim Rahma26-Jul-15 1:42 
AnswerRe: Adjust Table into CSS based on Device Width Pin
Erick Shawn31-Jul-15 2:14
professionalErick Shawn31-Jul-15 2:14 
QuestioniPhone media query not working Pin
Jassim Rahma25-Jul-15 10:54
Jassim Rahma25-Jul-15 10:54 
AnswerRe: iPhone media query not working Pin
Peter_in_278025-Jul-15 22:09
professionalPeter_in_278025-Jul-15 22:09 
AnswerRe: iPhone media query not working Pin
Ferd Really31-Jul-15 7:27
Ferd Really31-Jul-15 7:27 
QuestionCSS or Separate Mobile Site? Pin
Jassim Rahma24-Jul-15 5:19
Jassim Rahma24-Jul-15 5:19 
AnswerRe: CSS or Separate Mobile Site? Pin
F-ES Sitecore26-Jul-15 1:18
professionalF-ES Sitecore26-Jul-15 1:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.