javascript - Interact with API - How? -


updated question in order make more clear:

i'm interacting api in order crud operations.

now should call api directly in jquery/javascript code, , wrap post requests actions server side? or should throw both , post requests api server side, , call actions @ server side?

your question little unclear, sounds running in cross-site-scripting issue. can not issue ajax request via javascript domain other 1 current page came from. jquery supports every http method including post, if try issue request different domain, browser disallow request. there workarounds this, such jsonp.

please clarify original question if not issue.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -