Questions tagged as 'jquery'

1
answer

How to add a class in html elements of a string?

The scenario is as follows: I dynamically add an html. Once the html is generated it gets +/- like this: var templateHtml = "<div class='bola'>Bola 1</div><div class='bola'>Bola 2</div><div class='casa'>Casa 1<...
asked by 16.01.2015 / 14:33
1
answer

Jsfiddle {"error": "Please use POST request"}

I'm testing this code in JSFiddle and I have the answer:    {"error": "Please use POST request"} Here this code DEMO I followed the code below: Html <!DOCTYPE html> <html lang="en"> <head> <script sr...
asked by 11.07.2014 / 02:12
1
answer

Close internal modal bootstrap without closing external mode

I created a form using the Bootstrap Framework that opens in a Modal and it has a list of data that can be deleted, but require a confirmation. It happens that by clicking the "Exit" button or the "x" of the confirmation modal, both it and th...
asked by 15.07.2014 / 02:55
2
answers

Retrieve URL variable and forward in AJAX

I would like to know if you have how to retrieve a variable from the URL to another page and return the result in load . I am using the following script that normally retrieves the variable, but does not move to the next page. It's just...
asked by 11.07.2014 / 19:18
1
answer

Do .append () before .load ()

I'm using .load() to load content (partial) from controller of my application. What I wanted to do before .load was to add code html while loading a partial. For this I tried to .append before .load :...
asked by 06.05.2014 / 12:40
1
answer

Vertical bars valued with flot.js

Hello. I use flot.js to plot a "Stacked Bars" chart example but I wanted to insert the values of the bars "inside" the bar, not simply the tooltip. Does anyone know how to do it?     
asked by 12.03.2014 / 05:04
2
answers

Image Slider with JQuery

I created a small gallery of images using this structure: <div class="slider"> <div class="dest"> <img src="http://www.imagebrowse.com/wp-content/uploads/2013/08/astonishing-aristic-mobile-background-wallpaper-background.jpg...
asked by 03.03.2014 / 23:59
1
answer

Error using Jquery UI and Bootstrap

I'm using Draggable of Jquery UI What happens is that when I put the element into the content div, I can not remove it anymore And just remove the css from Bootstrap that it works on. Follow the JsFiddle     
asked by 21.11.2014 / 19:01
1
answer

Receiving Json array in PHP [duplicate]

I have the following code on the application side: function enviaMensagem() { var send = "http://appchat.host56.com/mensagem.php?jsoncallback=?"; $.post( send, {"table": [{"d":1, "p":1, "m": "1"},{"d":2, "p":2, "m": "2"},{"d":3, "p":3,...
asked by 14.11.2014 / 16:25
1
answer

Return values of elements without a given class

I have a list with images, and I need to return a value of those images to then assign some commands. The problem is that in some <li> there will be a class named off and needs to be "discarded" from the order. Sample code...
asked by 15.10.2014 / 15:18