View Single Post
Old 12-31-2012, 06:32 PM   #2896
cdcox cdcox is offline
www.nfl-forecast.com
 
cdcox's Avatar
 

Join Date: Sep 2000
Casino cash: $5230
So remember how slow the draft board was last year? You'd hit an arrow to move a player up a notch and then have to wait like a minute to do another move? That's what I was fixing. Now you can drag and drop the sortable list and zoom things on and off your draft board.

I built a prototype that I finished up around thanksgiving and thought it would be easy to implement. Well, doing it in the fully operational site proved more complicated. When I finally got something to test it was taking 2 minutes to render the page in the browser. Just not right. I finally cracked that nut by modifying the source code for one of the widgets I was using.

Then, once I had it all working in the browser, the AJAX requests were taking like 25 seconds to process in the server. So if you refreshed the page before they were finished, some of the moves would get lost. Not to mention it would crush our server with a lot of people moving things around at the same time. No good. Frustration level mounting.

So last night I finally figured out how to do it the right way. Today I had to rewrite the whole scheme so I was only passing a few players back to the server instead of the whole list of 1500. Got stuck on one stupid bug, but once that was squished it all came together beautifully.

I'll implement the lock check box tomorrow (I have a working prototype) and then check to make sure I didn't foobar any of the other functionality with the new AJAX code. If that works I have a few more issues to clean up and we should be ready to go with the drafts.

How many free agent draft rounds do folks think we should have?
Posts: 31,340
cdcox has parlayed a career as a truck driver into debt free trailer and jon boat ownership.cdcox has parlayed a career as a truck driver into debt free trailer and jon boat ownership.cdcox has parlayed a career as a truck driver into debt free trailer and jon boat ownership.cdcox has parlayed a career as a truck driver into debt free trailer and jon boat ownership.cdcox has parlayed a career as a truck driver into debt free trailer and jon boat ownership.cdcox has parlayed a career as a truck driver into debt free trailer and jon boat ownership.cdcox has parlayed a career as a truck driver into debt free trailer and jon boat ownership.cdcox has parlayed a career as a truck driver into debt free trailer and jon boat ownership.cdcox has parlayed a career as a truck driver into debt free trailer and jon boat ownership.cdcox has parlayed a career as a truck driver into debt free trailer and jon boat ownership.cdcox has parlayed a career as a truck driver into debt free trailer and jon boat ownership.
  Reply With Quote