Questions tagged as 'javascript'

1
answer

How to put a div inside an iframe?

So, I'm trying to make only one part of my HTML page refresh at every "X" times. I was trying to accomplish this through AJAX, but it was giving me a lot of trouble. So I decided to change my plan. Here's my problem: I'm passing a model th...
asked by 17.08.2018 / 20:28
1
answer

How to pass values from an Ajax request to Google Chart?

I started to tweak Google Chart today, and I can graph the values out of the ajax request. Only my application needs this data coming from a database and I'm not sure how to pass them correctly to the Google Chart array. NOTE: I do not kno...
asked by 21.01.2014 / 19:28
1
answer

Configure HTML Variable within Nodemailer html

I need to send an emai using Nodemailer, and I need to send email with html, but I'm not able to set the variables directly inside the email HTML, I already tried replace() and I did not succeed. server.route({ path: '/enviar', method:...
asked by 16.10.2017 / 01:55
1
answer

Can I prevent the user's screen from being deleted on a page?

I believe that all operating systems have the option to turn the screen off after a certain amount of user inactivity, mainly as a way to save battery power, but it is not always wanted to do so. For example, when watching a video, the user m...
asked by 30.10.2017 / 14:03
1
answer

Configuration of service worker

Can you configure the code below the service worker to ignore the cache if the request that comes from the server is 200? My service worker is picking up routes that exist and are not cached and generating several errors in the application. W...
asked by 03.11.2017 / 15:08
1
answer

Compare Coordinates

In my mysql I have a column where it contains positioning coordinates coming from a polygon, drawn in google maps api, the question is how can I compare the coordinates I have inside the column with a specified coordinate coming from a GET I'...
asked by 26.03.2016 / 20:46
1
answer

How to insert Access-Control-Allow-Origin in the header

I'm doing an ajax request for JQuery.Ajax() , to consume a WS SOAP, the envelope is Ok but when I make the call I get in the browser "No Access-Control-Allow-Origin 'header is present on the requested The source had the HTTP status code 40...
asked by 25.04.2016 / 20:13
2
answers

Use date or class to query DOM elements

Here I am needing a little help to get a broader view on this. As a rule I usually avoid using class to query elements in HTML, for this I end up using a custom data property . In many cases I end up having duplicates in html:...
asked by 04.03.2015 / 17:53
3
answers

Take a photo on the web with Windows 8.1 tablet

What I need I want to make a page where the user can click a button, take a picture with the tablet camera, view it and click the button to save it. What I've tried I've already tried using HTML5 to do this: <input type="file"...
asked by 22.01.2015 / 14:28
1
answer

how to fill the stars of a star rating?

How to fill in the stars of a "star rating". The calculation is apparently working. Giving an echo to the variable $calc results is displayed. Example, if the note is 3.3 , it must fill 3 stars and 30% of the 4 star rating. The qu...
asked by 27.10.2015 / 12:20