I’m new the JQuery. I am using a closed framework, that allows me to add code, but not to change some of the behavior.
In order to add functionality, I need to hook into a specific Ajax request and either redirect it to my URL (so i can change the data there and be a proxy), or change the parameters of the request at the client side.
Is this possible with JQuery? And if so, how?
The original event is fired after a text input box is being updated.
Update:
After further inspection, it seems the textbox is manipulated using the JQuery Autocomplete plugin. I am trying to translate the words returned from this ajax request. Basically the user enters text in one language, and i want to translate that to english (the translation itself isn’t the problem) so the autocomplete will use the english words, and then i want to translate from english to the original language, to be displayed in the text box and the hovering div.
I have used the jQuery autocomplete plug-in to do something similar, although not in a scenario where I am dealing with a “closed framework”.
You will be able to easily accomplish what you want by using the .setOptions() method on the autocomplete object after it has been initialized. So your code will go something like this (untested! pseudocode!):
check out the options: http://docs.jquery.com/Plugins/Autocomplete/autocomplete#url_or_dataoptions