ГоловнаКаталогБлогРейтингЕ-Пошта 
 
 
Зробити домашньою у вибране  

  Відповісти  

  Попередні відповіді  
Drusha
вірніиий працюючий варіант з комами, перемудрили на початку
Text

onClick="ajaxLoad('POST','/index.php','act=ajaxload&exec=test&postcontent='+document.getElementById('addtextarea').value,'responseHTML_exec');"
 
Joe
Має допомогти
HTML

{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]


  Логін:
  Пароль:
Книга Фріланс на західному ринку
Книга Фріланс на західному ринку

APServer | SiMan CMS | Лічильник відвідувань | Тека сайтів | Рейтинг | Форум | Download | Шаблони сторінок | Посібник Smarty | Підручник PHP | Статті/Огляди