Questions tagged as 'javascript'

1
answer

How to stop $ (window) .scroll in an on-demand query

I make an on-demand query on my page, I bring the information from the database as the user uses the scroll. $(window).scroll(function(evento){ evento.preventDefault(); var init = $(".canal .lista ul#dem").length; carregar(init + 1...
asked by 17.07.2015 / 22:33
1
answer

Return to line TEXT SVG

I'm creating a text svg dynamically, and I want to return the middle line of the two variants when I print. I tried the "\ n" and the "br" but it does not make me. var text_h_fin = document.createElementNS("http://www.w3.org/2000/svg", "text")...
asked by 23.05.2015 / 20:03
1
answer

Custom Menu on site

I would like to have at least one north of how to make a custom menu as in this image. (In the image, the mouse is hovered on Sustainability.) The vertical menu, with the submenu in the sequence, is fine. The problem comes in the seq...
asked by 26.12.2014 / 09:50
4
answers

What is the difference between the functions var name = function () and function name ()?

I see in some codes different ways of defining a function, but I do not know the difference if it exists. What is the difference between these functions? Function 1 function teste(valor){ return (valor > 1) ? true : false; } Fu...
asked by 18.04.2014 / 00:35
1
answer

Implement Dependent Select with AJAX and JQuery on Zend

I'm new to programming and I'm setting up a small system for a specific collection control. But I need to fill some fields without reloading the page (AJAX) and others when select is set, but I'm not sure how to do this. I'm posting th...
asked by 23.06.2015 / 21:42
1
answer

Select cities and states on the site [closed]

I'm setting up a site , and on the home page I've created a select for states and cities, the problem is that the homepage site is crashing very. Does anyone know how I can do this select without crashing the site ? Or maybe...
asked by 22.06.2015 / 18:53
2
answers

Refresh to a div

I'm having trouble applying the following Javascript code to my platform: <script> var $scores = $("#refresh"); setInterval(function() { $scores.load("index.php #refresh"); }, 30000); </script> Because the...
asked by 22.06.2015 / 14:01
1
answer

Affix does not stop in the footer correctly

I'm trying to create an Affix with Bootstrap but I'm having trouble stopping it correctly in the footer. It buga, and the .affix-bottom class is not applied correctly. When I step from the offset bottom by scrolling it to normal, but...
asked by 24.09.2014 / 18:43
3
answers

How to mask the URL after hiding a GET with history.pushState? [closed]

I have a search page on my system. Due to pagination I am using form data via GET. However, when I go to search something, the URL is, for example: http://sistema.com/busca.php?nome=silva Researching I found a "workaround" that after doing...
asked by 16.10.2014 / 21:51
0
answers

Error Facebook plugin does not count amount of comments

I used the facebook plugin on my website, for like, share, facepile and comments. Everything works, with the exception of the comment counter in each post, all the codes are correct, I used this Portuguese script that facebook offers: <...
asked by 29.07.2014 / 03:52