Click here to Skip to main content
15,884,943 members
Home / Discussions / Web Development
   

Web Development

 
QuestionUsing Developer Tools Pin
Phanindra26127-Dec-12 1:59
Phanindra26127-Dec-12 1:59 
AnswerRe: Using Developer Tools Pin
Zamshed Farhan12-Jan-13 5:46
Zamshed Farhan12-Jan-13 5:46 
AnswerRe: Using Developer Tools Pin
Zamshed Farhan12-Jan-13 5:48
Zamshed Farhan12-Jan-13 5:48 
QuestionSSRS Report Conversion to PDF Pin
Vinay Meka22-Dec-12 0:58
Vinay Meka22-Dec-12 0:58 
AnswerRe: SSRS Report Conversion to PDF Pin
Sandeep Mewara5-Jan-13 20:34
mveSandeep Mewara5-Jan-13 20:34 
QuestionCould not load file or assembly Pin
L Viljoen20-Dec-12 1:57
professionalL Viljoen20-Dec-12 1:57 
AnswerRe: Could not load file or assembly Pin
ArpitDubey28-Dec-12 8:50
ArpitDubey28-Dec-12 8:50 
QuestionHow should I measure scroll position in different browsers Pin
woomla17-Dec-12 21:52
woomla17-Dec-12 21:52 
I cannot exactly figure out how the scroll position is measured.

I have a container with a specific height (400) and some elements (30) in it with specific heights (18). The container displays about 7.2 items in it. The maximum scroll position in firefox is 142. In chrome 141.

If the container can display an exact number of items then the calculation is simple: number-of-items * item-height - container-height.

But how is it calculated if the container displays 7.2 items?

And worse, if the container has padding top and bottom?

See this example[^]


[edit]
The reason why I want this is because I want some kind of ScrollBar. I have it kind of working, but there are differences in browsers.

In firefox, this example works: http://jsfiddle.net/woomla/ma88D/7/[^]

In chrome this example workds: http://jsfiddle.net/woomla/ma88D/8/[^]

The difference is that in the chrome version I need to add padding-top and padding-bottom to the max scroller distance. In firefox I need to add only padding-top.

modified 18-Dec-12 7:05am.

AnswerRe: How should I measure scroll position in different browsers Pin
Zaf Khan19-Dec-12 5:46
Zaf Khan19-Dec-12 5:46 
QuestionBest Web Technologies Pin
emadns12-Dec-12 3:40
emadns12-Dec-12 3:40 
AnswerRe: Best Web Technologies Pin
David Mujica12-Dec-12 4:22
David Mujica12-Dec-12 4:22 
AnswerRe: Best Web Technologies Pin
achantayamini17-Dec-12 22:05
achantayamini17-Dec-12 22:05 
AnswerRe: Best Web Technologies Pin
jfmorgan33331-Dec-12 10:01
jfmorgan33331-Dec-12 10:01 
QuestionJSP and JSTL and so on ... Pin
SheraX11-Dec-12 6:20
SheraX11-Dec-12 6:20 
AnswerRe: JSP and JSTL and so on ... Pin
fjdiewornncalwe11-Dec-12 6:28
professionalfjdiewornncalwe11-Dec-12 6:28 
GeneralRe: JSP and JSTL and so on ... Pin
SheraX11-Dec-12 6:32
SheraX11-Dec-12 6:32 
GeneralRe: JSP and JSTL and so on ... Pin
AnalogNerd11-Dec-12 7:03
AnalogNerd11-Dec-12 7:03 
GeneralRe: JSP and JSTL and so on ... Pin
SheraX11-Dec-12 7:12
SheraX11-Dec-12 7:12 
QuestionSMTP Programming Pin
Dominick Marciano9-Dec-12 13:49
professionalDominick Marciano9-Dec-12 13:49 
AnswerRe: SMTP Programming Pin
vbmike10-Dec-12 8:49
vbmike10-Dec-12 8:49 
GeneralRe: SMTP Programming Pin
Dominick Marciano10-Dec-12 13:30
professionalDominick Marciano10-Dec-12 13:30 
GeneralRe: SMTP Programming Pin
Richard MacCutchan10-Dec-12 21:36
mveRichard MacCutchan10-Dec-12 21:36 
GeneralRe: SMTP Programming Pin
Dominick Marciano11-Dec-12 9:40
professionalDominick Marciano11-Dec-12 9:40 
GeneralRe: SMTP Programming Pin
Richard MacCutchan11-Dec-12 10:26
mveRichard MacCutchan11-Dec-12 10:26 
GeneralRe: SMTP Programming Pin
Dominick Marciano11-Dec-12 10:44
professionalDominick Marciano11-Dec-12 10:44 

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.