Questions tagged as 'javascript'

2
answers

How to print in dot matrix printer on the client with a web application?

I have an application made in C # MVC with a routine to print plain text on the default printer. The RawPrinterHelper.SendStringToPrinter method that is described in this article has been used. Printing normally occurs when I run the ap...
asked by 23.10.2015 / 22:43
1
answer

How to change the "src" of an iframe without changing the user's URL?

How do I change the contents of an iframe internally without changing the URL of the site? Example: The user entered my site: http://example.com and it contains an iframe: <iframe src="http://teste455.esy.es/v3/wp-content/arcade/?...
asked by 14.10.2015 / 01:51
2
answers

Change cell color of a table by changing the backgroud and text to be displayed

Good morning everyone! Gentlemen, it is as follows: I have a table where I load information from the database, and display it on that table. The table is ready and loading the data right. What I need is to change the color of the backgroud of on...
asked by 23.10.2015 / 16:05
2
answers

Generate an array in function of another without bottlenecks

I have the following array of objects: [ { id: "1", name: "ProdutoA", categorias: [ {idCat: 1, name: "CategoriaA"}, {idCat: 2, name: "CategoriaB"} ] }, { id: "2", name: "Pro...
asked by 21.10.2015 / 18:42
1
answer

How to calculate the difference of days using input of type "date"? [duplicate]

My question is this: I have two input of type date . What I want to do in Javascript is to calculate the difference of days from first to second, that is, if the person put on 09/19/2015 on the first input and on 25/0...
asked by 19.09.2015 / 02:39
1
answer

Know where the click comes from when you have multiple options

In this case: $('body').on('click', '.a, .b, .c', function(e) { ... How will I know when the click came from .a or .c for example?     
asked by 19.09.2015 / 17:02
1
answer

How to get the value of a property using variable as name?

How to get it to fetch the property ABC instead of A ? Considering this code: A = 'ABC'; alert(LANG.A);     
asked by 07.06.2015 / 02:24
2
answers

Search through the ID and attribute

How to search for div for example through your ID and Attribute in specific like this: <div id="Y" data-id="X"></div> that is, a code that takes a DIV with id=Y and data-id=X     
asked by 07.06.2015 / 15:07
1
answer

How to get Json for Ajax in .html?

Suppose I have a .html file that I just created in notepad with a Ajax code where I want to get the data generated by this application . I made a code here, and when I put a breakpoint in the application I realize that the...
asked by 08.06.2015 / 00:23
1
answer

Returning JSON from a factory to a controller with angularjs

I'm starting to study angular deeper, and I'm having trouble processing JSON data in a factory and passing them to a controller. My idea is: A simple app, just for study, where I type the capital and it returns the state to me. Simple, right?...
asked by 09.09.2015 / 04:34