I have a commercial web application written in ASP.NET MVC4 with C #, where I need to print a direct sales closing coupon for a non-fiscal (diebold) printer.
Is there a way to send JS a direct document to the printer without printing or confi...
What is the best way to do the filter method like jQuery or Zepto in pure javascript?
I want to implement this method in my library: link
HTML
<p>Lorem Ipsum</p>
<p class="middle">Lorem Ipsum</p>
<p class="mi...
I'm using the JqPlot plugin to generate a bar and column chart. After running the tests in Mozilla and Chrome, which worked perfectly, I ran the test on IE7 and IE8 and got the following error:
window.g_vmlcanvasmanage...
I have 10 elements with class "hide", less the first one. When I click on a button I remove the next hide and add the class "show", but when I add it I want to put a fadeIn () effect. Is it possible?
I wanted to know if you can enter a target here:
window.location='www.google.com';
I do not want to open a new page, otherwise I would use window.open . I want to use target="topFrame" to control a player.
I'm using an old l...
Using the Chrome console I used the following code (valid):
function foo()
{
return {
prop: "some value"
};
}
When changed, the syntax style is no longer valid ( { played to next line):
function foo()
{
return...
Hello. Whenever I need to add a new index in an array I use the second method, but I see some using the first one and I do not know if there is any difference between them.
I tried to create an empty table so that when the user clicks in the middle of the <td> field a <input type="text" /> appears to type.
Follow the code:
$(function () {
$("td").click(function () {
va...
Is there any way in jQuery to capture the events of "ScrollDown" and "ScrollUp"?
I tried this way:
var lastScrollTop = 0;
$(window).scroll(function(event){
var st = $(this).scrollTop();
if (st > lastScrollTop){
// downscroll...
To search only for a fixed value in a string I can use the JavaScript function indexOf() , example:
var string = "Oberyn se vinga";
string.indexOf('vinga') >= 0 //retorna true ou false
But how would I do to check multiple values...