|
|
Drusha |
вірніиий працюючий варіант з комами, перемудрили на початку
onClick="ajaxLoad('POST','/index.php','act=ajaxload&exec=test&postcontent='+document.getElementById('addtextarea').value,'responseHTML_exec');"
|
Joe |
Має допомогти
{literal}
function ajaxpost()
{
var str='act=ajaxload&exec=test&postcontent='+document.getElementById(addtextarea).value;
ajaxLoad('POST','/index.php', str, 'responseHTML_exec');
}
{/literal}
<input type="button" id="ButtonActivation" value="AJAX" style="width: 400px;" onClick="ajax_post1();"/><br>
|
Drusha |
повертає postcontent = document.getElementById(addtextarea).value
а треба
postcontent = значення в document.getElementById(addtextarea).value |
Drusha |
[html]
<input type="button" id="ButtonActivation" value="Запустить test.php методом POST (ajax технология)" style="width: 400px;"
onClick="ajaxLoad('POST','/index.php','act=ajaxload&exec=test&postcontent='document.getElementById(addtextarea).value'','responseHTML_exec');"/><br>
[/html] |
|
|

Книга Фріланс на західному ринку
|
|