currently I can only do it in a normal non-wordpress way.
So, does wordpress provide a solution for this circumstance?
|
currently I can only do it in a normal non-wordpress way. So, does wordpress provide a solution for this circumstance? |
|||||||||
|
|
It does, have you look at Bainternet's solution to this question and my answer to this question? To summarise, you need to post the request to the WordPress' admin-ajax url. If the ajax is for use on the admin-side then this url should already be available as the javascript variable
inside your javascript file (see my solution linked above). WordPress then files the following actions:
Where For more information see the above answers, and the Codex on Ajax in WordPress. |
|||
|
|