Author Topic: autofill server name  (Read 5903 times)

Offline worm32

  • Newbie
  • *
  • Posts: 1
autofill server name
« on: August 02, 2007, 04:52:04 AM »
I have lots of servers (12), so there is to much mail server. I tried to add their ip adress it worked fine but i am thinking my custemers. I tried to write a autofill java. It worked but i couldnt integrate it. these are the codes.

Code: [Select]
<!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;[url]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;>[/url]
<html xmlns=&quot;[url]http://www.w3.org/1999/xhtml&quot;>[/url]
<head>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-9&quot; />
<title>Untitled Document</title>
<script language=&quot;javascript&quot;>
<!--
function sunucuBul(kullaniciadi){
user_server=kullaniciadi.split(&quot;@&quot;,2);

if (user_server.length==2 & user_server[1]!=&quot;&quot; & user_server[0]!=&quot;&quot;){
form1._host.value=&quot;mail.&quot;+user_server[1];
} else {
alert (&quot;Hatal&#305; kullan&#305;c&#305; ismi !&quot;);
}
}
//-->
</script>
</head>

<body>
<form id=&quot;form1&quot; name=&quot;form1&quot; method=&quot;post&quot; action=&quot;&quot;>
 <table width=&quot;231&quot; border=&quot;0&quot; cellspacing=&quot;5&quot; cellpadding=&quot;0&quot;>
  <tr>
   <td width=&quot;72&quot;>kullan&#305;c&#305;</td>
   <td width=&quot;144&quot;><input name=&quot;_user&quot; type=&quot;text&quot; id=&quot;_user&quot; onchange=&quot;sunucuBul(this.value);&quot; /></td>
  </tr>
  <tr>
   <td>&#351;ifre</td>
   <td><input type=&quot;text&quot; name=&quot;_pass&quot; id=&quot;_pass&quot; /></td>
  </tr>
  <tr>
   <td>sunucu</td>
   <td><input type=&quot;text&quot; name=&quot;_host&quot; id=&quot;_host&quot; disabled=&quot;disabled&quot; /></td>
  </tr>
 </table>
 <p><a href=&quot;#&quot; onclick=&quot;sunucuBul(form1._user.value)&quot;>kontrol deneme</a></p>
 <p>
  <input type=&quot;submit&quot; name=&quot;button&quot; id=&quot;button&quot; value=&quot;Submit&quot; />
 </p>
 <p>&nbsp; </p>
</form>
</body>
</html>