Questions tagged as 'jquery'

1
answer

jQuery Autocomplete plugin 1.2.3 limit for query [closed]

I use Jörn Zaefferer's jQuery Autocomplete plugin 1.2.3. I would like to know how to do the query only if I enter more than 3 characters. Call the plugin like this: $("#suggest5").autocomplete('completar.php', { width: 60...
asked by 01.03.2016 / 20:39
1
answer

Show Mysql data inside JQuery

I have a file called somar.js where it contains some JQuery commands, including the sum of the packets * daily exchange value, but these values come from the database. To prevent the administrator from registering on the system and manually in t...
asked by 28.12.2015 / 15:05
1
answer

Error returning AJAX data

My code is working to the point where ajax has to get the answer to print on the screen, the insert is normally done in bd, if it changes the return $ ("# requests"). for $ ("# requests"). html (data); does it work by returning serialize, is som...
asked by 22.02.2016 / 20:43
1
answer

Include variable in json result [closed]

if($_GET['operacao'] == 'banners'){ header('Content-Type: application/json; charset=utf-8'); $rs = $mysqli->query("SELECT foto AS image FROM banners"); $registros = mysqli_num_rows($rs); $arr = array(); $url = "http://www...
asked by 11.12.2015 / 18:20
1
answer

Catch click event a tag when it has not yet loaded in $ (document) .ready MVC - RAZOR [closed]

I dynamically create in my View via razor data that is populated in a table. In my last td I have the following elements: <td class="row-actions fixed-col"><a name="excFaturamento"><i class="fa fa-times"/></a></td...
asked by 10.12.2015 / 18:34
1
answer

Change values of a div

I have a combo when event occurs onchange it performs a query on the database with the selected value and inserts into a div values, the problem is that when I apply $('.minhaDiv').html(resultado) it returns me only the last...
asked by 14.12.2015 / 17:25
1
answer

pass data from jquery to the controller and return values

Would you like to know how I could do this? My controller method is this: public UserValid RetornaUsuario(String matricula) { UserValid valid = new UserValid(); UserValidDAO dao = new UserValidDAO(); valid = dao.Busca(...
asked by 03.02.2016 / 14:17
1
answer

Jquery captures div id in scroll and changes title

I have a page with a title and several divs with different subjects and IDs of my own, I would like that when I go down the screen, jquery captures the ID that is visible and places it in the title.     
asked by 02.02.2016 / 02:09
1
answer

No 'Access-Control-Allow-Origin' header using php

I'm trying to make a simple request via localhost to an external server, but to no avail. Can anyone help me? $(function(){ jQuery.support.cors = true; $.ajax({ type: 'get', crossDomain: true,...
asked by 13.02.2016 / 04:59
2
answers

How to do Menu Dropdown with popping effect

$(function () { $(".menu2").hide(); $(".open").stop(true, true).mouseover(function() { $(".menu2").fadeIn(100).animate({ top: '-50' }, 400); }); $(".open").mouseleave(function() { $(".menu2").stop(true...
asked by 17.02.2016 / 01:48