Dymond
Dymond

Reputation: 2277

Multiple xmlhttprequest

Is it possible with javascript ? or do I need to create two senders ?

because this don't work

xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xmlhttp.send("textBox="+textBox.value);
xmlhttp.send("textBoxID="+textBox.parentNode.id);

Upvotes: 1

Views: 408

Answers (1)

The Alpha
The Alpha

Reputation: 146191

You may try this

xmlhttp.send("textBox="+textBox.value+"&textBoxID="+textBox.parentNode.id);

Send multiple params together.

Upvotes: 1

Related Questions