Questions tagged as 'javascript'

1
answer

How to get multiple data from a page and display separately with AJAX

I have a program where he creates cookies with the data that the user typed in the <input> fields. This all through AJAX. So far no problems, but in this file I make the request, it returns me the data of the cookies created. What I...
asked by 29.08.2014 / 20:33
1
answer

Refresh on page when giving resize

I have my function to resize, function resizeGrid() { $(".divGrid").css("height", ($(document).height() - 325) + "px"); } $(resizeGrid); It works as I would like, but when testing in the browser, I always have to give f5 s...
asked by 20.08.2014 / 21:55
1
answer

Streaming (video) does not pause when refreshing the page

I need to make a player (streaming) when navigating between pages, it does not pause, as if it were something external, but it has on every page, an example, it would be the facebook chat, that we can go changing page , and it always stays the s...
asked by 29.08.2014 / 16:04
1
answer

Droppable jQuery event does not work

I have the following code to do the Drag and Drop event: $(".device-profiles").draggable({ revert : true, start: function(event, ui) { dragColor = $(this).attr("data-color"); console.log("dragColor: " + $(this).attr("da...
asked by 05.09.2014 / 19:14
1
answer

How to make a text transition (in array) inside an HTML element with fade and delay?

In short, I want an algorithm similar to the subtitle transition but no audio or video, just a text transition with delay and fade . Scenery: I have a array with 20 arrays , each array consists of 2 values: the first containing t...
asked by 21.02.2015 / 02:55
1
answer

How to get value from a RadioButton field in JS?

I can not get value of my field RadioButton @Html.Label("Ativo") @Html.RadioButtonFor(v => v.Ativo,"S", new { name="ativo"}) @Html.Label("Inativo") @Html.RadioButtonFor(v => v.Ativo,"N", new { name="ativo"}) <script>...
asked by 20.02.2015 / 17:12
1
answer

Pass ID by parameter in modal window

I was wondering how can I pass a user's ID parameter to a modal window using php . I'm using bootstrap to use its modal. In this window would open a form with information of the client, to be able to be changed and saved a...
asked by 19.07.2014 / 02:51
1
answer

How to use a script with variables? JS

I want to create a custom JavaScript: Ex: var lx = function(addr){window.open(addr, '_self'); } But it did not work. I used up visual studio 2012 to edit this script but html did not recognize the function lx('www.google.com');    ...
asked by 08.07.2014 / 14:01
2
answers

Positioning controls with bootstrap not aligning

I need to do the following: Label on top and control under the labels. I took the example from the twitter bootstrap page itself and it is not working. Below my code: <div id="tabs-1"> <form role="form"><!--A tag ul c...
asked by 25.06.2014 / 19:24
1
answer

Canvas is not showing image with drawImage ()

I have an index.html with the following code: <!DOCTYPE html> <html> <head> <title> HTML 5 - Airplane Game</title> <link rel="stylesheet" href="gamestyle.css"/> </head> <body> <ca...
asked by 26.07.2014 / 00:32