Questions tagged as 'jquery'

0
answers

Identifying data format in web service

Good evening! I am implementing a service on a system for other systems to consume. This system consumes data in XML and JSON formats. I want to know if you have any way to identify when the user sends a string in XML format. Here's my code....
asked by 07.07.2016 / 22:24
1
answer

Refresh DIV without refresh with Ajax

I have an ajax that sends through post , some information in PHP to another page. I save this information in session . I would like to update the div where I have a modal. In case, this modal would have to refresh without g...
asked by 08.07.2016 / 21:09
0
answers

Doing scrape on Instagram

I would like to know if it is possible to "grab" the links of all the photos of an instragram profile without using Api? With the code below I can only get the 20 most recent photos. $.getJSON('https://crossorigin.me/https://www.instagram.c...
asked by 02.08.2016 / 17:59
1
answer

Change the text according to the slide image

Hello, I'm messing around with HTML / CSS, I've been making a slide and I've had a doubt, probably from JavaScript. I made a mini slide of featured products, and on the side of this slide, has the text referring to the product. Is there an...
asked by 02.08.2016 / 14:29
0
answers

Upload with AJAX, do not go with files with more than 2 megabytes

I have a UPLOAD code of images with AJAX: $.ajax({url:"php/upload.php", type:"POST", data:new FormData(this), contentType:false,cache:true,processData:false,success: function(resposta){ It only works with images up to 2 megs, more than that...
asked by 27.06.2016 / 16:49
1
answer

"Uncaught SyntaxError: Unexpected token:" error when trying to fetch data in JSON format from another URL

I'm trying to get data from a URL that returns JSON to use on my page. Apparently I'm getting the data, but for some reason I get the following error in the browser console:    "Uncaught SyntaxError: Unexpected token:". For...
asked by 26.07.2016 / 03:27
1
answer

JQuery - append in element generated by prepend in a each

How do I add elements to an element that was added within an each? Here's an example: $.each(data.id, function(i, item) { $( ".lado" ).prepend("<div id='tes'>" + data.id + "</div>"); if...
asked by 27.07.2016 / 20:13
1
answer

Capturing actions: Scroll Down and Scroll Up

Is there any way in jQuery to capture the events of "ScrollDown" and "ScrollUp"? I tried this way: var lastScrollTop = 0; $(window).scroll(function(event){ var st = $(this).scrollTop(); if (st > lastScrollTop){ // downscroll...
asked by 13.07.2014 / 21:36
1
answer

Speed up animation - js

Hello, I would like to know how I do in js or if you have some plugin that facilitates those unique page animations. You click on the menu and it goes down to the section you selected, I can do animation with a fixed speed, but I wanted to make...
asked by 28.07.2016 / 21:56
0
answers

Login jquery does not load page after authentication

Please, this function does not load the page. The return is correct, the code enters the if loop, but it does not load the page that should be the location. What can it be? $('#btnLogin').click(function(){ var login = $('#inputEmail...
asked by 03.06.2016 / 04:16