473,387 Members | 1,476 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,387 software developers and data experts.

what makes this "slide" bar stay so solid? (never seen before)

Joe
usually slide bars move by "jumps" while scrolling which looks not
nice.
I came accress slide bar with price menu, ewnt through script/web
source code, and could not find anything that would case that wanted
effect :)

here you go:
http://www.shopping.hp.com/webapp/sh...isplay&v1=20.1
click on the left >Recommended config , a menu on the right will
show up, you see you scroll down, menu stays perfectly in the place

just wondering how it was acheieved.

any ideas??
Mar 23 '08 #1
7 1834
Joe meinte:
usually slide bars move by "jumps" while scrolling which looks not
nice.
I came accress slide bar with price menu, ewnt through script/web
source code, and could not find anything that would case that wanted
effect :)

here you go:
http://www.shopping.hp.com/webapp/sh...isplay&v1=20.1
click on the left >Recommended config , a menu on the right will
show up, you see you scroll down, menu stays perfectly in the place

just wondering how it was acheieved.
Upon scrolling position: relative is set to position: fixed for for the
div element with id "slider". Firebug helps.
any ideas??
I don't know which JS snippet is responsible for it, and since the
quality of the "code" on this site (like on so many other big corporate
sites) is perhaps even worse than jQuery, I won't bother to search for it.

Gregor

--
http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie
http://web.gregorkofler.com ::: meine JS-Spielwiese
http://www.image2d.com ::: Bildagentur für den alpinen Raum
Mar 23 '08 #2
Joe
On Mar 23, 6:05*am, Gregor Kofler <use...@gregorkofler.atwrote:
Joe meinte:
usually slide bars move by "jumps" while scrolling which looks not
nice.
I came accress slide bar with price menu, ewnt through script/web
source code, and could not find anything that would case that wanted
effect :)
here you go:
http://www.shopping.hp.com/webapp/sh..._series.do?sto...
click on the left >Recommended config , a menu on the right will
show up, you see you scroll down, menu stays perfectly in the place
just wondering how it was acheieved.

Upon scrolling position: relative is set to position: fixed for for the
div element with id "slider". Firebug helps.
any ideas??

I don't know which JS snippet is responsible for it, and since the
quality of the "code" on this site (like on so many other big corporate
sites) is perhaps even worse than jQuery, I won't bother to search for it.

Gregor

--http://photo.gregorkofler.at::: Landschafts- und Reisefotografiehttp://web.gregorkofler.com*::: meine JS-Spielwiesehttp://www.image2d.com* * * ::: Bildagentur für den alpinen Raum
I am looking through IE and it is the same thing - it doesnt jump,
just slide...
Thanks anyways
Mar 23 '08 #3
Gregor Kofler wrote:
>here you go:
http://www.shopping.hp.com/webapp/sh...isplay&v1=20.1

I don't know which JS snippet is responsible for it, and since the
quality of the "code" on this site (like on so many other big corporate
sites) is perhaps even worse than jQuery, I won't bother to search for it.
I don't understand why some people feel the need to needlessly bash
jQuery every time it gets mentioned here.

jQuery is a *great* tool to simplify things which would be tedious at
best with pure javascript. It lowers the bar of creating usable
JavaScript-applications and while you seem to think it's a bad thing I
really can't see what's the harm in that. Sure, it may be fun to create
your own functions and librarys, some might say re-inventing the wheel,
but I really can't see that work being productive in a business sense.

And if the code quality behing jQuery isn't that great, which I'm not
saying it isn't, then so what? It doesn't even really matter to me if
and *when* it takes care of the browser differences in a reliable way
and makes JavaScript actually fun.

I really do not care about the arguments I've read in this newsgroup
where some have been scrutinizing jQuerys source code line by line. I'm
sure there are some parts in every JavaScript code, even in your own,
where people could jump in and point out potential problems. Heck,
pointing out other peoples errors isn't that difficult. Nor is it
productive.

Besides jQuery is getting better and faster after each release and if
and when there are bugs they will be fixed - it's that simple.

If you are really unable to see the benefit of using jQuery - well, then
I guess each of us makes decisions based on different merits, but it
still doesn't make jQuery "crap" even if you don't like it.

All of you who don't really know what this is even about - don't just
eat up the beliefs of some of the regulars but check out jQuery to make
up your own mind - http://jquery.org.

--
Joose Niemi
Mar 23 '08 #4
Joose Niemi wrote:
...check out jQuery to make
up your own mind - http://jquery.org.
Oops - it should have been http://jquery.com

--
Joose Niemi
Mar 23 '08 #5
Joose Niemi meinte:

[jQuery praise snipped]
I really do not care about the arguments I've read in this newsgroup
where some have been scrutinizing jQuerys source code line by line.
So what's your point?
I'm
sure there are some parts in every JavaScript code, even in your own,
where people could jump in and point out potential problems.
Sure. But I'm no "JS evangelist"...
Gregor
--
http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie
http://web.gregorkofler.com ::: meine JS-Spielwiese
http://www.image2d.com ::: Bildagentur für den alpinen Raum
Mar 23 '08 #6
Gregor Kofler wrote:
Joose Niemi meinte:

[jQuery praise snipped]
>I really do not care about the arguments I've read in this newsgroup
where some have been scrutinizing jQuerys source code line by line.

So what's your point?
I guess my point was that while the code may not be perfect it still
brings an obvious productivity boost for a common developer like myself.

Those are two different things - one being the internal code quality and
the other being productivity - and I don't understand how and why the
former cancels the latter.
>I'm sure there are some parts in every JavaScript code, even in your
own, where people could jump in and point out potential problems.

Sure. But I'm no "JS evangelist"...
So I guess you're referring to John Resig who is the lead-developer
behind jQuery.

Isn't an evangelist defined as a person who enthusiastically promotes or
supports something? So such persons are not allowed to make mistakes,
and if they do it automatically invalidates all projects they have been
working on for a long time? That just doesn't seem very fair to me.

--
Joose Niemi
Mar 23 '08 #7
Joe
On Mar 23, 7:06*pm, Joose Niemi <jooseNOS...@kolumbus.fi.invalid>
wrote:
Gregor Kofler wrote:
Joose Niemi meinte:
[jQuery praise snipped]
I really do not care about the arguments I've read in this newsgroup
where some have been scrutinizing jQuerys source code line by line.
So what's your point?

I guess my point was that while the code may not be perfect it still
brings an obvious productivity boost for a common developer like myself.

Those are two different things - one being the internal code quality and
the other being productivity - and I don't understand how and why the
former cancels the latter.
I'm sure there are some parts in every JavaScript code, even in your
own, where people could jump in and point out potential problems.
Sure. But I'm no "JS evangelist"...

So I guess you're referring to John Resig who is the lead-developer
behind jQuery.

Isn't an evangelist defined as a person who enthusiastically promotes or
supports something? So such persons are not allowed to make mistakes,
and if they do it automatically invalidates all projects they have been
working on for a long time? That just doesn't seem very fair to me.

--
Joose Niemi
Jose, thanks for wiriting under different subject... (can you at least
read posts subjects??)

Mar 23 '08 #8

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

Similar topics

13
by: Simon Wigzell | last post by:
Can I trap when the scroll is ended? This is what I want - the calculator disapears when the site visitor starts scrolling the main page. I'm doing that with an "onScroll()" function. I'm bringing...
3
by: kj | last post by:
This problem is driving me nuts. The code at the end of this post below works fine with IE, but fails with Mozilla. You can see it in action at http://tinyurl.com/2jvo3 With Mozilla 1.4 and...
7
by: Willem van Rumpt | last post by:
Hi all, coming from an unmanaged programming background, I took my time to sort out the IDisposable and finalizer patterns. Just when I thought I had it all conceptually neatly arranged, the...
7
by: Rudy | last post by:
Hello All! After working in the television industry, moving to a developing career has been interesting to say the least. 3 years of developing with books, and the help of you fine folks on this...
18
by: Doug H | last post by:
Ran across this (requires Firefox): http://www.pugscode.org/osdc/vb.xul Done by the developer of a new perl6 runtime called pugs. Information about Visual Basic 9 is here, if you haven't...
3
by: Beamer | last post by:
Hi I am trying to build a roating slide effect in javascript. Basically, I have a list like below <ul id="slideShowCnt"> <li id="slide0"><img .../></li> <li id="slide0"><img .../></li> <li...
7
by: raylaur | last post by:
I'm using a javascript "slide" function to move a <div> layer in 10 pixel increments from one location on a page to another. The layer contains a GIF image. It's basically a side panel that flies out...
17
Banfa
by: Banfa | last post by:
I felt that this was a good point to start a tutorial on C/C++ programming because clearly we need to have some idea of what we are trying to achieve before we start out. I recently found this...
3
by: bhavyagupt | last post by:
i 'm not able to use the accordion menu code in for loop . can anyone solve ma problem. code....... slider.js------> java script var slider=function(){ var array=; var speed=10; var...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.