Questions tagged as 'javascript'

2
answers

Bootstrap Modal Loop While Opening item within Modal

I think it's a question of putting the code in the right place, but I'm breaking my head and I can not ... I tested the default BootStrap code, where it works on a button. I even put the data calls inside it and it worked. The question now...
asked by 27.08.2015 / 18:21
2
answers

PACE JS - Page Load Only

I'm using this plugin, Page.JS - link - to make a progress bar on the site. I'm calling it like this: <script src='js/vendor/pace.min.js' data-pace-options='{ "elements": false, "startOnPageLoad": true, "restartOnRequestAfter": false }...
asked by 03.09.2015 / 13:52
2
answers

Script to get tags with specific class and trigger onload

I need a JavaScript code that looks for all img tags with class load and enter the onload="loader(this)" function on them. The idea here is that all images with class load are given the function of onload th...
asked by 25.04.2014 / 00:51
2
answers

problem converting text to lower case

I have created a function that converts the text to lowercase inside the input, the problem and that when I inform an input with value, and having to change something the cursor jumps to the end. Does anyone know how to solve this? My code:...
asked by 23.02.2016 / 19:47
2
answers

How to submit a form automatically when the inputs are filled out?

I have two input in a form, which is actually a score of a game. I want you to send this board with focusout() when the user populate the two fields of form . My form looks like this: <form method="post" id="form1" ac...
asked by 23.02.2016 / 19:11
2
answers

How to change the data type in the $ .post request in jQuery?

var envio = $.post("processamento/busca.php", { unidade: $("#unidade").val() }) I have this request, I would like to change the datatype to json, in ajax has a datatype parameter, but I do not know how to use it in $ ....
asked by 25.02.2016 / 20:57
1
answer

Uncaught SyntaxError: Unexpected token

I get this error in the 3rd line of this code to make a lightbox appear with an image by clicking on it, using fancybox 2, with CakePHP. I can not understand why this is happening, can someone help me? <script type="text/javascript">...
asked by 03.04.2014 / 15:33
1
answer

Chrome notification

Does anyone know or have ever used this chrome notification and know how it works? Because when I try to use webKitNotifications.createHTMLNotification() it error ReferenceError: webKitNotifications is not defined can anyone h...
asked by 27.03.2014 / 21:54
2
answers

Casperjs Selector [CasperError]

I want to test using CasperJS . I want it to click the login button. I have the following menu: <ul id="menu-top"> <li class="0 first"><a title="" href="/empresa">Empresa</a></li> <li class="1"><a tit...
asked by 16.04.2014 / 21:23
2
answers

Preview image before uploading + ImageResizing.net

In a few minutes looking for a way to show an preview of an image before uploading it, I found the great solution: $("##ID DO INPUT FILE##").change(function (event) { var reader = new FileReader(); $(reader).load(function (event) {...
asked by 04.04.2014 / 20:49