Need a fix for a small javascript / css issue.

Ολοκληρωμένο Αναρτήθηκε Πριν 6 χρόνια Πληρώθηκε κατά την παράδοση
Ολοκληρωμένο Πληρώθηκε κατά την παράδοση

I have cobbled together some Javascript and HTMl that will enable me to select a table row. It will also add some rows at the top periodically via a timer. This is just a placeholder for an ajax call that will go in later.

I want the table to be scrollable, so there is a table inside of a scrollable div. This works great, but might make the issue a little mroe complicated.

The issue I am having is that when new rows are populated at the top, I do not want the table to move to these new rows, I want the 'viewport' of the table to stay the same. If the selected row is not near the top, when new rows get populated this automatically happens. However, if the selected row is near the top, when new rows get added they move the selected row off the screen. I would like these to be added to the top, but not move/change the viewable area.

jsFiddle showing the issue is here. Easy money if you know how to fix it.

[login to view URL]

CSS HTML HTML5 JavaScript jQuery / Prototype

Ταυτότητα Εργασίας: #16323141

Σχετικά με την εργασία

21 προτάσεις Απομακρυσμένη εργασία Ενεργό Πριν 6 χρόνια

Ανατέθηκε στον:

vuyiswankosi

Hey. So basically your issue is that anytime the table is updated the scroll pane moves back to the top of the table, yes? And what you want instead is that if the top of the table is visible when an update happens, th Περισσότερα

$25 USD σε 1 μέρα
(46 Αξιολογήσεις)
7.1

21 freelancers κάνουν προσφορές κατά μέσο όρο $28 για αυτή τη δουλειά

vamir

Respected Sir/Madam I review your job post regarding ViewPort Table issue. i assure you that i will solve your issue according to Your requirements and try to Deliver the Task ASAP. Please Give me an opportunity to Περισσότερα

$34 USD σε 1 μέρα
(549 Αξιολογήσεις)
8.0
liangjongai

I've checked your fiddle and become interested in your project. I can work for you. I've an experience of works like yours. Ping me any time to discuss about this project.

$25 USD σε 1 μέρα
(96 Αξιολογήσεις)
6.8
webdeveloper0325

Thank you for visiting my cover letter. When I read your project, it really appeals my mind. I have rich knowledge about HTML, CSS, JAVA script, PHP, various Framework, I always regard client’s opinions very important Περισσότερα

$20 USD σε 1 μέρα
(32 Αξιολογήσεις)
5.2
safakerol

Hey i habe read the issue i guess i can help out. The js fiddle is from you correct? Hey i habe read the issue i guess i can help out. The js fiddle is from you correct?

$30 USD σε 0 μέρες
(75 Αξιολογήσεις)
5.3
dodiyavikramsinh

Hello Dear, i am read your requirements. i can do this job as per your requirements and your time. Warm Regards, vikram.

$30 USD σε 1 μέρα
(116 Αξιολογήσεις)
5.4
TerfasElmehdi

Hello I have 4+ years of experience working as a web developer, especially PHP and Javascript/css. I can produce quality code in no time and correct all bugs related to PHP/Javascript. Please check my previous proje Περισσότερα

$25 USD σε 0 μέρες
(23 Αξιολογήσεις)
4.7
eliaa

Hello, I'm a web developer, i have 7 years experience in web development. i have used a lot of technology to implement my clients solutions. List of Services that i can help you - Build Responsive websites (Bootst Περισσότερα

$35 USD σε 1 μέρα
(5 Αξιολογήσεις)
2.5
romankusmirchuk

Hello. I did it through the scroll. the selected item is not hidden.

$15 USD σε 0 μέρες
(1 Κριτική)
1.6
Rahulg3029

Hi Hope you are doing well. I am having experience of 2 plus years as a full stack developer. i am well versed with JavaScript and jQuery. i can help you to achieve this task.. Message me so that we can discuss thi Περισσότερα

$30 USD σε 1 μέρα
(1 Κριτική)
1.4
usamaco825

Sir, I have much expertise and skills you are looking as I have developed and designed countless websites and shopping portals for many clients from all over the world. If chance is given to me I assure you that I will Περισσότερα

$25 USD σε 0 μέρες
(0 Αξιολογήσεις)
0.0
kchwistek

A proposal has not yet been provided

$25 USD σε 1 μέρα
(1 Κριτική)
3.4
bordieris

I know how to fix it.

$25 USD σε 3 μέρες
(0 Αξιολογήσεις)
0.0
Doc2102

i can do it

$25 USD σε 1 μέρα
(0 Αξιολογήσεις)
0.0