Inputs using client-side code


I have an Input AutoComplete widget and I want to pass the value of that input to a popup window, which has an input parameter to that efect.

The problem is, when you fill the input AutoComplete, its value is not submitted and therefore the variable bound to it, is empty, so I cannot pass it to the link that calls the popup.
Does anybody see a easy solution to this?