Question: I have reviewed several responses to this matter however I can not find an error in my code.

```
button1.addEventListener('click',function(e)
{
    pesquisa.open("POST","http://10.0.2.2/jobfinder/teste.php");
    var params = {
        pesquisa: box1.value
    };
    pesquisa.send(params);
});

```

Answer: 
Vera, 

Unexpected end of input error usually means there is a an unclosed parenthesis or bracket. Please post the full sample of code you are executing and I can find the problem for you.
Usually, the < SyntaxError > : *Unexpected end of input...* means that the function/code\_expression or chunk code ended, while the parser expected that there was more - perhabs unclosed apostrophe (' or inserted mistakenly,eg scale's=*.* instead of scales=*.*), or unclosed bracket ")" or "}" or *even a mispelt parameter name for a function being used*.

I have used a function, and in the call in another code did not spell rightly one of the parameters, SD=p instead of sd=p used in the function. I got the error message too.