Questions tagged as 'javascript'

0
answers

Validation with Java Script

Expensive; I created a function in Java Script, where this function is to take the current date and by this date, as the user selects the flag of his card, calculate if the invoice will be inserted in the table of the current month or in the...
asked by 27.09.2016 / 17:23
2
answers

Get multi-field value

I'm done with each of a form that contains input and select . The post of this form is done in json with ajax. My script today gets the values of 2 input like this: var name = $('#news-nome').val(), email = $(...
asked by 27.09.2016 / 18:11
0
answers

Printing with content always on a page? [closed]

A customer requested that whenever a price card was printed, it was always printed on only one page, how can I do that? Thanks in advance for the help ..     
asked by 26.09.2016 / 16:56
0
answers

how to return the number of decimals after the comma in c or javascript? [closed]

How to return the number of decimal places after the comma in c or javascript; Example: For input 2.254 The output would be 3     
asked by 26.09.2016 / 12:39
1
answer

Is there a better way to populate this array in node.js?

Below is my function of node.js (I'm new to this), I would like to populate the array with random numbers (it can be zero as well), is there any faster way to do this? What am I doing? QLearn.reset = function() { for (var a=0; a<100;...
asked by 26.09.2016 / 15:29
1
answer

What is the best way to generate custom errors

For example, the user types an invalid value, and I want to generate an error. Would it be using throw new Error("Você digitou um valor inválido") and dealing with try/catch as in Java? Or is there a better way to do this with Node...
asked by 24.09.2016 / 05:15
1
answer

How to pass an object to a widget constructor in DOJO javascript?

I'm trying to pass an object that I created as a parameter in the constructor of a widget. The object even goes and I can set my property with it, but as soon as it exits the builder it breaks. Here is where I create the object and try to pas...
asked by 23.09.2016 / 21:21
2
answers

Make site open only in mobile [closed]

I need to have my site open on mobile devices only, as it's a hybrid app that will serve as both webview and Progressive Web App. How can I make my site open only on mobile devices?     
asked by 23.09.2016 / 18:30
1
answer

jQuery Click does not work on results coming from $ .post

I'm developing a delete button on the product form that I have, it works like this Category 1 (Radio Button) Category 2 (Radio Button) After selecting a category, it sends a jQuery command to the $ post function and creates...
asked by 14.10.2014 / 07:09
0
answers

Display dialog with primefaces when clicking on an emptyMessage of a p: autoComplete

Well I'm using Primefaces I have a field p: autoComplete to look for Employees, I would like that when I typed a name and no results were found it would display the message "No employee found, click here to register "(display the message I alre...
asked by 10.09.2016 / 14:53