The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
March 29, 2024, 11:37:33 am
Home Help Search Login Register
News: Celebrating 30 years of Star Control 2 - The Ur-Quan Masters

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  Starbase Café (Moderator: Death 999)
| | |-+  An example why computers hate me.
« previous next »
Pages: [1] 2 Print
Author Topic: An example why computers hate me.  (Read 12432 times)
Deep-Jiffa
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1045



View Profile
An example why computers hate me.
« on: February 08, 2004, 07:47:14 pm »

Check this perfect code which doesn't work, as always:

<html dir='rtl'>
 <head>
   <title>&#1492;&#1499;&#1504;&#1505; &#1508;&#1512;&#1496;&#1497;&#1501; &#1489;&#1491;&#1507; &#1494;&#1492;</title>
   <script language="javascript">
     <!--
       function FormCheck(FirstName, FamilyName, EmailAddress, FPassword, Passconfirm)
           {
            if (isNaN(FirstName) == false )
               {alert("&#1492;&#1513;&#1501; &#1492;&#1508;&#1512;&#1496;&#1497; &#1488;&#1497;&#1504;&#1493; &#1514;&#1511;&#1497;&#1503;, &#1488;&#1504;&#1488; &#1492;&#1499;&#1504;&#1505; &#1488;&#1514; &#1492;&#1513;&#1501; &#1502;&#1495;&#1491;&#1513;") ;}
           
            if (isNaN(FamilyName) == false )
               {alert("&#1513;&#1501; &#1492;&#1502;&#1513;&#1508;&#1495;&#1492; &#1488;&#1497;&#1504;&#1493; &#1514;&#1511;&#1497;&#1503;, &#1488;&#1504;&#1488; &#1492;&#1499;&#1504;&#1505; &#1488;&#1514; &#1513;&#1501; &#1492;&#1502;&#1513;&#1508;&#1495;&#1492; &#1502;&#1495;&#1491;&#1513;") ;}

            if (EmailAddress.indexOf("@") == -1 )
               {alert("&#1513;&#1499;&#1495;&#1514; &#1488;&#1514; &#1492;&#1513;&#1496;&#1512;&#1493;&#1491;&#1500; &#1497;&#1511;&#1497;&#1512;&#1497;!") ;}
            If (FPassword.length < 6)
               {alert("&#1492;&#1505;&#1505;&#1502;&#1492; &#1495;&#1497;&#1497;&#1489;&#1514; &#1500;&#1492;&#1497;&#1493;&#1514; &#1500;&#1508;&#1495;&#1493;&#1514; 6 &#1514;&#1493;&#1493;&#1497;&#1501;!") ;}
            if (Passconfirm != FPassword)
               {alert("&#1492;&#1513;&#1491;&#1493;&#1514; &#1513;&#1500; &#1492;&#1505;&#1505;&#1502;&#1492; &#1488;&#1497;&#1504;&#1501; &#1514;&#1493;&#1488;&#1502;&#1497;&#1501;!") ;}
           }

     //-->
   </script>
 </head>
 <body>
 <basefont face='arial' color='black'/>
   <form name='form' action='mailto:groz_f@hotmail.com' method='post'>
   <table align='center' border='0' width='70%'
     <tr>
           <td>
                 <u><font size='+2' face='arial'><center> &#1492;&#1499;&#1504;&#1505; &#1488;&#1514; &#1508;&#1512;&#1496;&#1497;&#1498; &#1499;&#1488;&#1503;: </center></font></u>
           </td>
     </tr>
     <tr>
           <td>
                 <font size='-1'> - &#1513;&#1491;&#1493;&#1514; &#1492;&#1502;&#1505;&#1493;&#1502;&#1504;&#1497;&#1501; &#1489;-* &#1492;&#1501; &#1513;&#1491;&#1493;&#1514; &#1495;&#1493;&#1489;&#1492; </font>
           </td>
     </tr>
     <tr>
           <td>
           *&#1513;&#1501; &#1508;&#1512;&#1496;&#1497;: <input type='text' id='Fname' size='18' maxlength='10'/>
           </td>
     </tr>
     <tr>
           <td>
           *&#1513;&#1501; &#1502;&#1513;&#1508;&#1495;&#1492;: <input type='text' id='Familyname' size='18' maxlength='14'/>
           </td>
     </tr>
     <tr>
           <td>
           *&#1491;&#1493;&#1488;&#1512; &#1488;&#1500;&#1511;&#1496;&#1512;&#1493;&#1504;&#1497;: <input type='text' id='email' size='18' maxlength='17'/>
           </td>
     </tr>
     <tr>
           <td>
           *&#1505;&#1497;&#1505;&#1502;&#1492;: <input type='password' id='pass' size='18' maxlength='17'/>
           </td>
     </tr>
     <tr>
           <td>
           *&#1495;&#1494;&#1493;&#1512; &#1506;&#1500; &#1492;&#1505;&#1497;&#1505;&#1502;&#1492;: <input type='password' id='Rpass' size='18' maxlength='17'/>
           </td>
     </tr>
     <tr>
           <td>
           &#1489;&#1512;&#1510;&#1493;&#1504;&#1497; &#1500;&#1511;&#1489;&#1500; &#1488;&#1497;&#1502;&#1497;&#1497;&#1500; &#1499;&#1488;&#1513;&#1512; &#1502;&#1493;&#1499;&#1504;&#1505; &#1502;&#1497;&#1500;&#1493;&#1514; &#1500;&#1513;&#1497;&#1512;&#1497;&#1501; &#1495;&#1491;&#1513;&#1497;&#1501;: <input type='checkbox' id='c1' checked='checked'/>
           </td>
     </tr>
     <tr>
           <td>
           &#1489;&#1512;&#1510;&#1493;&#1504;&#1497; &#1500;&#1511;&#1489;&#1500; &#1488;&#1497;&#1502;&#1497;&#1497;&#1500; &#1499;&#1488;&#1513;&#1512; &#1502;&#1493;&#1499;&#1504;&#1505; &#1502;&#1497;&#1491;&#1506; &#1506;&#1500; &#1492;&#1500;&#1492;&#1511;&#1492;: <input type='checkbox' id='c2' checked='checked'/>
           </td>
     </tr>
     <tr>
           <td>
           &#1489;&#1512;&#1510;&#1493;&#1504;&#1497; &#1500;&#1511;&#1489;&#1500; &#1488;&#1497;&#1502;&#1497;&#1497;&#1500; &#1499;&#1488;&#1513;&#1512; &#1502;&#1493;&#1499;&#1504;&#1505; &#1502;&#1497;&#1491;&#1506; &#1506;&#1500; &#1492;&#1488;&#1500;&#1489;&#1493;&#1502;&#1497;&#1501; &#1513;&#1500; &#1492;&#1500;&#1492;&#1511;&#1492;: <input type='checkbox' id='c3' checked='checked'/>
           </td>
     </tr>
     <tr>
           <td>
           &#1489;&#1512;&#1510;&#1493;&#1504;&#1497; &#1500;&#1511;&#1489;&#1500; &#1488;&#1497;&#1502;&#1497;&#1497;&#1500; &#1499;&#1488;&#1513;&#1512; &#1502;&#1493;&#1499;&#1504;&#1505;&#1514; &#1514;&#1502;&#1493;&#1504;&#1492; &#1495;&#1491;&#1513;&#1492; &#1513;&#1500; &#1492;&#1500;&#1492;&#1511;&#1492;: <input type='checkbox' id='c4' checked='checked'/>
           </td>
     </tr>
     <tr>
           <td>
           &#1488;&#1497;&#1498; &#1492;&#1497;&#1497;&#1514; &#1502;&#1491;&#1512;&#1490; &#1488;&#1514; &#1492;&#1488;&#1514;&#1512; &#1489;&#1499;&#1500;&#1500;&#1497;&#1493;&#1514;? <select id='s1' />
                       <option value='1'>&#1502;&#1506;&#1493;&#1500;&#1492;</option>
                       <option value='2' selected='selected'>&#1496;&#1493;&#1489;</option>
                       <option value='3'>&#1505;&#1489;&#1497;&#1512;</option>
                       <option value='4'>&#1490;&#1512;&#1493;&#1506;</option>
                       </select>
           </td>
     </tr>
     <tr>
           <td>
           &#1488;&#1497;&#1498; &#1492;&#1497;&#1497;&#1514; &#1502;&#1491;&#1512;&#1490; &#1488;&#1514; &#1492;&#1506;&#1497;&#1510;&#1493;&#1489; &#1513;&#1500; &#1492;&#1488;&#1514;&#1512;? <select id='s2' />
                       <option value='1'>&#1502;&#1506;&#1493;&#1500;&#1492;</option>
                       <option value='2' selected='selected'>&#1496;&#1493;&#1489;</option>
                       <option value='3'>&#1505;&#1489;&#1497;&#1512;</option>
                       <option value='4'>&#1490;&#1512;&#1493;&#1506;</option>
                       </select>
           </td>
     </tr>
     <tr>
           <td>
           &#1488;&#1497;&#1498; &#1492;&#1497;&#1497;&#1514; &#1502;&#1491;&#1512;&#1490; &#1488;&#1514; &#1514;&#1493;&#1499;&#1503; &#1492;&#1488;&#1514;&#1512;? <select id='s3' />
                       <option value='1'>&#1502;&#1506;&#1493;&#1500;&#1492;</option>
                       <option value='2' selected='selected'>&#1496;&#1493;&#1489;</option>
                       <option value='3'>&#1505;&#1489;&#1497;&#1512;</option>
                       <option value='4'>&#1490;&#1512;&#1493;&#1506;</option>
                       </select>
           </td>
     </tr>
     <tr>
           <td>
           <hr/>
                 &#1492;&#1506;&#1512;&#1493;&#1514;:<br/><textarea id='notes' cols='60' rows='4'>&#1492;&#1511;&#1500;&#1491; &#1488;&#1514; &#1492;&#1506;&#1512;&#1493;&#1514;&#1497;&#1498; &#1499;&#1488;&#1503;!</textarea>
           </td>
     </tr>
     <tr>
           <td>
                 <input type='reset' value='&#1504;&#1511;&#1492; &#1496;&#1493;&#1508;&#1505;'/><input type='submit' onclick="FormCheck(Fname.value, Familyname.value, email.value, pass.value, Rpass.value ) ;" value='&#1513;&#1500;&#1495;\&#1497;'/>
           </td>
     </tr>
    </table>
   </form>
 </body>
</html>

My teacher looked up in the code and said nothing is wrong, again. But still it isn't working. Anyone here got an idea why?

note: If the hebrew annoys you, I will remove it ( all hebrew are non-important in this page...)
« Last Edit: February 08, 2004, 08:01:57 pm by Deep_Jiffa » Logged

Deep Jiffa Owns j00!
FalconMWC
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1059


Avatar Courtesy of Slyrendro


View Profile
Re: An example why computers hate me.
« Reply #1 on: February 09, 2004, 12:13:37 am »

Maybe it is a compiling program in your CPU??
Logged
Deep-Jiffa
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1045



View Profile
Re: An example why computers hate me.
« Reply #2 on: February 09, 2004, 12:14:51 am »

Quote
Maybe it is a compiling program in your CPU??


Huh.. All wrote in notepad.
Logged

Deep Jiffa Owns j00!
FalconMWC
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1059


Avatar Courtesy of Slyrendro


View Profile
Re: An example why computers hate me.
« Reply #3 on: February 09, 2004, 12:17:20 am »

hhmmm....

Try to get someone else to write the same code on your CPU. If it works you know it is you. If it does not - then your CPU is a hater of all humans! - (The the code looks perfectly fine to me)
Logged
Deep-Jiffa
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1045



View Profile
Re: An example why computers hate me.
« Reply #4 on: February 09, 2004, 01:33:22 am »

I gave the exact file to my friend.... What do you know? It is working!
Logged

Deep Jiffa Owns j00!
Chrispy
Enlightened
*****
Offline Offline

Gender: Male
Posts: 917


Vlik Dweller


View Profile
Re: An example why computers hate me.
« Reply #5 on: February 09, 2004, 02:59:47 am »

Maybe your computor hates you Roll Eyes
Logged

FalconMWC
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1059


Avatar Courtesy of Slyrendro


View Profile
Re: An example why computers hate me.
« Reply #6 on: February 09, 2004, 05:13:24 am »

Try using your fiends computer. If that does not work then you know that your CPU hates you so much that it ?boycotted? you!
Logged
Culture20
Enlightened
*****
Offline Offline

Posts: 917


Thraddash Flower Child


View Profile
Re: An example why computers hate me.
« Reply #7 on: February 09, 2004, 09:11:33 am »

I noticed it's using javascript; were you using the same browser on both computers?  javascript works differently in IE and mozilla/netscape.  IE tends to auto-fix errors (or sometimes what it mistakenly _thinks_ are errors).
Logged
FalconMWC
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1059


Avatar Courtesy of Slyrendro


View Profile
Re: An example why computers hate me.
« Reply #8 on: February 09, 2004, 06:26:28 pm »

Go to your friends House and check his/her settings. Good idea Culture20!


EDIT: Yay - I am Smell Controller!
« Last Edit: February 09, 2004, 06:26:57 pm by FalconMWC » Logged
Deep-Jiffa
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1045



View Profile
Re: An example why computers hate me.
« Reply #9 on: February 09, 2004, 08:12:52 pm »

Quote
Go to your friends House and check his/her settings. Good idea Culture20!


EDIT: Yay - I am Smell Controller!


For the original part, I put a new code... Which someone else wrote.  :-/

For the second part: It should be *Spam* controller.
Logged

Deep Jiffa Owns j00!
FalconMWC
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1059


Avatar Courtesy of Slyrendro


View Profile
Re: An example why computers hate me.
« Reply #10 on: February 09, 2004, 08:43:07 pm »

My Gosh DJ - Please, you don't need to flame me! -Sure I "pushed" to get a extra 4 posts to get smell controller. I am sure many here did the same. You don't flame everone you come across that spams for 4 post. Unless you want me to go back and look at your posts.
« Last Edit: February 09, 2004, 08:43:28 pm by FalconMWC » Logged
Lukipela
Enlightened
*****
Offline Offline

Gender: Male
Posts: 3620


The Ancient One


View Profile
Re: An example why computers hate me.
« Reply #11 on: February 09, 2004, 09:32:27 pm »

Now this is a pillowworthy thread if there ever was one. Alright DJ, Falcon, here's a pillow each. Then you can hit eachother and both quabble about who spams the most.

(As a side note, it seems I very seldomly see posts by anyone but the two of you these days, what does this tell us?) Wink

(Oh, and me of course. But all my posts are worty, on topic and dignified. (Especially This one))
Logged

What's up doc?
FalconMWC
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1059


Avatar Courtesy of Slyrendro


View Profile
Re: An example why computers hate me.
« Reply #12 on: February 09, 2004, 09:42:03 pm »

Quote
(As a side note, it seems I very seldomly see posts by anyone but the two of you these days, what does this tell us?) Wink

Why that means tha we are very active forum members!   Roll Eyes

EDIT: LK - How did D_999 Get 1200 posts  Wink
« Last Edit: February 09, 2004, 09:42:39 pm by FalconMWC » Logged
Death 999
Global Moderator
Enlightened
*****
Offline Offline

Gender: Male
Posts: 3872


We did. You did. Yes we can. No.


View Profile
Re: An example why computers hate me.
« Reply #13 on: February 09, 2004, 10:16:35 pm »

By being around about 5 times longer than you.

D999: 1200 posts since jan 4, 2003. Days: 400 or so. Average: 3 posts per day.
FalconWMC: 260 posts since nov 4, 2003. Days: 77. Average: 3.4 posts per day.
While we're at it:
DJ: 666 posts since jul 24, 2003. Days: 200. Average: 3.33 posts per day
Luki: 1114 posts since feb 4, 2003. Days: 370 or so. Average: 3 posts per day
Nic: 478 posts since nov 10, 2002. Days: 455 or so. Average: 1.05 per day
Kohr-Ah Primat: 496 posts from April 3rd 2003 to Aug 13th 2003. Days: 132. Average: 3.76 posts per day.
K-P without her last post: 495 posts from April 3rd to July 24th. Days: 122. Average: 4 posts per day

And it's not quantity... do a user search for KP, Nic, Luki, or myself, or Omni-kun.
This isn't chat, saying nothing should be the most common option.

******

As for the code (which is why I am posting in this thread in the first place), I see some simplifications that could be made, like replacing the '== false' constructs with uses of the '!' operator, but that's just a readability issue.

Also, I wonder why you're applying the isNaN function to a string instead of a float or double. However, this is probably just some javascript idiom I'm not aware of.

There are two sketchy things I see about the submit button.
First, that it doesn't specify an action to be taken after verifying the data. This may be confused for being no effect, if the data is valid.
Second, the submit button input tag ends with '/>' instead of '>'. This may be legal, but I'm not sure.
Logged
JonoPorter
Enlightened
*****
Offline Offline

Gender: Male
Posts: 656


Don't mess with the US.


View Profile WWW
Re: An example why computers hate me.
« Reply #14 on: February 09, 2004, 10:59:23 pm »

have you tried inverting the polarity? its works in every sci fi show.


but really the lack of comments makes me not even want to look at the code. add comments then we can talk.
Logged

There are none so blind as those who will not see. — Jonathan Swift

My Remake of UQM.
My 2D physics engine
Both are written in C#.
Pages: [1] 2 Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!