WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
Internet Security Software
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : JavaScript Version Selector - RedirectOnVersion
Categories : Java Script
Boaz Yahav
Date : Aug 29th 1998
Grade : 3 of 5 (graded 1 times)
Viewed : 2791
File : No file for this code example.
Images : No Images for this code example.
Search : More code by Boaz Yahav
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

RedirectOnVersion

If the version is two low, go to some other page. Eg: <SCRIPT> <!-- RequiresVersion2("lowurl.html"); --> </SCRIPT>

In general:

RequiresVersion2(url);
RequiresVersion3(url);
RequiresVersion4(url);

where

url is the url to goto if the requirement is not met.

Include version.txt in the HEAD section of your document.
Call the functions as shown in the above example.

version.txt
===========
<SCRIPT language="JavaScript">
<!-- Browser Version
// Cameron Gregory - cameron@bloke.com
// http://www.bloke.com
// http://www.bloke.com/javascript/Version/
// This header must remain if you use this script or modify this script
//CHANGELOG
// Sun Mar 8 16:43:18 EST 1998
// Created.

function RequiresVersion(needsver,url)
{
ver = navigator.appVersion.substring(0,1);
if (ver < needsver)
window.location=url;
}

function RequiresVersion2(url)
{
RequiresVersion(2,url)
}

function RequiresVersion3(url)
{
RequiresVersion(3,url)
}

function RequiresVersion4(url)
{
RequiresVersion(4,url)
}

// -->
</SCRIPT>





Local-to-user date and time display regardless of time zone or where the website's server is located
Categories : PHP, Date Time, HTML and PHP, Java Script
Get your browser details using javascript
Categories : Java Script, Beginner Guides, Browsers
Clock at Status Bar
Categories : Java Script, HTML, Date Time
intro java applet example for beginners
Categories : Languages, Java Script
Dynamic Calendar in PHP, Javascript and HTML.
Categories : PHP, Java Script, HTML and PHP, Calendar
complete simply working javascript password generator file. Use letter, vowels, consonants (uppercase and lowercase) arrays to create a really random and secure password. improved security using time functions to initialize random number generator.
Categories : Java Script, HTML, Security, Authentication, Strings
Javascript Date Picker
Categories : Java Script, Date Time, Calendar
The toll booth
Categories : PHP, Java Script, Filesystem
MD5 secured login
Categories : PHP, Java Script, Authentication, Security
Java Script which implements a Clock (Client Side)
Categories : Java Script, Date Time
Store, retrieve and delete cookies using JavaScript.
Categories : Java Script, Cookies, Beginner Guides, Cookies
KuPro1.0 - This application is for Libraries, To see their books and to maintain users books. This version is in Turkish, future vers may have English Support.
Categories : PHP, Java Script, DHTML
Builds JavaScript that updates the contents of one selector based on another.
Categories : HTML, Java Script, PHP, Complete Programs, General
Dynamic generation of textboxes, select items etc in a table for use with databases applications, matrimonials and for job sites
Categories : PHP, HTML and PHP, Java Script
This is a script that list all image files on a given directory, and displays the thumbnails nicely formated within an HTML table. It also make use of JavScript to open pop up windows when the users want to see the full photo.
Categories : Graphics, PHP, Complete Programs, Java Script