English 中文(简体)
如何以麻风气功能提交表格?
原标题:How to submit a form in an ajax function?

我的神职司通常负责这样的工作:

function ajaxCallback(url,functionToRun)
{
if (window.XMLHttpRequest)
  {// code for new browsers
  myXMLlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6 and lower
  myXMLlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
myXMLlhttp.onreadystatechange=functionToRun;
myXMLlhttp.open("POST",url,true);
myXMLlhttp.send();
}

function getItemList(rep, sort_by_column, order_by)
{

ajaxCallback("scripts/get_item.php?rep="+ rep + "&sort_by_column=" + sort_by_column + "&order_by=" + order_by,function()
  {
  if (myXMLlhttp.readyState==4 && myXMLlhttp.status==200)
    {
    document.getElementById("main_area").innerHTML=myXMLlhttp.responseText;
    }
  });
}

我想用 a子在这个页上提交一个表格,我看看一些辅导/问题,但都说是“Query”,但是,如果把这一表格作为另一个可变的方式列入,而没有 j? 我可以找到一条路,但我认为我可以检查一下,看看看一下,这样做是否有些简单。

最佳回答

ure式解决办法

document.getElementById( f或mid ).submit();

document.f或mname.submit();

EDIT:你应当把 Java本塔添加到你的问题中,并删除“php”标签。 它确实与购买力平价有任何关系。

问题回答

暂无回答




相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval ...

热门标签