Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

 

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help.

 
Thread Tools
Old 01-27-2010, 11:19 AM   #1
Startzone
Confirmed User
 
Startzone's Avatar
 
Join Date: Dec 2006
Location: Down up!
Posts: 1,063
Any1 knows javascript

Hi,

In the next script:

I am working on minimal symbols check. If you have only text box it's easy, but i need to figure a way to check text only when Other is selected

<html>
<head>
<title>Bad Link Report</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="style.css" type="text/css">

<script language="JavaScript">
<!--
function enableFld(elementId,tostate){
eval("document.someform." + elementId + ".disabled="+tostate+";");
}
//-->
</script>

<script language="javascript" type="text/javascript">
<!--
function imposeMaxLength(Object, MaxLen)
{
return (Object.value.length <= MaxLen);
}
-->
</script>

</head>
<body leftMargin="0" topMargin="0" MARGINHEIGHT="0" MARGINWIDTH="0">

<br>
<table align="center" width="202" cellspacing="0" cellpadding="0">
<tr>
<td class="black" align="center">
<table width="200" border="0" cellspacing="0" cellpadding="3">
<tr>
<td class="black"><b>Bad Link Report</b></td>
</tr>
<tr>
<td align="left" bgcolor="#BFD8F1">

Thank you for your time<br>
Click to report bad link<br><br>

<form action="/bad.php" method="post" name="someform">
<input type="hidden" name="id" value="137477">

<input type="radio" name="op" value="badlink" checked onclick="javascript:enableFld('bao_text','true');" />bad link<br>
<input type="radio" name="op" value="doublelink" onclick="javascript:enableFld('bao_text','true');" />double link<br>
<input type="radio" name="op" value="wrongname" onclick="javascript:enableFld('bao_text','true');" />wrong name<br>
<input type="radio" name="op" value="other" onclick="javascript:enableFld('bao_text','false'); " />Other:<br>
<textarea name="bao_text" rows="2" cols="20" onkeypress="return imposeMaxLength(this, 15);" disabled="disabled"></textarea><br>

<input type="submit" name="submit" value="Report" class="button">

</form>
<br>
<tr>
<td class=black></td>
</tr>
</table>
</td>
</tr>
</table>
</html>


Any1?

Thanks!
__________________
Check this...... Gammae.com & DDF Cash & FetishWealth
Startzone is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 01-27-2010, 01:46 PM   #2
adult-help
Confirmed User
 
Industry Role:
Join Date: Mar 2008
Posts: 2,450
So you want to hide textarea and show it only if Others radio box is selected? Right?
adult-help is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 01-28-2010, 04:26 AM   #3
Startzone
Confirmed User
 
Startzone's Avatar
 
Join Date: Dec 2006
Location: Down up!
Posts: 1,063
Hi,

No I only want people to have to fill in textarea if the choose "Others" and then minimize the length to 15.

Thanks!
__________________
Check this...... Gammae.com & DDF Cash & FetishWealth
Startzone is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
 
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.