Jump to content

luckiano

Members
  • Content count

    9
  • Joined

  • Last visited

Community Reputation

0 Neutral

About luckiano

  • Rank
    Newbie
  • Birthday 02/14/1987

Profile Information

  • Location
    Nigeria
  1. information on ajax

    Hi Deirdre's Dad, what i actually wanted was a simple script that can display a loading image when validating form input fields. i copied the source code from a site but it not working. and i'm sure the error is from the the "check_email.asp" file. i actually do not know what should be there. please if you can help me out. thanks here is the JavaScript file var xmlHttpfunction showCustomer(str,u){ xmlHttp=GetXmlHttpObject()if (xmlHttp==null){alert ("Browser does not support HTTP Request")return} //var url="check_email.asp"var url = uurl=url+"?q="+strurl=url+"&sid="+Math.random()xmlHttp.onreadystatechange=stateChanged xmlHttp.open("GET",url,true)xmlHttp.send(null)}function stateChanged() { if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){ document.getElementById("CEmail").innerHTML=xmlHttp.responseText } else if (xmlHttp.readyState==0) { document.getElementById("CEmail").innerHTML="..."; } else if (xmlHttp.readyState==1) { document.getElementById("CEmail").innerHTML="<img src='Loading.gif'>"; } else if (xmlHttp.readyState==2) { document.getElementById("CEmail").innerHTML="<img src='Loading.gif'>"; } else if (xmlHttp.readyState==3) { document.getElementById("CEmail").innerHTML="<img src='Loading.gif'>"; } } function GetXmlHttpObject(){ var objXMLHttp=nullif (window.XMLHttpRequest){objXMLHttp=new XMLHttpRequest()}else if (window.ActiveXObject){objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")}return objXMLHttp} and here is the check_email.asp file <font color='#ff0000' size=2><b>Invalid email.</b></font> and here is the index.html file if you will need it. i tried to make it small by deleting some lines <html><HEAD><script LANGUAGE="JavaScript"><!--function init() {var regForm = document.reg;regForm.swap.disabled = false;}function testForm() {var present_date = new Date();var emailStr = document.reg.emailAdd.value;var emailAdd = document.reg.emailAdd;var agree = document.reg.agree;var regForm = document.reg;// checks if the e-mail address is validif (emailStr == "") {alert("Email is empty!!"); emailAdd.select(); emailAdd.focus();return false;}str = emailStrfor (var i = 0; i < str.length; i++) { var ch = str.substring(i, i + 1); if ((ch < "a" || "z" < ch) && (ch < "A" || "Z" < ch) && (ch < "0" || "9" < ch) && (ch != "-") && (ch != ".") && (ch != "@") && (ch != "_") ) { alert("Your email address seems incorrect. Check the '@' and '.' should be present in the email address. Invalid characters are not allowed. Please try again."); emailAdd.select(); emailAdd.focus(); return false; }}document.body.style.cursor='wait';regForm.swap.disabled = true;regForm.action = "/register.asp";regForm.submit();}// --></SCRIPT><script type="text/javascript" src="checkEmail.js"></script></head><body onload=init() ><FORM name="reg" action="register.asp" method=post> <input name="webURL_val" value="text" type="hidden">Email address: <input name="emailAdd" value="" size="28" onBlur="if(this.selectedIndex != '0'){showCustomer(this.value, 'check_email.asp');}" > <input name="emailAdd_req" value="email" type="hidden"> <div id="CEmail">( Double check email ) </div></form> </body></html> thanks in advance
  2. information on ajax

    please everyone do i need to be online for my Ajax to work perfectly because i keep hearing of server and i know that Ajax do not have it's own server or does it. please any information on this topic will be very appreciated. thanks
  3. problem with selection from two tables!

    okay i got where the mistake was. i got it solved
  4. hii actually do not know if this is where i should ask this question but i guess i have to try.i keep seeing and reading on peoples post and articles on the internet that Microsoft access is not a good database platform for the web and it happens to be the only database platform i know. i might probably be wasting time trying to learn it. please if someone can throw more light on it and make me understand why it is not good for website development so i can learn the good one early and stop wasting my time it. please
  5. hi everyone i'm havin a problem with selecting data from two tables in a single databasei have a login page that looks like thislogin.cfm <cfform action="index.cfm" method="post"><cfinput type="text" name="username"><cfinput type="text" name="password"><cfinput type="submit" name="submit"></cfform> and the index.cfm page looks like thisindex.cfm <cfquery name="qryrDe" datasource="mydsn> SELECT UserName, password, surName, middleName FROM Users, results WHERE UserName = <cfqueryparam value="#trim(form.Username)#" CFSQLType="CF_SQL_VARCHAR"> AND password = <cfqueryparam value="#trim(form.password)#" CFSQLType="CF_SQL_VARCHAR"> </cfquery> it is always throwing an error that the username could be from any of the two tables. please help
  6. please have anyone ever heard of duduradio.com. it is a Nigerian onlie site where you can play music. how can someone build such a player? with what language even?
  7. Please Help With A Login Program! Anyone

    thanks Skemcin for the kind questure. i appreciate, but i have a login page that look like this<cfform name="login" action="info.cfm" method="post"><cfinput type="text" name="username"><cfinput type="password" name="password"><cfinput type="submit" name="submit"></cfform>and info.cfm page looks like this<cfquery name="Getinfo" datasource="mydsn"> SELECT UserName, password, Cpa, Mic, Cor, Pri FROM info WHERE UserName = <cfqueryparam value="#Form.UserName#" CFSQLType="CF_SQL_VARCHAR"> AND Password = <cfqueryparam value="#Form.password#" CFSQLType="CF_SQL_VARCHAR"> </cfquery><cfoutput query="Getinfo">#username# <br />#cpa#</cfoutput>basically what happens is that the login form collect data from user and display records on the info page based on the data.what happen is that when data entered is not found in the database, the info page will be blank. so what i want is to be able to display the records when the username and password exist and an error message when the data entered does not exist. i hope i'm making sense here. tried i explain the best way i could. thanks in advance.
  8. please i'm having problem installing php . it has refused to run or even process php pages , i have downloaded the software but i do not seem to understand the manual for installation. i'm no programmer and the words used are not familiar to at all. please help.
  9. hi everyone, i thought coldfusion was simple but i'm beginning to feel otherwise. i've been trying to work on a login program that will login the user and also display the users information from a database on the actions page based entered on the form of the calling page by the user, i know these have to do with cookies, session management and so on, but i do not know how to start, please any suggestion will be highly appreciated. thanks in advance
×