Questions tagged as 'jquery'

1
answer

PDO showing connection data if trigger of catch within the alert (result)

Because in my% ajax%, the catch of alert(result) is showing my connection information to the database as shown in the following image: link Code: $pdo = new PDO("mysql:host=localhost; dbname=meubanco", "meuuser", "minhasenha");...
asked by 30.08.2014 / 20:49
3
answers

Audio API to calculate the duration of several songs

I'm working on an player and I need to know how to calculate the length of multiple MP3s that are selected on the user's machine by a input of type file ? EDIT: Follow my current code and it does not return the correct val...
asked by 10.09.2014 / 22:05
3
answers

Get original image dimension with JavaScript

I have an image uploaded to my HTML page within the tag <img> , is there any way to know its original file size by JavaScript >? Let's say I want to give console.log(larguraImagem, alturaImagem); .    Note that the s...
asked by 22.09.2017 / 16:18
2
answers

Namespaces for animations in jQuery

For those of you already familiar with using jQuery, using the jQuery.fn.stop function is a simple and common thing when working with different animations on a common element. My question is about creating jQuery extensions. I have alr...
asked by 12.03.2014 / 14:04
2
answers

Select a checkbox and do not sort the dataTables

I'm using dataTables and in one of the columns I've placed a input:checkbox so that the user can mark all columns or unmark, remembering that in the columns I have how to do the ordering, and in that column I also have this, since I mus...
asked by 12.03.2014 / 16:02
2
answers

jQuery function with fancybox - I'm having refresh problem

When you open or close fancybox (I am a programmer php but starting at Javascript with jquery ), in> refresh and back to the top of the content losing the focus of the place that the content was when it triggered fancybox . Th...
asked by 17.02.2014 / 12:23
3
answers

Button next to text bar with Bootstrap

I'm trying to create a very simple form with Bootstrap consisting of just a text bar and a browse button. But even though they are both in .form-group , text bar has a width of 100% and the button is down, instead of appearing to...
asked by 11.03.2014 / 13:58
2
answers

Get CSS by JavaScript

Is there any way to get the list of all CSS applied to an element by JavaScript ? Example: Let's say I have the following HTML element: <div id="mega">Content</div> I also have CSS : #mega { width: 300px; heigh...
asked by 03.11.2017 / 13:05
2
answers

Change data without refresh with jquery

I confess that I do not get much of Jquery and so I need help. I would like to update an information of a product, but without having to refresh the page. Example.: When the user clicks the Main Photo link Automaticallychangetheimagebel...
asked by 04.11.2017 / 13:52
1
answer

How to repeat an ajax query that gave error?

The problem is that sometimes the query runs out of time or gives a real error, so I want to automate it. $.ajax({ type: "GET", url: 'inserindodados.prisma', data: $('#FormularioDescoberta').serialize...
asked by 20.08.2017 / 21:42