Questions tagged as 'javascript'

1
answer

Form's automatic generator with innerHTML

I have a browser game ready. It is a game that only puts the answer in a form, if it is right, earn points, change an image, block the text box and a few more things. In a v2 of this system, my idea was an automatic generator of these questions,...
asked by 09.11.2014 / 13:13
1
answer

plugin not working, routes and jquery

I'm using this plugin to explore routes with jQuery without having to migrate to AngularJS. But I'm not getting the answer in the log box, which was to return with the following code $.router.add(/items/:item", "foo", function(data) { console....
asked by 23.11.2014 / 17:14
1
answer

Transition with anchors in single page applications [duplicate]

How can I implement a smooth scroll transition effect through anchors using Jquery? The template below shows an example of a scroll transition I'm looking for.    link I would like to understand the effect, and for this reason I'm...
asked by 24.11.2014 / 17:52
1
answer

How to get cookie already existing via javascript

In my project I have a page that is html . And as my project is in ASP.NET MVC, I can not validate whether the user is logged in or not because that page is not razor . Searching, I found the javascript cookie , which creates, reads, and d...
asked by 26.11.2014 / 15:09
1
answer

Save, Delete and Get in AngularJS

I'm doing a fake "CRUD" in AngularJS and I'm having problems with save, delete, and get functions. Only the query () function worked. Can you help me out, please? I saw that the reason is something related to array, I already changed the save fu...
asked by 10.11.2014 / 21:34
1
answer

Execute javascript function on AJAX calls to a specific page

I have a site in Laravel where the content is loaded dynamically with AJAX, that is, in each call Laravel returns only the view of the part that I need, on a certain page I need to initialize a jQuery plugin that I only use on this page . If I i...
asked by 12.11.2014 / 01:38
1
answer

Building the name of a function and executing it

I have an object that is made up of several functions. these functions are names of tables that, from an earlier treatment I have to execute them. The idea of the code is, if a table does not exist, execute such a function that will create it ba...
asked by 10.11.2014 / 18:39
1
answer

Insert into table and then click using Jquery [duplicate]

I'm dynamically inserting into my table, so far so good. The problem is how much I try to click on one of the lines and I have no answer, I believe that I am not inserting in the DOM, someone could help me. INSERTING: $('#tabelaChat').app...
asked by 12.11.2014 / 17:20
1
answer

Routing with parameter "id" ends in white page

When I do routing with the id parameter ends in white page. link My app starts the posts appear, so I click on the post it goes to the other page and "it was to appear the content" but everything goes blank. var app = angular.module('app'...
asked by 06.11.2014 / 12:45
2
answers

Cordova battery API does not work

I'm trying to use the BatteryStatus Corel API and I'm not getting it, neither in the Intel XDK emulator nor in the debug on my Android, nor when I make a .APK. It just does not happen when I run. Basically, using this code found in link :...
asked by 06.11.2014 / 13:23