Posts by Sergio • 191 points
12 posts
-
1
votes2
answers668
views -
1
votes0
answers52
viewsQ: Connection via socket, only when necessary
I have a web application that needs to update some values frequently, as the changes must be available almost in real time. For this, I run via ajax a refresh.php routine every 15 seconds, which…
-
0
votes1
answer150
viewsA: Problem in AJAX query in a loop
I believe that if working with Prefects solves your problem: var deferred = new $.Deferred(); var pipe = deferred; $(".panel-pergunta").each(function () { pipe = pipe.then(function () { ...seu…
-
1
votes2
answers2024
viewsA: How to take data from a form from another page
You have to send the data to the server, and then send that data back with your main page. To do this, it is not possible using pure html, you must use php or some other language on the server to…
-
0
votes4
answers296
viewsA: Losing array elements when switching pages?
Each time you submit the form, php will run again, that is, all variables are created again. You should store the previous values somewhere, for example, create a variable in the session and each…
-
1
votes1
answer76
viewsA: Complex search with Mongodb
Solved using regex, posting the answer to interested: db.docs.find({items: {$elemMatch: {value: /tex/i}}});
-
1
votes1
answer76
viewsQ: Complex search with Mongodb
I have a structure in mongoDB that has quantities of different items within an array called "items". To do the search, I am using the command below, which first transforms the content into a string,…
-
0
votes2
answers438
viewsA: Bootstrap modal "data-Dismiss" bugging with position="Absolute"
Instead of position:absolute, use float:right, and margin-right and margin-top, instead of right e top.
-
0
votes1
answer78
viewsA: footer hiding div with scrollbar when resizing the browser from top to bottom
Instead of using your 60% scroll, use something like: heigth: calc(100% - Npx); Where N is the sum of the remaining parts. Don’t forget that browsers use the Calc differently.…
-
0
votes1
answer83
viewsA: How do I embed text and return from the last to the first slideshow image?
To go back to the first one just do (in javascript, if I’m thinking correctly): cont++; // incrementa cont if(cont == 9) { cont = 1; }; I believe that also solves the problem of the text, so I…
-
0
votes1
answer61
viewsA: Textarea Unicode problem in IE8 and MVC2
Check the "Character set" of both the server and the page being generated. They should be the same, for example, utf8. If they’re not the same, you’ll be in trouble. On your page, for example, you…
-
1
votes1
answer726
viewsA: Open program through link
Create a new mime type on the server. When you select the link, the server can send the information back to the client with the mime type associated with Putty, or the program you want. A complete…