Posts by João Marcos • 21 points
4 posts
-
-1
votes1
answer98
viewsA: Run PHP within Javascript Function
Isn’t it better to do it the other way around? Put the javascript function inside the tags and call it or not using PHP. <?php echo "<script> var idBanco = id; console.log(variaveljs);…
-
1
votes1
answer304
viewsA: Timer with active session time: Cookie expiration time - autal moment
I was able to do what I wanted. With the getTime() function of the Date class. I basically take both times in milliseconds with the function and, after calculating the difference, turn the…
-
1
votes1
answer304
viewsQ: Timer with active session time: Cookie expiration time - autal moment
I am working with Angular and, when I store the access token in a cookie, I also save (in another cookie) its expiration time (30 minutes). I want to make a timer that shows the user how long he…
-
0
votes1
answer162
viewsQ: Angular 7: Biding an object that will receive a json from an HTTP GET
Let’s say I have the typed object: x: Endereco public interface Endereco { rua: string; numero: number; } And I have an http GET that will feed this variable x. The problem is that in the request I…