Posts by dang • 545 points
10 posts
-
2
votes2
answers952
viewsA: Resizing DIV’s with Jquery
To change the size of all others .box except the one that was clicked, you can use a combination of $('.box').not(this) with height: auto, for example: $(document).ready(function() {…
-
5
votes1
answer2249
viewsA: How to apply a Loading effect before loading the page?
If your page is in need of a progress bar, you may be able to reduce the heavier files or optimize costly processes. In fact, it’s not possible to use CSS for anything of the kind, just display…
-
1
votes2
answers436
viewsA: Query SQL condition if
You can use the function COALESCE to identify whether all fields are null (combined with is null), or if any of them are filled (is not null): select * from tabelas where coalesce(campo1, campo2,…
-
3
votes1
answer200
viewsA: Add automatic content exchange
To switch between items, you can keep a variable that indicates the next item to be exchanged and use setInterval to perform the exchange repeatedly and increment the variable. To interrupt the…
-
11
votes6
answers10591
views -
1
votes1
answer863
viewsA: Setting up an image slider
You can start by checking whether the . css and . js files are in the given paths. Then test if $(). bxSlider returns empty or exists (is the function called to initialize the slider). If it still…
-
2
votes1
answer1370
viewsA: Return only one item related to the main table
You can get the last log id with a subquery: SELECT r.id, r.responsavel_id, l.opt_aplicavel, l.txt_resposta, l.id idLog FROM respostas r LEFT JOIN respostas_log l ON l.id = (select max(id) from…
-
3
votes1
answer226
viewsA: Bring JSON result in div with jquery
The value of "sku" can be obtained as follows: skuJson.skus[0].sku The content of div can be defined with jQuery as follows: $('#ID-da-div').text(skuJson.skus[0].sku);…
-
3
votes2
answers283
viewsA: How to make divisions in the software development process
I think you can start by answering a few questions: What are all the tasks required for the project (including system components, design, purchasing software, hardware, or any resource)? Which of…
project-managementanswered dang 545 -
3
votes2
answers180
viewsQ: In the Firebug Javascript debug, how to display the current line of code?
During the Javascript debug, while the execution is stopped, if I navigate to another file in the Firebug panel, I can’t get back to the line of code that will be executed next (marked in yellow).…
javascriptasked dang 545