All Questions

1
answer

Template Layout and Routes

I'm working on a system that uses MVC as follows, View -> HTML,CSS Model -> PHP Controller -> JS Basically, all system actions work in the following order: User triggers some action in js it valida...
asked on 17.09.2015 / 21:59
2
answers

Jquery Autocomplete

I'm having problems with Autocomplete, I can pull data but autocomplete does not work! $("#marcas").autocomplete({ source: function (request, response) { $.ajax({ type: 'GET', url: 'http://fipeapi.appspot.com/api/1/carros/m...
asked on 24.09.2015 / 17:32
1
answer

Select list option selected with AngularJs

I'm implementing a select list that has options the Brazilian states. I would like to return the selected value according to the return of a web service. For example, if the service returns RJ then RJ must be the option sel...
asked on 07.01.2015 / 15:45
2
answers

Check if it is empty regardless of type, javascript

I'm trying to create a function that checks for something blank, empty, undefined, null etc. But my difficulty is that I do not know all the forms of a string being "blank" I created this function function empty() { var args = [].slic...
asked on 03.10.2015 / 15:43
1
answer

Registration form php WITHOUT database

I'm learning php and I need to create a form using only html, jquery, ajax and php without making use of the database. Inherent data should appear in a table below the form I was instructed to do using session, however, I do not know how to do t...
asked on 24.09.2015 / 17:37
1
answer

In C / C ++, what are the build directives for? When should I use them?

I came across a C code that used a compilation directive in #ifdef and I do not quite understand what it's for. I found an explanation, but it was not clear. Here's an example policy and the explanation I looked for: #ifdef <token>...
asked on 04.10.2015 / 01:22
3
answers

Simulate click when opening the page

Is there a way, when someone enters a web site, a JavaScript event "simulate" a click ? In other words, JavaScript automatically makes a click on the site. In case I have an ad that only opens when someone clicks the page. That i...
asked on 28.09.2015 / 21:56
3
answers

How to convert an Object to an Array? (W#)

I have the following class: public string Nome; public int Cpf; public string getNome() { return Nome; } public void setNome(string nome) { this.Nome = nome; } public int getCpf() { return Cpf; } public void...
asked on 27.09.2015 / 23:01
1
answer

How to use passport.js on node to log in against the database

How to use passport.js to control access using the database and express.js middleware. How to make login logic and how to know that the session is already authorized when the user has already logged in?     
asked on 12.09.2015 / 22:56
1
answer

Internationalizing web app with jQuery i18n plugin

I'm trying to use this jQuery plugin to internationalize my web app. Specifically, I'm wanting to use the API data in the fields to translate but alert returns "one" and not "ONE" and the spans tags remain with One and Two. Page...
asked on 23.09.2015 / 22:46