|
Javascript examples (some PHP and MySQL too)
If you're looking for some simple examples in Javascript (alert window, checking the value in a field, one select box that depends on another, checking window width and browser type), etc, I've just posted some short pieces of code that I wrote yesterday to our client side technology area. So often I find that good examples of Javascript are deeply tied up within beautifully-displaying HTML that's difficult to read if you're looking at it to ask "how do they do that"?
The example that generates a pulldown menu based on what you've selected in another pulldown menu (exactly the sort of thing you'll want to do with - for example - make and model or country and town selections) also includes a PHP form with the Javascript to show how they work together, and use of data held in an SQL database too. Run the example at our demo area
"But I thought you didn't run Javascript courses, Graham". Correct - I don't have the notes and I don't have the in-depth knowledge to feel confident in running a whole course over several days on the subject. BUT ... it's an important adjunct in HTML, in contract work, in our own web site, and also as it relates to web sites that are server side using PHP, Perl, Python or Tcl. So I can and will cover elements of Javascript as needed within other courses.
Updated, 6th September 2009. Here are direct links to the examples that I am talking about ...
| dynamic.html | Dynamic Image (Using Javascript) | | eight.php | Disabling a form input until another element has been completed | | fifth.html | Providing different links depending on which browser | | first.html | Simple Javascript variables, and an alert box | | fourth.html | reporting platform information via Javascript | | isflash.html | Sensing whether Flash is available on a browser | | jskl.html | Javascript event handling on a form (textarea) | | nine.php | Javascript, PHP and MySQL used together - training example | | second.html | Conditional in Javascript - wording based on browser | | seven.php | Changing one Select menu based on another selection | | six.php | Validating user entries at the browser | | smonth.php | Disabling a form input until another element has been completed | | terry2.html | Roll over an image to change another image | | third.html | Checking plugin availability | (written 2005-08-13, updated 2009-09-06)
Associated topics are indexed under W602 - Web and Intranet - Client Side Technologies [3128] How does your browser find out about itself? - (2011-01-11) [2628] An example of an injection attack using Javascript - (2010-02-08) [2390] Dynamic / changing images on your web page - (2009-09-01) [1814] Javascript/HTML example, dynamic server monitor - (2008-09-28) [1813] Ajax - going Asyncronous and what it means - (2008-09-28) [1812] Starting Ajax - easy example of browser calling up server data - (2008-09-27) [1749] Using server side and client side programming together - (2008-08-11) [1681] Adding a button to a web page to print the page - (2008-06-18) [1322] Flash - is it available to your web page? - (2007-08-26) [522] Javascript events - a good example - (2005-12-09)
Some other Articles
Campaign Drift and efficiency.Form MadnessSave the trainBristol Balloon FestivalJavascript examples (some PHP and MySQL too)Reading a news or blog feed (RSS) in your PHP pageFunctions and commands with dangerous namesCan an older person learn a programming languageTheft of training materialAssignment, equality and identity in PHP
|
3603 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73 at 50 posts per page
This is a page archived from The Horse's Mouth at
http://www.wellho.net/horse/ -
the diary and writings of Graham Ellis.
Every attempt was made to provide current information at the time the
page was written, but things do move forward in our business - new software
releases, price changes, new techniques. Please check back via
our main site for current courses,
prices, versions, etc - any mention of a price in "The Horse's Mouth"
cannot be taken as an offer to supply at that price.
Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).
|
|