Whew, Finally Some Javascript

Posted Mon Mar 25, 2002 in

CliffA friend asked to see some more images from Caprock Canyons, so here’s another view of the cliff I shot so many frames of. I really want to get back up there and spend a day just wandering around and making photographs. I think I could come up with some decent images. There’s just tons of possibilities.

I still am learning a little Jabascript. I’ve managed to get images to load in an enlarged form by clicking on a smaller image. Linkmeister, if you want the code you’re welcome to it. It’s my code so you can have it. Others, please ask before taking. It’s not a big deal, but it’s polite to ask. (Don’t I know!)

I spent way too much time on this, probably because I did not pick up a reference book and study the language. I still need to learn how to separate out the scripts from the html templates to make things tidy. (I do like my code to be tidy and there’s a ton of repetition with the cookie code to make the software remember you!) But, I never give up and went to bed last night thinking about what might be wrong with my code. It turns out that IE does not like anything to be present in the window.name field of the window.open method. At least, I could not find a variation that IE would accept. That’s not a big deal, but I searched everywhere looking for an answer to why IE was barfing and I just couldn’t find one. Google is no longer my favorite search engine; I no longer have a favorite search engine. :-p

So we’re fixed, I now have clickable images, and I’m experimenting with the email-new-post notification software hack. I wonder if it will work? We’ll find out.

  1. Thank you, sir! I stole my version from Jon's code, but I then wrote him a note to say thanks (he says, self=righteously...grins). You and he are doing it the same way. I found my original version from Elizabeth Castro's book "HTML for the WWW" (4th ed.), and it has a slightly outdated piece of code, I think. It told me to use an "icon" phrase in the midst of the smaller pic ID (xxx.icon.gif)...which doesn't work. Fun to play with, huh? Linkmeister    26 March 2002, 05:30    #

  2. No problem. I think there's a better book for coding of this type. I'm going to drop by Barnes and Noble this afternoon and browse their Javascript section. The syntax isn't all that different from C++, but there library calls are web oriented. ruminator    26 March 2002, 06:11    #

  3. This picture is absolutely gorgeous!! It looks so professional. I noticed you have a copyright..how do you go about getting that anyway.. I am just curious... toxiclabrat    26 March 2002, 10:50    #

  4. I'm not an intellectual property lawyer, but here's my (basic) understanding. Whenever someone makes a photograph, they have created the image. That means they own the intellectual property that is the image ---> copyright. So, I simply mark my images, well, actually, I've just started marking my web images, with a copyright notice. I could (and may) actually register my copyright. All that takes is sending a copy of the image along with the required form and fee to the national register of copyrights in DC. This may be arrogant, but I think that some of my images are good enough that they might actually have some value. I'd prefer that they not be stolen and used without permission. So, not only do I mark my site with a copyright notice, but I also put a copyright notice in the title entry of each image, and now that I've started posting larger (hence more useable) images, I've started marking the jpeg's with a copyright notice. I don't really believe this will stop a thief from stealing an image, but I've read one case where an image thief was fined about $150K for the theft. There's an interesting site, Editorial Photo and PhotoNews Network (OK, two sites) that have information on this and a wide variety of other topics of interest to professional photographers. You know, this could be an entire post in and of itself! :) ruminator    26 March 2002, 23:21    #

  5. Well, today I've been going through my blog and updating my javascript. I have a (relatively) new script that I think does a (bit) better at displaying the images. I'm getting there, but I'm a slow learner. ruminator    13 July 2003, 04:23    #