Ninjakreborn Posted May 14, 2006 Share Posted May 14, 2006 I just want to get some information, I am learning javascript. I want to know of ways I can utilize javascript.Even on my homepage freelancebusinessman once I get it finished I was hoping to employ a bit of javascript, just to practice with it, but I don't want to use it on something pointless, or something that will hinder accessibility. I want to be able to utilize it though as a tool to get things done, what things can I do with it on a standard page. I just want some general ideas, where I can easily utilize it on any page, without hindering/but helping the user experience, I tried some other stuff, adn it seemed to be frowned upon so I was just getting some ideas. I am going to create something on each page, to show the current time, date, excetera, on each page, but I may do this in php if possible, but I like the way javascript set's up the time functions it's easier to utilize the time because you read it off the person's browser, instead of fighting to figure out the unix timestamp, but I am hoping to get a few ideas other than this as well. Quote Link to comment Share on other sites More sharing options...
AndyB Posted May 14, 2006 Share Posted May 14, 2006 [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]I want to know of ways I can utilize javascript.[/quote] Use it when it's useful/required, not just because you can.Random observations ...Since you can't guarantee that your visitors will have javascript enabled, don't do anything essential with javascript.You can use javascript to tell a visitor the date/time where they are ... but 100% of site visitors actually know (or couldn't care less about) the date and time or know it displays in the bottom right-hand corner of their screen already. The date and time functions in php all return the date/time on the server (which might well be in a different time zone from the visitor!!) so there's no point in using php to display date/time.Useful javascript could be in client-side checking of form inputs so that only 'validated' form data are passed to your form-handling script (except that you should always check form data server-side anyway) so as to avoid the worst user mistakes in filling in the forms.Other useful js includes providing a 'previous page' link or a 'print page' link. I suppose image rollovers are 'useful' (but using CSS rollovers is better). I think that good usage of 'print page' should include a custom print.css declaration so that the printed page prints the content not the chrome (navigation, headers, etc.). Quote Link to comment Share on other sites More sharing options...
Ninjakreborn Posted May 15, 2006 Author Share Posted May 15, 2006 After I create my homepage completely, I will probably rebuild the first page again three or four times, because I have almost mastered javascripts since I Started on it, on monday I am taking the information wildteen gave me, and playing around with my site, and seeing if it works, destruct it, then I am going to start over on it, until I have the homepage at 100% liquid, also I want to make it compatible on ATLEAST internet explorer 6, firefox, netscape, opera, and that screen shot program of safari(I have a major client on a mac, that is waiting to see my site), and with it being liquid it will already be good in all the different broswers sizes, and screen resolutions, then I can figure out something to fix the problem for when people enlarge text, basically when my homepage is done, that is all, I just copy and paste that, fill in the content and that's it, except when I create my 6 different forms in teh advanced form pages, I will create a print link then, and create the print.css, thanks for the advice, it will probably be taken, thanks again. Quote Link to comment Share on other sites More sharing options...
Nameless12 Posted May 22, 2007 Share Posted May 22, 2007 [quote]because I have almost mastered javascripts since I Started on it, on monday[/quote]Most people tend to underestimate javascript, there is quite a lot more to it then people realize. [quote]I just want to get some information, I am learning javascript. I want to know of ways I can utilize javascript.[/quote]Here some of my recent bookmarks, they are using canvas to draw the 2d\3d, I bet you didnt think javascript could do much of the stuff in the following list. Dont be so quick to say you have mastered something, there is almost always much much more depth than you first anticipate (regardless of what language you are using).http://www.croczilla.com/svg/samples/svgtetris/svgtetris.svghttp://canvex.lazyilluminati.com/83/play.xhtmlhttp://henrikfalck.com/unrealsoccer/http://andrewwooldridge.com/canvas/canvasgame001/canvasgame002.htmlhttp://www.abrahamjoffe.com.au/ben/canvascape/http://www.abrahamjoffe.com.au/ben/canvascape/textures.htmhttp://arapehlivanian.com/wp-content/uploads/2007/02/canvas.htmlhttp://developer.mozilla.org/en/docs/A_Basic_RayCasterhttp://www.blobsallad.se/ Quote Link to comment Share on other sites More sharing options...
AndyB Posted May 22, 2007 Share Posted May 22, 2007 I nominate Nameless12 for the thread-digging award. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.