lance_sibley: (Part Geek All Man)
[personal profile] lance_sibley
Tonight, in Internet Scripting Languages, there was no lecture to speak of. The instructor handed out a lab exercise and we spent the entire three hours working on it. Oy.

Apparently, though, I tried to get too fancy... we were supposed to be writing a number-guessing game, where a random number from 0 to 100 is generated. The player has five guesses, and after each one, the Javascript is supposed to return a line of text saying whether the guess was too high, too low or correct and write it to the HTML page. I got bored and started trying to make the input a form rather than a Windows prompt, but apparently the HTML button's onClick method can't access the Javascript variable that contains the randomly-generated number. (What good is that?) There has to be a way...

I've gotten my first assignment done for the class, which is due Wednesday night, though. As described in my last post, it's supposed to be an airline website, with pages for user registration and login, a search page for flights, a page for specific flight information, FAQs, and a panel of advertising. It's here, if anyone wants to have a look. But be warned, it's not pretty. A designer I am not. ;) And since we don't yet know how to link to a database, obviously the data for the search and flight info pages had to be hard-coded just to prove that the functionality to display the information would work. I leave it as an exercise for the reader to find out just what the information is for that one flight. ;) Oh, and it should work in both Internet Exploder Explorer and Firefox. I don't know about any other browsers.

Date: 2006-11-07 07:42 pm (UTC)
From: [identity profile] kanecool.livejournal.com
It seems to work ok on Netscape as well, in case you were wondering. :)

Date: 2006-11-07 08:59 pm (UTC)
From: [identity profile] boywhocantsayno.livejournal.com
Thanks - that's good to know! I don't have Netscape, so I wouldn't have been able to check it there myself. (Eventually I'm sure I'll download it just so that I can test my webpages in as many different browsers as possible - I only have IE, FF and Opera, though I didn't think to check it in Opera. Fortunately [livejournal.com profile] gurudata did. :) )

Date: 2006-11-08 08:11 pm (UTC)
From: [identity profile] evil-admiral.livejournal.com
Makes sense it would work fine in Netscape if it works fine in Firefox, since Mozilla is essentially using souped up Netscape code for the main guts of the browser.

Date: 2006-11-08 08:39 pm (UTC)
From: [identity profile] boywhocantsayno.livejournal.com
Oh, I didn't realize that. Interesting... I wonder how Netscape feels about that. (It's not open source, is it?)

Profile

lance_sibley: (Default)
lance_sibley

June 2009

S M T W T F S
 123456
78910111213
14 151617181920
21222324252627
282930    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 18th, 2025 02:40 pm
Powered by Dreamwidth Studios