Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - need a simple javascript function
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic Closedneed a simple javascript function

 Post Reply Post Reply Page  <12
Author
iSec View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 February 2005
Status: Offline
Points: 1140
Direct Link To This Post Posted: 21 March 2008 at 4:50pm
It's ok... I already got it...
Here is how I did it:
 
  <script language="JavaScript" type="text/javascript">
 function check() {
 
  var items=new Array();
  items[0]="item-1";
  items[1]="item-2";
  items[2]="item-3";
  
  input = document.getElementById("in").value;
  if(input=="") {
   alert("Please enter a value !");
   return;
  }
  
  for(i=0; i<items.length; i++)
   if( input==items ) {
    location.href = "welcome.html";
    return;
   }
  location.href = "rejected.html";
  
 }
  </script>
"When it gets dark enough, you can see the stars"
-Charles A. Beard
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Direct Link To This Post Posted: 21 March 2008 at 6:06pm
I told you I was out of my depth LOL
But it all sounds good anyway

I'm just pleased with myself that I can do what I do with googling and ploughing through bits and bobs, but I will never be up with you guys. I'm too old now to learn that sort of stuff, which is a shame when you have the ideas and hopes, but not the brains Ouch
Back to Top
iSec View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 February 2005
Status: Offline
Points: 1140
Direct Link To This Post Posted: 21 March 2008 at 11:23pm
haha...
I'm personally a Information Security guy... that's my major ... I do some basic web design though;  and I'm also involved in the management of a few big web projects like a voice chat that a professional developer and I are doing... my role in that project is financing...testing...etc...
"When it gets dark enough, you can see the stars"
-Charles A. Beard
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Direct Link To This Post Posted: 22 March 2008 at 6:27pm
Sounds like a brain surgeon to me bud, but I'll take your word for it Thumbs%20Up
I run my own businesses, nothing special but it beats working for an employer

I just like learning and challenging myself on the web but I know I will never be up there with the BIG CHEESES! Ermm Geek
But I do like our choices of avatars on our forums compared to the bog standard ones!

At least there I can pull a few more smilies! Big%20smile
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.