AKB Forums

Go Back   AKB Forums > Technical sections > Languages, Compilers and Interpreters
Home Register Blogs FAQ Members List Calendar Downloads Arcade Mark Forums Read

Languages, Compilers and Interpreters C,C++,C#,.NET,Java,PHP,Perl,SQL and more

Troubles when posting message? Click here! :: Проблемы с отправлением сообщения? Нажмите сюда!

Reply
 
LinkBack Thread Tools Display Modes
Old Jul 27, 2005, 08:32   #1
йес эм эли...
 
Mesrop's Avatar
 
Join Date: Feb 2005
Location: near the computer
Posts: 3,202
Rep Power: 4
Reputation: 89
Send a message via ICQ to Mesrop Send a message via AIM to Mesrop Send a message via MSN to Mesrop Send a message via Yahoo to Mesrop Send a message via Skype™ to Mesrop
Exclamation Проблема.. Java Alert

Yerb PAGE anunov input-um grum em 20, ban chi asum, isk mnacac depqerum ALERT a berum(esqan@ im uzacova).
indz petqa mi dzev, vor ayd 20-i tex@ linen shat tver, bayc chem uzum vor amen tvi hamar senc grem
if (openpap.page.value == XX) return true;
uzum em vor aseq, vonc karam asem, vor 20, 30, 40-@ irar havasar en.. vor hesht lini, vorovhetev mot 250 tiv petq e grem..
tekuz ayd tver@ grem mi faili mej, script@ FIND ta, u imana beri ALERT@ te voch..
harcs miqich xarn er, knereq..
Code:
<script language="JavaScript" type="text/javascript"> 

function checkscript() { 
if (openpap.page.value == 20)  return true; 

else
{ alert("не найдено"); return false; }
}  
</script>
Mesrop is offline   Reply With Quote Quote selected
Old Jul 27, 2005, 08:40   #2
ЙЦУКЕН
 
Join Date: Jul 2002
Location: 0x68,0x69,0x72, 0x69,0x6e,0x67, 0x20,0x6e,0x6f, 0x77
Posts: 3,114
Rep Power: 7
Reputation: 10
Send a message via ICQ to nm
ндя ... а array определить с числами и цикл написать не судьба?
nm is offline   Reply With Quote Quote selected
Old Jul 27, 2005, 09:59   #3
*****
 
Michael's Avatar
 
Join Date: Mar 2003
Location: Yerevan
Posts: 310
Rep Power: 6
Reputation: 14
Send a message via ICQ to Michael
ete Array ches uzum
switch ov ara (bajc Array-@ aveli lav e )
__________________
Men's eyes were made to look, and let them gaze.
Michael is offline   Reply With Quote Quote selected
Old Jul 27, 2005, 10:02   #4
Silence
 
Moonlight's Avatar
 
Join Date: Nov 2004
Location: back to meta level
Posts: 3,929
Blog Entries: 3
Rep Power: 4
Reputation: 189
Send a message via Skype™ to Moonlight
a mojet s vector-om?
Moonlight is offline   Reply With Quote Quote selected
Old Jul 27, 2005, 10:08   #5
йес эм эли...
 
Mesrop's Avatar
 
Join Date: Feb 2005
Location: near the computer
Posts: 3,202
Rep Power: 4
Reputation: 89
Send a message via ICQ to Mesrop Send a message via AIM to Mesrop Send a message via MSN to Mesrop Send a message via Yahoo to Mesrop Send a message via Skype™ to Mesrop
ok. yete ARRAY -@ aveli lava, xndrum em phoqr orinak bereq, dzev@ imanam..
Mesrop is offline   Reply With Quote Quote selected
Old Jul 27, 2005, 10:31   #6
ЙЦУКЕН
 
Join Date: Jul 2002
Location: 0x68,0x69,0x72, 0x69,0x6e,0x67, 0x20,0x6e,0x6f, 0x77
Posts: 3,114
Rep Power: 7
Reputation: 10
Send a message via ICQ to nm
ну все, держите меня трое
я предлагаю набрать в гугл -- javascript array
и почитать хотя бы первый линк. это несложно. нужно почитать и подумать, почитать и подумать, почитать и подумать
nm is offline   Reply With Quote Quote selected
Old Jul 27, 2005, 11:01   #7
йес эм эли...
 
Mesrop's Avatar
 
Join Date: Feb 2005
Location: near the computer
Posts: 3,202
Rep Power: 4
Reputation: 89
Send a message via ICQ to Mesrop Send a message via AIM to Mesrop Send a message via MSN to Mesrop Send a message via Yahoo to Mesrop Send a message via Skype™ to Mesrop
ha.. haskaca..
bayc array-i depqum ALERT-@ chi bacvum..
aysinqn amboxch script@ imast@ korcnuma..
http://www.w3schools.com/js/js_obj_array.asp
arajin 2 orinaknerovel phorceci.
Mesrop is offline   Reply With Quote Quote selected
Old Jul 27, 2005, 11:19   #8
ЙЦУКЕН
 
Join Date: Jul 2002
Location: 0x68,0x69,0x72, 0x69,0x6e,0x67, 0x20,0x6e,0x6f, 0x77
Posts: 3,114
Rep Power: 7
Reputation: 10
Send a message via ICQ to nm
а вот у меня в коде, на тртьей строке выдает ошибку - parse error, не подскажете, из-за чего?
nm is offline   Reply With Quote Quote selected
Old Jul 27, 2005, 11:32   #9
йес эм эли...
 
Mesrop's Avatar
 
Join Date: Feb 2005
Location: near the computer
Posts: 3,202
Rep Power: 4
Reputation: 89
Send a message via ICQ to Mesrop Send a message via AIM to Mesrop Send a message via MSN to Mesrop Send a message via Yahoo to Mesrop Send a message via Skype™ to Mesrop
nm jan yes chgitem Java.. et script@ prosto hishum ei, petq ekav, greci...
ches hushi inch anem?
Mesrop is offline   Reply With Quote Quote selected
Old Jul 27, 2005, 12:09   #10
*****
 
Michael's Avatar
 
Join Date: Mar 2003
Location: Yerevan
Posts: 310
Rep Power: 6
Reputation: 14
Send a message via ICQ to Michael
<html>
<head>
<title>Untitled Document</title>
<script language="JavaScript" type="text/javascript">
var openpap = 23;
function checkscript() {
var array = [ 1, 2, 3, 5, 6, 7, 8];
for( var i = 0; i< array.length ; i++ ) {
if (openpap == array[i] )
return true;

}
alert("не найдено");
return false;

}

</script>
</head>
<body>
<input type="button" onClick="checkscript();" value="GO">

</body>
</html>
__________________
Men's eyes were made to look, and let them gaze.
Michael is offline   Reply With Quote Quote selected
Old Jul 27, 2005, 12:14   #11
йес эм эли...
 
Mesrop's Avatar
 
Join Date: Feb 2005
Location: near the computer
Posts: 3,202
Rep Power: 4
Reputation: 89
Send a message via ICQ to Mesrop Send a message via AIM to Mesrop Send a message via MSN to Mesrop Send a message via Yahoo to Mesrop Send a message via Skype™ to Mesrop
Ay mersi Michael jan!!!!!
shat goh em..
Mesrop is offline   Reply With Quote Quote selected
Old Jul 27, 2005, 12:19   #12
*****
 
Michael's Avatar
 
Join Date: Mar 2003
Location: Yerevan
Posts: 310
Rep Power: 6
Reputation: 14
Send a message via ICQ to Michael
Quote:
Originally Posted by mesrop
Ay mersi Michael jan!!!!!
shat goh em..
Welcome
__________________
Men's eyes were made to look, and let them gaze.
Michael is offline   Reply With Quote Quote selected
Old Jul 27, 2005, 12:39   #13
йес эм эли...
 
Mesrop's Avatar
 
Join Date: Feb 2005
Location: near the computer
Posts: 3,202
Rep Power: 4
Reputation: 89
Send a message via ICQ to Mesrop Send a message via AIM to Mesrop Send a message via MSN to Mesrop Send a message via Yahoo to Mesrop Send a message via Skype™ to Mesrop
chgidem inch anem..
Michaeli grac@ shat lavner, bayc chashxatec scriptis vra..
hesa nayeq @ndhanur kod@.
Code:
<table cellSpacing="0" width="300" border="0" style="border-collapse:collapse" fpstyle="1,011111100" bordercolor="#FFFFFF">
  <tr> 
    <td valign="middle" bordercolor="#FFFFFF" style="border-style:solid; border-width:1; "> 
<script language="JavaScript" type="text/javascript"> 
var openpap = 23;
function checkscript() { 
var array = [ 1, 2, 3, 5, 6, 7, 8];
for( var i = 0; i< array.length ; i++ ) {
if (openpap.page.value == array[i] ) 
return true; 

}
alert("íå íàéäåíî"); 
return false; 

} 

</script>
      <form name="openpap"  method="get"  onSubmit="checkscript()">
        <table width="100%" cellspacing="0" cellpadding="0">
          <tr> 
            <td width="65%"><strong><font color="#FFFFFF" size="2" face="Verdana">Open 
              the newspaper</font></strong></td>
          </tr>
          <tr> 
            <td><font color="#FFFFFF" size="2pt">type newspaper's ID for opening</font></td>
            <td><input type=text name="page" maxlength="4" size="4"></td>
            <td><input name="submit" type="submit"   value="GO">
			</td>
          </tr>
		            <tr> 
            <td><font color="#FFFFFF" size="2pt">download newspaper's list</font></td>
     
          </tr>
        </table>
      </form></td>
  </tr>
</table>
Plz ogneq.. im mot senc chashxatec.. yerevi bana petq phoxel ha??
Mesrop is offline   Reply With Quote Quote selected
Old Jul 27, 2005, 13:06   #14
*****
 
Michael's Avatar
 
Join Date: Mar 2003
Location: Yerevan
Posts: 310
Rep Power: 6
Reputation: 14
Send a message via ICQ to Michael
<table cellSpacing="0" width="300" border="0" style="border-collapse:collapse" fpstyle="1,011111100" bordercolor="#FFFFFF">
<tr>
<td valign="middle" bordercolor="#FFFFFF" style="border-style:solid; border-width:1; ">
<script language="JavaScript" type="text/javascript">

function checkscript() {

var array = [ 1, 2, 3, 5, 6, 7, 8];
for( var i = 0; i< array.length ; i++ ) {
if (parseInt(document.openpap.page.value) == parseInt(array[i]) )
return true;

}
alert("íå íàéäåíî");
return false;

}

</script>
<form name="openpap" method="get" onSubmit="checkscript()">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="65%"><strong><font color="#FFFFFF" size="2" face="Verdana">Open
the newspaper</font></strong></td>
</tr>
<tr>
<td><font color="#FFFFFF" size="2pt">type newspaper's ID for opening</font></td>
<td><input type=text name="page" maxlength="4" size="4"></td>
<td><input name="submit" type="submit" value="GO" >
</td>
</tr>
<tr>
<td><font color="#FFFFFF" size="2pt">download newspaper's list</font></td>

</tr>
</table>
</form></td>
</tr>
</table>
__________________
Men's eyes were made to look, and let them gaze.
Michael is offline   Reply With Quote Quote selected
Old Jul 28, 2005, 07:39   #15
йес эм эли...
 
Mesrop's Avatar
 
Join Date: Feb 2005
Location: near the computer
Posts: 3,202
Rep Power: 4
Reputation: 89
Send a message via ICQ to Mesrop Send a message via AIM to Mesrop Send a message via MSN to Mesrop Send a message via Yahoo to Mesrop Send a message via Skype™ to Mesrop
Shat mersi Michael jan!
miqich shtkum kar, petqa liner
Code:
 <form name="openpap" method="get" onSubmit="return checkscript()">
Return - bar@ avelacreci, normal ashxatuma.. mersi!
Mesrop is offline   Reply With Quote Quote selected
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Проблема со службой RPC Тишь Operating Systems 0 Jun 23, 2005 13:34
Проблема с принтером aramx Hardware 2 Oct 7, 2004 13:38
Alert for Microsoft Windows XP users: Service Pack2 Hrach_Techie TWARM 4 Oct 6, 2004 13:56
проблема со звуком z0mbie Software 3 Apr 29, 2003 13:18
Проблема!!!!!!! DRUID Hardware 18 Nov 6, 2002 00:07


All times are GMT. The time now is 18:05.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
This board was founded on September 29, 2001
Powered by Viper Internet

Affordable Web Hosting | ParevNet

Buy text link