Questions tagged as 'javascript'

2
answers

Save to database using jquery

I need to get the data typed in my modal window and set it in the database. Below are the pages. listUser.php <div class = "conteudo"> <div class="container-fluid"> <div align="left" id="in...
asked by 01.06.2015 / 21:49
2
answers

Set the value of the input whose name has brackets

As described in the title, follow the example below: ---- HTML <form id="nameGenderForm"> <table id="teste"> <tr> <th >Name</th> <th >Gender</th> </tr>...
asked by 08.11.2015 / 18:16
1
answer

Difference between Synchronous AJAX and POST / GET

Is there a performance and performance difference between a Synchronous AJAX and a POST / GET connection? Both lock the thread (the browser freezes) but there are other differentials between the connection types?     
asked by 04.11.2015 / 11:33
1
answer

Leave the center bar using dragdealer.js

I'm using this library to create bars that the user can interact with: link . I would like the drag bar to start at 0, in the middle of the bar: However,Ihaveitasfollows: HTML:<divid="just-a-slider4" class="dragdealer"> <div sty...
asked by 08.11.2015 / 18:04
2
answers

array of 100 positions for 10x10 matrix

I have a one-dimensional array of 100 positions and how do I draw a 10x10 array using a for loop. <!DOCTYPE html> <html> <body> <p id="demo"></p> <script> var x= []; for (i=0; i< 100; i++) { x[i] = "X"...
asked by 08.11.2015 / 15:35
2
answers

How do I count the number of rows within a div that does not have a "line constraint"?

How can I count the number of rows in a div that does not have a \n or a <br> at the end of each row? Exemplifying: var el = document.getElementById('theDiv'); lines = el.innerHTML.replace(/ |^\s+|\s+$/g,'').sp...
asked by 20.05.2015 / 16:53
1
answer

Variable does not call function, WebWorker, and Scope functions

I have serious problems, I have a WebWorker that imports a file, but at the time of calling the function with the variable does not work. See: importScripts( './libs/RSA.js' ); self.onmessage = function (e) { JSEncrypt.getKey(functi...
asked by 17.04.2015 / 23:38
1
answer

JavaScript function to get the next date in a calendar

I have several calendars registered in my database, each calendar has its particularity. I have a screen that includes a file and through dropdown I choose the calendar that the periodicity of this file will respect. Eg Daily, Weekl...
asked by 28.04.2015 / 19:28
1
answer

How to define a dynamic folder in CKFinder?

I'm breaking my head to define a dynamic folder when opening a CKFinder POPUP . See the code below: // config.js var finder = new CKFinder(); finder.popup(); // CONFIG.PHP $baseDir = __DIR__.'/../../biblioteca/'; $baseUrl = ''; I want it...
asked by 15.04.2015 / 15:37
2
answers

How to keep the scroll at the bottom of the page?

I need to keep the page always with the scroll positioned at the end. I've used this code: function scroll() { var objScrDiv = document.getElementById("ultimalinha"); objScrDiv.scrollTop = objScrDiv.scrollHeight; } But I di...
asked by 16.04.2015 / 11:02