good example of basicish javascript for coursework

Joined
12 Feb 2006
Posts
17,628
Location
Surrey
for coursework afaik we will need to develop any thing for a website made from javascript.

As i can't really think of any ideas hoping you guys can suggest something i could develop that wouild require me to learn a lot of javascript (not that i haven't already) and then show that i know it.

it donesn't have to be too basic but one that maybe i could first understand a get going and then advance on as i advance in skills

thanks
 
Last edited:
you could do an AJAX query with DOM manipulation

have a text input box that you put a postcode in, then when you tab out of it, it uses ajax/php/asp/whatever to query a database for an address, then return the address to a textarea. if the postcode isn't found, put a cross next to the text input.

return info from your php file as xml, traverse it with the dom for what you need, and be aware that IE doesn't support responseXML very well, so you'll need to use activex objects to retrieve the xml - that should show a pretty decent understanding
 
I think thats a bit too advanced. Sorry for being noobish but I don't see how any of that is to do with javascript either?

I was thinking of having a webpage designed in javascript, like background colour etc ( i know css better but just to show js) and have some form or something like that using javascript as much as possible and then have it do something again using javscript that will procude something nice and made from javascript.

Any ideas for something like this? I can do php reasonbly easily and mySQL for any extra stuff that needs it but prefer to stay away form using anything other then js for now.
 
go to www.hotscripts.com and browse (read:rip off) some of their ideas.

Either write annoying popups saying you are our millionth customer and have won a prize or use if for something useful like data validation on a customer survey form.
 
I think thats a bit too advanced. Sorry for being noobish but I don't see how any of that is to do with javascript either?

I was thinking of having a webpage designed in javascript, like background colour etc ( i know css better but just to show js) and have some form or something like that using javascript as much as possible and then have it do something again using javscript that will procude something nice and made from javascript.

Any ideas for something like this? I can do php reasonbly easily and mySQL for any extra stuff that needs it but prefer to stay away form using anything other then js for now.

my original post was all to do with javascript - making the point that you can make a user interface much more logical and responsive using Javascript. It's also using it in a relevant way, and showing an understanding of when it's appropriate to use it.

No one in their right mind creates an entire website out of javascript - because you'd end up writing 2 versions of the site so that it degrades well; there's just no sense in doing it.

go to www.hotscripts.com and browse (read:rip off) some of their ideas.

Either write annoying popups saying you are our millionth customer and have won a prize

nooooooooooooo don't do horrible things like that. Those are horrible, obtrusive ways of using Javascript - and there's excellent uses for javascript.
 
Why not just have some image rollovers and expanding menu's, that kind of thing?

Maybe have a gallery where the images open in specific size windows without scrollbars etc using Javascript...

Is that more along the lines of what you were thinking? :confused:
 
Hi,

Here's one I did for an application, one of my first Javascript bits in fact.

The app retrieves data organized into a possibly large number of pages of a set length. The pages are logically numbered and the user can only see one page at a time. In order to choose pages a number-strip is provided under the data, looking something like:

< 1 2 3 4 5 >

The user can either click on a page number to show that page of data or hover over the < > symbols (which are buttons on the finished thing) to scroll the numbers.

It's nothing particularly fancy or pretty, although it does look a bit nicer than I've shown above. Seems to work well in practice though.

Jim
 
I wrote a small script a few months ago to allow users to change between three different CSS style sheets on the fly, each style sheet gave the site a totally different colour scheme and set of images etc.
 
Back
Top Bottom