Ok, I can send params now, but I have a problem with the charset. If I send 
"E63H 総組立" as the value of exchange_revision, I receive "E63H �D�".

My code:

<html>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script>
function httpPost(theUrl, Params) {
    var xmlHttp = null;
    xmlHttp = new XMLHttpRequest();
    alert(Params);
    xmlHttp.open( "POST", theUrl, false );
    xmlHttp.setRequestHeader('Content-type', 
'application/x-www-form-urlencoded; charset=UTF-8');
    xmlHttp.send( Params );
    return xmlHttp.responseText;
    }
</script>
<button 
  type='button'
  onclick='javascript:
  var params = JSON.stringify({parameter: [{name: "exchange_revision", 
value: "E63H 総組立"}]});
  httpPost("http://192.168.5.230:8080/job/Generate new reference 
files/build?token=toto", "json="+params)'>
  Start matrix
</button>
</html>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to