I have this inside a function:  $('#users').append($("<div id='usuarios'>").text(mensaje[1][i]));   I want to create an onclick event for this new <div>. How can I achieve this? I'm trying it like this outside...
I am trying to swap the form values in row1 with the form values of row2 without swapping the rows. Can someone show me away to achieve this in pure Javascript, vanilla JS, or jQuery. I made the table rows shorter with just two rows, but the actual t...
I'm using jQuery and have a function wrapped inside an immediately-invoked function expression like so:  <script type="text/javascript" src="jquery-1.8.3.min.js"></script> <script type="text/javascript">...
(Maybe) I just solved a my problem (How to update front-end content after that a form is successfully submitted from a dialog window?) by "storing" / "saving" a variable in the JavaScript window object. However, since I am newbie in...
I am using FineUploaderBasic to integrate uploading to my existing web site. The problem I have is with cancelling current uploading file. This is my code:    <div id="button" class="btn btn-large btn-primary">     <i class=&...
Can I detect cpu type and speed, and/or amount of ram a computer has from a web page (javascript hopefully)?...
I downloaded the sample app from the phonegap builder page and edited the index.js file like this:  onDeviceReady: function() {         alert("DEVICE-READY!")         window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, this.onFSSuccess, t...
I have tests for an addon which pass in chrome, but fail in phantomjs.  It seems to be a problem similar to this question. However, I tried the solution there and it didn't work for me.  The code is all available in the public repo linked above....
I have a Jqueryui menu which is AJAX generated at runtime. Its generated HTML is   <ul id='menu_id'>    <li>-</li>    <li>the_system</li>    <li>the_agenda</li>  </ul>   The first <li>-<...
Recently i have implemented Webpack 4 setup for my react app.   My webpack.config.js looks like this  const HtmlWebPackPlugin = require('html-webpack-plugin');  const htmlWebpackPlugin = new HtmlWebPackPlugin({   template: './src/index.js...
i am using Bootstrap to make a webpage. I have a simple code with 1 input and 1 button. when you press the button, which contains the input is stored in the database. but if the input is empty also saves it to the database. I can do the validation wi...
i'm trying to create a simple calculator,  when a button is clicked its value is shown in the text field and the button "C" should clear the text field but its onclick="clear()" is not working??      <%@page contentType="...
I want to use client-sessions module with my Express backend. So I've installed the module and set it up to work with Express like this:  var sessions      = require('client-sessions'); app.use(sessions({     cookieName: Constants.CLIENT_...
I have two radio buttons and want to post the value of the selected one. How can I get the value with jQuery?  I can get all of them like this:  $("form :radio")   How do I know which one is selected?...
I've realized I need a full-fledged browser automation tool for testing user interactions with our JavaScript widget library. I was using qunit, starting with unit testing and then I unwisely started incorporating more and more functional tests....
I added a google map with two markers (i am just testing), the code is:  function load() {      var map = new GMap2(document.getElementById("map"));       var marker = new GMarker(new GLatLng(<%=coordinates%>));     var marker2 = new GM...
I have an array of images that I create dialogs from.  I need to know the width of the image to make that the width of the dialog.  //Used to get dimensions of image var image = new Image();  //Set Image image.src = ImageArray[currentImageVal + direc...
I'm quite JS newbie and I'm wondering about some idea.  Can javascript be used to download file/multiple files from given url/s on the client side and zip "the stream" on the fly?  I don't want this server side, because I don'...
I want the user to be able to click on a table, and depending on the row they click on - it would fill the modal with content relating to that row (a MYSQL query), and open the modal.  I've attempted to do this like the following: - Load table co...
I've created a JavaScript live template which I use a lot in WebStorm:  console.log('$PARAM$ -> ', $PARAM$);   It helps me type this kind of lines faster:  console.log('nextProps -> ', nextProps);   However as it starts on t...
I need to validate date in localized format (SK) and it is not possible with knockout validation.  I am using: Durandal 1.2.0 Knockout 2.3.0 Knockout validation https://github.com/Knockout-Contrib/Knockout-Validation  I need something like this to be...
I want to calculate the time between two clicks of an attribute with javascript but I don't know how.  For example;  <a href="#">click here</a>   if the user clicks more than once -let's say in 5 seconds- I want to display...
NodeJS 0.11 as well as io.js and the Node 0.12 branch all ship with native promises.  Native promises have a .then method which always executes on a future event loop cycle.   So far I've been using setImmediate to queue things to the next iterat...
I'm trying to add a photo to foursquare page using api: https://api.foursquare.com/v2/photos/add and following node.js code:                      var accessToken = "myAccessToken";                     var platformProfileId = "4squareP...
I'm trying to write a Greasemonkey script for Firefox to change the behavior of some pages when they detect a window out of focus. I want the page to continue to function as if it were still in focus, even when I have another tab or window active...
I have a profile page that can render a user's name in plain text using <%= user.local.name %> - this queries the database using Mongoose. Is there a way I can pass that value to an Angular ng-repeat filter?  This works:  <tr ng-repeat=&...
I'm loading a page through AJAX with jQuery's load() function. It doesn't work in IE8, giving the "permission denied" error. Using the IE debugger, it seems that when jQuery tries to open up the xhr, ie blocks it.   The problem is...
I'm trying to appear a form and focus it, for some reason it only works on Chrome. How can I make it work across browsers?  <script> function SearchCity(evt){     document.getElementById('ciudad-eq').style.display='none';...
I am able to move button to left side but after that how i can again move it to right side. Can i also use delay here.  Here is the code that i have tried:    $(document).ready(function () {       example_animate(10);     });    function example_anim...
I am trying to make a table with Vertical Text just on the header table.    Here is my CSS code:  table th.user {   .rotate(90deg);   position: relative;   padding-top: 190px;   top: -10px;   right: 0px;   width: 200px; }   Here is the demo http://co...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.