Javascript Rework

Completed Posted Jan 31, 2007 Paid on delivery
Completed Paid on delivery

The link below is one implementation of retaining the scrollbar position from a previous page. This way, if you're in a web application and you say... resort the table and it refreshes the page, it won't push you to the top. In our case we must use something like this, because Anchors push the content to the top, which is almost as bad as pushing to the top of the page upon refresh.

<[login to view URL]>

This is of great use in our web applications. However, in our specific case, we have a prompt inside each link's onclick, which is conflicting with the "scrollbar" javascript. The "scrollbar" javascript overwrites the content inside the onclick, thus it will not execute. We would like the script to be rewritten to either append to the onclick or by utilizing a different method entirely.

AJAX is not an option at this point, because most of the site is already coded.

The scrollTop variable is being sent as _s, but before this, we would also like the script to send _x, and _y as the browser dimensions, this way we can resize the div that the "scrollbar" javascript is behaving on to match the window size upon refresh.

You can use PHP, javascript, cookies, but it most work AT least in internet explorer and preferably in mozilla too. You can throw this entire script away if you want, but it has to remember the scrollbar position upon refresh.

Here's the onclick code that is sometimes used in the links.

onclick="

var agree=confirm('Delete 1.8 Other Assets?');

if (agree) return true ;

else return false ;"

## Deliverables

So here's the overview

- The script must remember scrollbar position upon page refresh

- The script must also send window resolutions (but it doesn't have to use them, I can write that part)

- The script must work in a DIV just like the example

- The script must work with any existing onclick inside the link

- The script must be commented so it can be tweaked if necessary in the future.

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

all version of internet explorer 6.0+ in all operating systems.

we have PHP 4+ running on the server.

Engineering JavaScript MySQL Odd Jobs PHP Software Architecture Software Testing

Project ID: #2820903

About the project

1 proposal Remote project Active Jan 31, 2007

Awarded to:

jthoma

See private message.

$85 USD in 2 days
(189 Reviews)
6.5