Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Cod-nes

  • Rank

Previous Fields

  • Languages

Contact Methods

  • Website URL
  • ICQ
  1. I keep getting a Internal Server Error message when I try to password protect a folder using .htaccess. Here is my codes. What am I doing wrong? C:/Documents and Settings/XXXXXXX/My Documents/Mowes Server/www/.htaccessAuthUserFile C:/Documents and Settings/XXXXXXX/My Documents/Mowes Server/.htpasswdAuthType BasicAuthName "My Secret Folder"Require valid-user C:/Documents and Settings/XXXXXXX/My Documents/Mowes Server/.htpasswdtest:cOYEWO52hnJoc OS: Windows XpServer: MoWeS 2.0.3Apache/2.2.11 (Win32) PHP/5.3.5 Server
  2. I don't know what's wrong with my RSS. Can anyone help me?http://thelostwaters.com/rss.php
  3. The popup creates itself when it isn't opened and act='close'. Is there a way to make that so it won't open?
  4. I'm trying to get the value for radios using JavaScript but I keep getting undefined values. >.< What am I doing wrong? function checka() { var a = document.seaform.searadx; alert(a);} <form name="seaform" action="java script: msgsea()" method="get"> <div style="margin-bottom:4px;">Search for username: <input type="text" id="search" maxlength="12" size="12" onkeyup="msgsea()"> <a href="java script: msgsea();">Search</a> <br> That begins with the keyword: <input type="radio" name="searadx" value="begins" checked="checked"><br> That contain
  5. Thanks. It looks like it works. =D By the way, what does the + do? Also where would I put in this: {4,12}? (I forgot to add it.)
  6. How can I validate input from a form that only allows numbers and letters in php?
  7. EDIT: I SOLVED IT.----Settimeout doesn't want to function even though the rest of the code works and I don't know why. var t;function time() {var ele = document.getElementById('ele');check(ele.value); // THIS WORKSt = setTimeout("check(ele.value)",100); // THIS DOESN'T WANT TO WORK} ----The solution for setTimeout: t = setTimeout(function() { check(ele.value)},100);
  8. Thanks. I have a question. Can we do a return function with the response text after xmlhttp.send() or is that not allowed?
  9. I want the function checkuser() to return a true/false status based on the server response, but the script returns to inter function of checkuser(). function checkuser(user) { if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { alert(xmlhttp.responseText); if(xmlhttp.responseText == 'usertaken') { alert('ifok'); return(true); } else { return(false); } } }xmlhttp.open("GET","index.php?act=isusertaken&user=" + user,true)
  10. Thanks it works. ^^ By the way, what does the dollar sign do? Thanks.
  11. I want to use javascript to validate input of a username. I want the username to only allow letters and numbers, but I can't seem to do it. function letnum (ele){ ele = document.getElementById(ele); var patt = RegExp('[a-zA-Z0-9]'); if(patt.test(ele.value)) { alert("ok"); } else { alert("Only letters and numbers allowed."); }}
  12. I tried several times already and it still won't work. <div id="con2" style="display:block;">Text</text><script type="text/javascript">if(document.getElementById('con2').style.display == "block") { alert("Ok");}</script> EDIT: It works now. ; Apparently, external css doesn't work.
  13. Is this a valid format for meta revised?<meta name="revised" content="February 6, 2010">
  14. I'm trying to add a music player when a certain ajax file has the word "needed" f0r example. This was my attempt but I failed: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Domestic Aid/Pomoc Domowa</title><META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"><style type="text/css">body {font-family:"Times New Roman";font-size: 14pt;background-color: #CCCCFF;}.big {background-color: #33CCCC;font-size: 26pt;border-bottom: 5p
  • Create New...