D
D
Dmitry Belman2016-08-08 14:20:21
SQL Server
Dmitry Belman, 2016-08-08 14:20:21

How to pass current time to db on button click?

Good day to all.
It is necessary to write a calendar for employees, with the help of which those who come to work could confirm their arrival.
Thus, we need a button that, when clicked, sends the current time to the database (mssql).
I understand that this is most likely very simple (no forms, only time and user ID taken from Sharepoint), but I have never come across ajax, and I barely know js.
Can you advise what to read / the general concept of how to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
trushka, 2016-08-08
@all_bcs_of_you

You can make a form with one submit, and specify a hidden iframe as target on the same page

<form target="tgtframe" action="{адрес скрипта}">
<button>я тут</button>
</form>
<iframe name="tgtframe" style="display:none">
Something like this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question