Questions tagged as 'javascript'

1
answer

Upload only with jQuery.ajax and PHP

I would like to know if you can upload a file using only $.ajax({...}) without submitting submit of the form and if, like? Note: I would like to put this script in the onchange event. Obs2 .: If possible I do not want to send...
asked by 03.12.2014 / 21:55
1
answer

Chart.js update method displays error "bar.save is not a function"

I'm using Chart.js to plot charts, but the problem occurs when I try to update it using the update() method. myBar.datasets[0].bars[0]=10; myBar.update(); Then I get the following error:    "TypeError: bar.save is not a function...
asked by 11.12.2014 / 22:04
1
answer

Make large-scale textContent exchanges with Javascript

I have a page where I want each event to be exchanged with textContent , <h1> , <p> and <img> . I thought of php or Json includes. I do not know. (It's a lot of content, so I thought of Json)     
asked by 13.12.2014 / 03:53
1
answer

Label with mouse cursor

I created a label with the position of the cursor, I want this label to always be held by the cursor. I created this, it works, but not behind the cursor. var x = ev.clientX; var y = ev.clientY; var info_souris = document.getElementById("posit...
asked by 15.12.2014 / 17:51
2
answers

How to remove and add a class in a single event?

See function rodarslider(){ (...) caption.classList.remove('sliderfect'); caption.classList.add('sliderfect'); (...) } The above function is the small stretch of the algorithm of a pure JS slider I'm doing. caption...
asked by 08.12.2014 / 18:22
1
answer

Gulp insert mined file in index

Introduction I'm implementing the Gulp task automator, everything is going well, minified, concatenated, and optimized files. Problem Now what I lack is to get the mined file (all.min.js) and insert it into my index.html by removing the...
asked by 23.09.2014 / 19:43
1
answer

Create link with data of a form [duplicate]

I have an external search site ready where search results generate a link similar to this: http://example.com/pesquisa?utf8=✓&search=itempesquisado&x=0&y=0 . I would like to create a form on my website that would take to t...
asked by 26.09.2014 / 22:48
1
answer

Problem with NodeJS / Express parameter passing

I'm creating my first application in NodeJS and managed to structure the application, connection, directory structure, routes, anyway, everything working fine. Now I've implemented the login system and I've already encountered an error in pas...
asked by 29.09.2014 / 09:01
3
answers

Using non-angular find

I'm studying angular and I'm having a problem. I created a directive called action, I'm trying to get the click on the element ul > but it does not work using find and I can not put ng-click because it may contain N tags ...    Example...
asked by 24.03.2015 / 20:21
1
answer

HTML table in SVG

Is it possible to create an HTML table within the <svg> tag? I have an example, but I can not see the objects. Example: link
asked by 27.03.2015 / 12:15