Im posting here my two problems at this moment with php and AJAX... yes, they are 2..
1-
I want to have on the register form, that thing that displays a loading circle, and then it displays if the username is taken or not.
Right now I am using a code I found in this web: http://www.shawngo.com/gafyd/index.html
It works for them, so I thought that it had to be right!
But they use a csv file, I dont, I use a MySQL database, what i dont knwo is if it matters! I have checked my check.php file using a form to post the username, and it worked, it echo's in a span the result.
But it is not working!
Here is the url: http://kdams.es/register.php
If you know of a better way of achieving this other than the one I am using please comment! and of course i'd be really reateful if someone could correct the current code!
2-
I would like to add a progess bar to the photo upload system, and I have found the jQuery plugin that will do the trick (http://digitalbush.com/projects/progress-bar-plugin)
Now the thing is, they use a timer for the progress bar, I want to display the real progress, but I really dont know how to have javascript know how much it will take php to upload the pic!
Any help will be really appreciated
thanks!
1-
I want to have on the register form, that thing that displays a loading circle, and then it displays if the username is taken or not.
Right now I am using a code I found in this web: http://www.shawngo.com/gafyd/index.html
It works for them, so I thought that it had to be right!
But they use a csv file, I dont, I use a MySQL database, what i dont knwo is if it matters! I have checked my check.php file using a form to post the username, and it worked, it echo's in a span the result.
But it is not working!
Here is the url: http://kdams.es/register.php
If you know of a better way of achieving this other than the one I am using please comment! and of course i'd be really reateful if someone could correct the current code!
2-
I would like to add a progess bar to the photo upload system, and I have found the jQuery plugin that will do the trick (http://digitalbush.com/projects/progress-bar-plugin)
Now the thing is, they use a timer for the progress bar, I want to display the real progress, but I really dont know how to have javascript know how much it will take php to upload the pic!
Any help will be really appreciated
thanks!
