I try to do something that seems simple to me but I found a problem:
After inserting my JavaScript file, I have an Ajax request to insert the IP and the timestamp at the time the code is read. I added with a sleep (2) and I do a query on my table to check if this is ip with a timestamp> = 2 in my table which shows me that the Ajax request is past and that JavaScript is enabled.
However, the sleep stops the script, then insert my looks and fits before the select is not the pa line must be present to refresh my select find good but not at the time I desire. I do not want to reload
Is there anyone of you who have an idea, the goal is then to have a session variable that tells me if JS is enabled.
Please help if someone see a solution other than the noscript tag rather in the spirit of what I would do.
Bookmarks