English 中文(简体)
采用一种或两种方式的排泄形式?
原标题:Submitting form via ajax, one way or two ways?

这两项选择较好:

1. $.post(  /ajax/action , function(data) { doResult(); }  );

*This option has to recept或s: ajax.php and action.php*

2. $.post(  /action , { typerequest:  ajax  }, function (data) { doResult(); }

*This option has only 1 recept或: action.php (if typerequest exists, returns ajax result)*

F或m without ajax looks like:

<f或m action="/action">
问题回答

这两者之间实际上没有任何区别。 了解你容易做的事情。

我认为,独立处理Ajax文字比较容易(即备选方案1)。 其他文字必须自行打印整页。 这意味着,你必须有条件地展示(例如,通过打字)并且你最终在条件上清除了许多 st。

但是,这两种方式实际上都是罚款。 了解你最舒适的东西。 正确无误。





相关问题
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 ...

热门标签