I do web development from SQL to CSS, and I confess that all too often, when I want to interact with the server with AJAX, I create another application.
I confess, I hadn't thought about this, but the more I think about it, the more I know this is the right thing.
Instead of this:
I confess, I hadn't thought about this, but the more I think about it, the more I know this is the right thing.
Instead of this:
{ data:{abc:123} }
I should have
{ action:"upload_keys",data:{abc:123} }
or whatever I'm doing, and then have my
I will endeavor. to do better in the future.
ajax_handler.cgi
look for action
and handle depending on that value.
I will endeavor. to do better in the future.
No comments:
Post a Comment