Jump to content


Photo

genere javascript


  • Please log in to reply
4 replies to this topic

#1 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 14 May 2006 - 03:26 PM

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.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 14 May 2006 - 03:48 PM

[!--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.).
Legend has it that reading the manual never killed anyone.
My site

#3 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 15 May 2006 - 02:03 AM

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.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#4 Nameless12

Nameless12
  • Members
  • PipPipPip
  • Advanced Member
  • 244 posts

Posted 22 May 2007 - 07:56 PM

because I have almost mastered javascripts since I Started on it, on monday


Most people tend to underestimate javascript, there is quite a lot more to it then people realize.

I just want to get some information, I am learning javascript.  I want to know of ways I can utilize javascript.


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...s/svgtetris.svg
http://canvex.lazyil...m/83/play.xhtml
http://henrikfalck.com/unrealsoccer/
http://andrewwooldri...vasgame002.html
http://www.abrahamjo...ben/canvascape/
http://www.abrahamjo...pe/textures.htm
http://arapehlivania.../02/canvas.html
http://developer.moz...Basic_RayCaster
http://www.blobsallad.se/



#5 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 22 May 2007 - 11:01 PM

I nominate Nameless12 for the thread-digging award.
Legend has it that reading the manual never killed anyone.
My site




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users