Posts by Ricardo • 43 points
4 posts
-
0
votes1
answer1200
viewsA: Blocked cross-origin request - PHP
Make sure the server accepts external requests, so use tools like Postman. If it works, try adding the following line in your Javascript, before requests: $.support.Cors = true;
-
3
votes1
answer71
viewsQ: Condition optimization
A comparison is possible (if 1 or equal to null) simpler than the one made in my code? @((Model.Visibilidade == 1 || Model.Visibilidade == null) ? "checked" : "")…
-
0
votes1
answer489
viewsA: Change String Color upon return of Mysql
I was able to observe two possible problems: 1º Your Switch must be before your echo, try to create a function and call it inside the loop, below an example of how you can structure: <?php…
-
1
votes1
answer87
viewsA: How do I join 3 backgrounds?
You can use the background for this purpose, as the following example body { background: url("https://dummyimage.com/210x200/1eff00/fff&text=imagem+1") left top,…