Jump to content

Recommended Posts

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.
Link to comment
https://forums.phpfreaks.com/topic/9656-genere-javascript/
Share on other sites

[!--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.).
Link to comment
https://forums.phpfreaks.com/topic/9656-genere-javascript/#findComment-35721
Share on other sites

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.
Link to comment
https://forums.phpfreaks.com/topic/9656-genere-javascript/#findComment-35840
Share on other sites

  • 1 year later...
[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.svg
http://canvex.lazyilluminati.com/83/play.xhtml
http://henrikfalck.com/unrealsoccer/
http://andrewwooldridge.com/canvas/canvasgame001/canvasgame002.html
http://www.abrahamjoffe.com.au/ben/canvascape/
http://www.abrahamjoffe.com.au/ben/canvascape/textures.htm
http://arapehlivanian.com/wp-content/uploads/2007/02/canvas.html
http://developer.mozilla.org/en/docs/A_Basic_RayCaster
http://www.blobsallad.se/

Link to comment
https://forums.phpfreaks.com/topic/9656-genere-javascript/#findComment-259303
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.