Skip to content
Advertisement

Tag: jquery

Newbie question: Static countdown timer based on server time

A client wants a launch page which will show a static countdown and when the countdown is finished the user will be redirected to another page. The launch is like an event for all users, so I want to make it hard for the user to access the redirected page before the countdown reaches zero – therefore I think it

Json corrupt variable by addition of a character

I make an Ajax call to a server side php script. The php should return a json variable like this : {“erreur”:”Pas de diffusion possible avant le 20-11-2020″,”title”:”Diffusion”} And I got that : s{“erreur”:”Pas de diffusion possible avant le 20-11-2020″,”title”:”Diffusion”} Where does this ‘s’ come from ? A chunk of my code on the server side (‘DiffuseOffre.php’): The javascript on

Hiding “write reply” textfield under each comment

I’m working on my school project which is gallery, a clone of flickr and unsplash really. Right now I was working on comments system which works rather well all things considered, but I also want to add replies under those comments and having textfields under each comment seems clunky, so I wrote small jQuery script for it: This is test

Advertisement