Questions tagged as 'javascript'

1
answer

Execute js Service Worker function even with the browser closed or minimized

Recently I'm using Service Worker, I came to see some examples and the documentation that has google labs, but I confess that I'm having a hard time understanding how I can create a function in Service Worker, which should be executed every tim...
asked by 06.04.2018 / 04:20
1
answer

Execute function from one page to another

I have a question regarding my project. I have a button on an "x" page that upon clicking it checks the geolocation in Google maps (fills the inputs with the coordinates). So far so good, I need to do this function also on a page and y with...
asked by 06.04.2018 / 18:56
1
answer

How to get '#' from Angular URLs

My app's URL is like this ' link '. I'm trying to get the '#' from the URL, I've tried it in many ways but I can not. I have the following code. config.js: function config($stateProvider, $urlRouterProvider, $locationProvider, $ocLazyLoadPr...
asked by 06.04.2018 / 15:01
3
answers

Multiplication and sum of inputs in a site [closed]

I am building a website and I need help: I have 3 fields in this site (input) and each one represents a fixed value (1,500, 250 and 500), I would like to be able to insert in these fields the amount of times I want this value to make the sum and...
asked by 06.04.2018 / 02:54
1
answer

event.preventDefault () for attachment with php and js [duplicate]

I have the following script that does a validation in the contact form and shows the message in div like the message was sent or not, as this is sent below the normal message in my email, but in that same form I have one field attachment and w...
asked by 05.04.2018 / 20:21
1
answer

Prohibit from other sites from using my content

Hello, I'm trying to develop an htaccess code that prevents other sites from using my content. I tried this, but without success, if I type in the browser certain file / link it becomes inactive even for me, being that it was to be for another p...
asked by 12.04.2018 / 18:27
1
answer

Clear vue-router history when loading main menu

In a PWA I am using VueJS and I am having problems with the back button of the smartphone, because when I use it PWA does what is most logical and returns to the previous screen. But I just log into PWA and log in and when I use the back butt...
asked by 12.04.2018 / 16:41
1
answer

Separate Data from Multiple Forms with FormData

Would you like to submit some forms at the same time with FormData ? For example, each product will have sizes and images. I would like to separate each product in an array and send it to the PHP page at the same time, so I can go through th...
asked by 09.04.2018 / 15:05
1
answer

* ngFor client side

I'm implementing a crud where I'm using ngFor to iterate through a list. But I do not know how to do it on the client side. I believe this will only be possible by creating a component in my main.js. But I'm not sure. var app = angular.m...
asked by 09.04.2018 / 08:42
1
answer

Disabling check according to selected quantity [closed]

I have a component that has an input: checkbox. This component is repeated several times on the screen. How do I block the checkbox, limiting my user to click a maximum of 3 checkboxes ie the user will only be able to click a maximum of 3 checkb...
asked by 09.04.2018 / 20:31