Click to See Complete Forum and Search --> : script help


tanfwc
09-13-2003, 03:53 AM
please help me to solve the script problem....thanx...this script is to get the email address from the user and then check it with one of the block check server...please help me check what is wrong with it....thanx....

<form name="bla" method="get" action="Javascript:get_status();">
<font face="Tahoma" style="font-size: 8pt">Enter The Email address and
Press Enter<br>
</font><br>

<input id="user_email" name="user_email" type="text" size="30" style="border:1px solid #3399FF; font-size: 10pt; font-weight: bold; font-family: verdana; color:Black background-color: #91c8ff" value='Enter E-mail address here' >
<br>
<Br>
<input type="submit" name="Button" value=" Submit " onClick="Javascript:get_status();">
<form><input type="button" value="Reset" onclick="window.location.reload();"></form>
<br></font>
<font face="Tahoma" style="font-size: 8pt" color="#808080">
<br>
<table width="370" height="23" border="1" cellpadding="0" cellspacing="0" bordercolor="#936300">
<tr>
<td width="24" bgcolor="#91C8FF" height="22" bordercolor="#3399FF" bordercolorlight="#3399FF" bordercolordark="#3399FF" style="border: 1px dashed #3399FF">
<div align="center">
<img src="http://abc.com/pic.gif" name="stat" alt="No data" width="21" height="22"></div>
</td>
<td width="608" bgcolor="#91c8ff" id="Xname" align="center" bordercolor="#3399FF" bordercolorlight="#3399FF" bordercolordark="#3399FF" style="border: 1px dashed #3399FF"></td>
</tr>
<p><p>
</table>

function get_status(){
document.plaatje.src='http://arkansasmall.tcworks.net:8080/image/jabberoffline.gif';
document.plaatje.alt='controleren'
document.plaatje.src='http://arkansasmall.tcworks.net:8080/msn/' + document.emesen.joumail.value;
document.plaatje.alt='status'
mailtje.innerHTML = '<b>MSNstatus: ' + document.emesen.joumail.value + '</b>';

}
</script>

swon
09-13-2003, 04:08 AM
where is the <script type="text/javascript"> start-tag?

what object is the 'plaatje' (it's not defined)?

document.emesen.joumail.value; ------
means that your form-name is 'emesen' with a field which is named joumail.


Also mailtje is not defined!

I don't if it's that what you want, but this works:

<form name="emesen" method="get" action="Javascript:get_status();">
<font face="Tahoma" style="font-size: 8pt">Enter The Email address and
Press Enter<br>
</font><br>

<input id="user_email" name="user_email" type="text" size="30" style="border:1px solid #3399FF; font-size: 10pt; font-weight: bold; font-family: verdana; color:Black background-color: #91c8ff" value='Enter E-mail address here' >
<br>
<Br>
<input type="submit" name="Button" value=" Submit " onClick="Javascript:get_status();">
<form><input type="button" value="Reset" onclick="window.location.reload();"></form>
<br></font>
<font face="Tahoma" style="font-size: 8pt" color="#808080">
<br>
<table width="370" height="23" border="1" cellpadding="0" cellspacing="0" bordercolor="#936300">
<tr>
<td width="24" bgcolor="#91C8FF" height="22" bordercolor="#3399FF" bordercolorlight="#3399FF" bordercolordark="#3399FF" style="border: 1px dashed #3399FF">
<div align="center" id=mailtje>
<img src="http://abc.com/pic.gif" name="stat" alt="No data" width="21" height="22"></div>
</td>
<td width="24" bgcolor="#91C8FF" height="22" bordercolor="#3399FF" bordercolorlight="#3399FF" bordercolordark="#3399FF" style="border: 1px dashed #3399FF">
<div align="center">
<img src="http://abc.com/pic.gif" name="plaatje" alt="No data" width="21" height="22"></div>
</td>
<td width="608" bgcolor="#91c8ff" id="Xname" align="center" bordercolor="#3399FF" bordercolorlight="#3399FF" bordercolordark="#3399FF" style="border: 1px dashed #3399FF"></td>
</tr>
<p><p>
</table>
<script type="text/javascript">
function get_status(){
document.plaatje.src='http://arkansasmall.tcworks.net:8080/image/jabberoffline.gif';
document.plaatje.alt='controleren'
document.plaatje.src='http://arkansasmall.tcworks.net:8080/msn/' + document.emesen.user_email.value;
document.plaatje.alt='status'
mailtje.innerHTML = '<b>MSNstatus: ' + document.emesen.user_email.value + '</b>';

}
</script>

tanfwc
09-13-2003, 04:25 AM
<img src="http://abc.com/pic.gif" name="plaatje" alt="No data" width="21" height="22"></div>

document.plaatje.src='http://arkansasmall.tcworks.net:8080/image/jabberoffline.gif';


is the plaatje link with this two code together?

swon
09-13-2003, 04:50 AM
If I understand you right, No, the image which is showing after click the button is this one:

document.plaatje.src='http://arkansasmall.tcworks.net:8080/msn/' + document.emesen.user_email.value;

for example:

http://arkansasmall.tcworks.net:8080/msn/youremail@domain.com

tanfwc
09-13-2003, 05:25 AM
ok....erm..