English 中文(简体)
如何自动更新来自html的无线电塔顿的数据库?
原标题:How to automatically update database from html form radio buttons?

我正在建造一个灯塔,作为其中的一部分,我有一页显示我数据库中物品清单。 我希望其中每一个国家都有一个无线电台,使用户能够选择一个选项。 唯一的渔获量是,我不想提交纽特,这样,当纽伦价值发生变化时,数据就会自动改变。 这是可能的吗? 如果我是怎样执行,那是否必须通过 j子做? 如果是的话,请在你的答复中详细说明(我对javascript不满意)。

最佳回答

这是一项艰巨的任务,你肯定需要获得 j。 然而,这只是一个开端。 你们应该使用一个javascript框架,像你们大多数项目一样,因为这个框架使一切 j都更加容易,使浏览器的兼容性成为天花。

然后,你想要下载/下载Dajax(www.dajaxproject.com)。 这使你能够把你的看法登记在“达哈克斯”方法上,这使你能够把他们从该页上的 j印上。

You would have the buttons in HTML on the page. For the onchange property, you would call a javascript method, passing it the current value (this.value). That javascript method would call a dajax method sending it a return callback method. The callback method is a javascript function that will be called when the Dajax method is done. If you want the callback method to do something and have any parameters, you would return a simplejson.dumps() to the callback method from your Dajax view. In your case, you would probably not need to pass anything back to the callback method, since you are simply saving the change to the database.

问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签