Jump to content

AJAX ..


ChrisColeman

Recommended Posts

I am developing a plugin, which typically handles a lot of AJAX calls.

Although it does work successfully I feel that there's probably a better way ..

Is there a way to invoke an AJAX hook, this would be, I imagine a specific KEY on the POSTed AJAX URI ?

Many Thanks, Chris Coleman.   

Edited by ChrisColeman
Link to comment
Share on other sites

You are saying that your plugin adds to CubeCart's router? Or does it add to CubeCart's query listener? The router delivers a whole page, the listener responds with either a JSON string or HTML snippet. (There is also a do-something listener that is not meant to return anything.)

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...