Im making an "app" and I need a way for javascript to verify the users password.
I'm using the: http://scratch.mit.edu/api/authenticateuser
url and it works fine until javascript has to read the iframe. Since it's on a different domain it can't, any ideas?
Offline
unless it's crucial that it has to be in javascript, have it use ajax to call a local php file that will authenticate it
Offline
SJRCS_011 wrote:
unless it's crucial that it has to be in javascript, have it use ajax to call a local php file that will authenticate it
it doesnt matter, I used $().load and it works like a charm!
Thanks anyway though!
Offline
I would discourage using just client-side JavaScript to authenticate a user, since people could modify the code and fake the authentication.
Offline
Magnie wrote:
I would discourage using just client-side JavaScript to authenticate a user, since people could modify the code and fake the authentication.
I'm using PHP to finalize it
PHP in my opinion is one of the best programming languages. You can use variables in strings and it recognizes it, and it's SO hard to hack into!
Offline