Questions tagged as 'jquery'

2
answers

Large images corrupted or truncated when pulling SQL server with PHP

I'm looking for images from the SQL-server database through PHP and jQuery + AJAX. The image when it is small loads everything completinho, but when the image is a little big of this error in JavaScript:    Image corrupted or truncated: data:...
asked by 04.11.2014 / 14:35
1
answer

Fill in a jquery combobox

See a combo is not popular, that's what I do. The combo is populated, there I need to get the id and show in the combo the text referring to that ID. The ID I have in my table, just need to show the text in the combo. My jquery looks like this:...
asked by 05.11.2014 / 19:05
1
answer

Clear json array after Ajax coming from a PHP file

Does anyone know how to clean a json array via ajax coming from a php file? I have a setInterval that checks every 2 seconds and receives data from a php file (this data is brought as array json, I can see in the chrome or firefox XHR) but inste...
asked by 20.03.2015 / 15:10
1
answer

Html with jQuery load ()

I'm trying to use this function of Jquery but it is not working correctly because it does not show me anything. <script> $("#minha_div").load("Noticias.html"); </script> <div id="minha_div" width="550" height="400" style="pos...
asked by 18.03.2015 / 12:20
1
answer

Use a variable created inside an AJAX request in another function

I have a list of projects where when the thumb of a project is clicked, the script loads the images related to the project. $('.project-grid').on('click', 'a', function (event) { event.preventDefault(); var $this = $(this); var id_...
asked by 19.03.2015 / 13:51
1
answer

autocomplete jQuery UI with AJAX call not displaying the aptions

Well, I'm trying to implement the autocomplete of the jQuery UI in my code, but in a partial way it does not work as it does not display the options below the input . It performs the request correctly, but when the options are displayed on t...
asked by 18.03.2015 / 00:35
2
answers

Move element over element where cursor is

I have this code: I wanted '#hoverLayer' to move to one of the '#bts' ('# bt1', '# bt2', '# bt3', '# bt4') depending where the cursor is. Any ideas? html: <div id="bts"> <div id="hoverLayer"></div> <div id="bt1"...
asked by 07.10.2014 / 16:05
1
answer

Function $ (document) .ready () only executes once

I have an Asp.Net application that has a menu on a main screen that has 2 links, each one for a page. When I click on the first link and load the first page, the $(document).ready() function runs right and loads all the components I ne...
asked by 29.09.2014 / 20:42
1
answer

Select Specific Lists

I have the following code to return the libraries of my project in SharePoint: function retornarLista() { collList = website.get_lists(); context.load(collList);//, 'Include(TemplateType==109)' context.executeQueryAsync(onQuerySuc...
asked by 02.10.2014 / 17:58
2
answers

Problem with jQuery Validation Plugin

I am using the remote feature to check if there is a database in my database with the same cpf. More precise that this field is not mandatory is optional. So I tried to put required: false but it does not work out that possibili...
asked by 10.09.2014 / 18:21