English 中文(简体)
纽托语
原标题:button submit with 2 different behaviour
  • 时间:2010-05-25 03:28:20
  •  标签:
  • javascript

如何设定一个有提交年份的变量,以区别2种行为,因此,提交国将首次在数据库中加入,第二次更新数据库价值。

感谢。

最佳回答

取决于你们的执行情况,如果是 s。

如果说是麻风,你想说明一下一下,它在某些地方做了更新。

<input type="hidden" id="formUpdate" value="0" />

第一部分

document.getElementById( formUpdate ).value = 1; // and on the submit, check if it s 0 or 1

如果送入服务器,如果再次提交表格,你可以将表格列入代码,那么,你可以获得“请购书”(例如,与网址,任何途径)。

希望有助于

问题回答

暂无回答




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签