Jump to content
php.lv forumi

maingajam vertiba no JS


Chapman

Recommended Posts

man vajag php mainigajam pieskirt vertibu no JS.

ka es to varu izdarīt?

JS:

<script type="text/javascript">

var currentTime = new Date()
var month = currentTime.getMonth() + 1
var day = currentTime.getDate()
var year = currentTime.getFullYear()
document.write(year + "." + month + "." + day)
</script>

Edited by Chapman
Link to comment
Share on other sites

AJAX

 

EDIT: vispaar es ceru, ka tu saproti, ka pa tiesho to nevar izdariit.

 

AJAX ir wild guess nezinot ko tu iisti veelies panaakt. To pashu current time var izdabuut arii ar pliku PHP. Ir iemesls kaadeelj tu tur izmanto JS?

Edited by rATRIJS
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...