Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ajaxVars #2

Open
mainpart opened this issue Mar 21, 2013 · 2 comments
Open

ajaxVars #2

mainpart opened this issue Mar 21, 2013 · 2 comments

Comments

@mainpart
Copy link

can you tell me please how ajaxVars method can be used?

@ajaxboy
Copy link
Owner

ajaxboy commented May 28, 2013

AjaxVars is currently being used by the uploader plugin, it basically caches variables from the plugin itself, and they are added to the url that performs the uploading process so to include all the information that the plugin wants.

There is no other use right now, but It can be used to add extra variables to the url which will perform the ajax request. The reason it hasn't been documented is because it has been used anywhere else yet.

@ajaxboy
Copy link
Owner

ajaxboy commented Aug 5, 2013

AjaxVars allow to add extra variables in the ajax request without actually being included in the url (it is later marged and adds up to the url) so you can add variables before the ajax request is made or after, and still be able to pass these variables in the url. This was necessary in the scenario where a plugin can add extra variables or action to a running request (to add or modify the behavior of an ajax request by adding to the url ), for example, the uplader plugin needed to post back the name of the files that were uploaded in the 'POST' callback, we wouldn't know what these were in a simple way without adding some sort of indicator to the url, here is the idea to pass variables was born.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants