Tuesday, August 11, 2015

Kuffner Family Website 2

Today I thought it was a good day to make some progress on the website. Where to begin though.... I wanted all the images to dynamically load onto the page when users upload them as I'll have lots of family members uploading photos so that meant busting out the ajax to load the photos to the html document. The photos are relatively high resolution so when I originally scaled them down it still took quite a long time to load them. After speaking with my colleague he recommended using thumbnails. So looking up how to make a thumbnail php script I finally got one working to convert all pictures in one folder on the webserver to a new folder filled with smaller thumbnails. Other than that and some on hover effects with the mouse to scale the image so you have some reactive feedback on navigating the website that's what I got accomplished today. I relearned ajax (one of the coolest parts of web development to me) and got a pseudo functional website. There's still much to handle when there are hundreds of pictures, I can't just have them populating down the page. One idea was to have multiple pages of about 20 photos or so and use ajax to populate those pages by pulling from the image bank, for another time though.

Oh, and spent some time working on the cube project today as well. Going to be posting that soon.