Results 1 to 2 of 2
Apr 5, 2011, 07:39 #1
- Join Date
- Mar 2011
- 0 Post(s)
- 0 Thread(s)
Error in IE: return statement outside of function
i'm a beginner to java script. can anyone help me in this with this.
if iam the user i want to insert a username in the textbox and it check whether it exist (i can do this in php code) or not..if the username exist it focus on the
Can anyone give me an idea.Thanks a lot..
Apr 5, 2011, 15:25 #2
- Join Date
- Jan 2007
- Christchurch, New Zealand
- 83 Post(s)
- 3 Thread(s)
To achieve that, you start from the very bedrock basics. A form submits to a php page, and that php page performs the checks, and updates the page.
Once those basics are in place, you can extract the part that performs the checks to a separate file so that it can be included, and also so that you can send an AJAX request to that same file.
The book Bulletproof Ajax is the best one for learning how to do what you want to achieve. The web site also provides all of the code and working examples too, of which the Contact Us example from Chapter 6 is a fully working example of the type of technique you wish to use.