Posts by LeandroLuk • 4,989 points
276 posts
-
3
votes2
answers6305
viewsQ: How to insert an image using Laravel Blade 5.1
If I need to insert a css file or a script, I should do it respectively: <link href="{!! asset('css/style.css') !!}" type="text/css" /> <script type="text/javascript" src="{!!…
-
10
votes5
answers23670
viewsQ: How to make Javascript calculations accepting comma to separate decimal places
I’m making an app where in fields that accept decimals, the customer can put the comma instead of the dot (which is the common one visually). What is the best way for me to transform a string…
javascriptasked LeandroLuk 4,989 -
3
votes1
answer49
viewsQ: Create Schema with Laravel 5.1
Is there any way I can get Laravel 5.1 itself to create a database as this database does not exist? ( can be either in a table of a master bank or from the same comic book itself... whatever)
laravel-5asked LeandroLuk 4,989 -
2
votes1
answer79
viewsQ: Multiple Schema based on Laravel 5.1 subdomain
I am creating an application that, when the customer is creating the structure of his store, he will get a subdomain (which he will choose himself) and the database that Laravel will search for will…
laravel-5asked LeandroLuk 4,989 -
3
votes1
answer264
viewsQ: Change Laravel Migrations table nomenclature 5.1
I am creating an application that should be scalable and for this has been done a full scope of tables, relationships and the like. In this scope, I use the table migrations that Laravel 5.1 handles…
laravel-5asked LeandroLuk 4,989 -
2
votes2
answers1244
viewsQ: How to work with scripts and style sheets in Laravel 5.1
I’m new to Laravel 5.1 (actually any Laravel) and I’m having a hard time understanding how to work with style sheets and simple scripts. On several sites, I see that I need to add an element to my…
-
1
votes0
answers151
viewsQ: Returning daughter routes in an abstract view in Angular JS
I am making a directive to create a Wizzard system, where the navigation of this Wizzard will depend on the number of routes that is set on a parent route (Abstract). I need to know if there’s any…
-
0
votes2
answers211
viewsA: How to create an abstract route with global controller for your children in Angularjs
I gave a good read on what @Guilhermesantos said and was a very functional option, but I ended up opting for a value because even if the person starts editing but leaves this screen I have to go…
-
1
votes2
answers211
viewsQ: How to create an abstract route with global controller for your children in Angularjs
I am creating an application where I will create something similar to a "Wizzard" windows Forms and for this I am using a routing as follows: .state("vendaOrcamento", { url: "/vendaOrcamento",…
-
1
votes1
answer385
viewsQ: Run function after loading all scripts in pure Javascript
I’m creating a plugin for Google Chrome where I inject elements into the page like the Fontawesome and Jquery libraries. These elements I inject are coming from CDN’s host and need to start a…
-
4
votes3
answers129
viewsQ: Performing dual function not named in the declaration act of the same
I am "joking" with Javascript and came across a question. I understand that when my HTML page is loaded, if I want to already execute a function without having to declare it, I just have to define…
javascriptasked LeandroLuk 4,989 -
2
votes1
answer96
viewsQ: Angularjs directive blocking ngModel
In an angular application, I designed a small system of tabs and in this system I implemented a directive to create the events of onclick on each of the tabs. basically the project looked like this:…
-
1
votes1
answer444
viewsQ: How to manipulate the DOM through an extension?
I’m starting to work with extensions in Google Chrome and after some time reading tutorials I so far could not access anything in the DOM of the page. I need to modify the CSS of the page or run…
-
2
votes1
answer549
viewsA: Change style in ng-click and after a while return to normal with Angularjs
As reported by @Omni, I went after the $timeout and I realized that I was using it incorrectly. To be honest I also didn’t know the $scope.$apply that applies the existing changes in my…
-
2
votes1
answer549
viewsQ: Change style in ng-click and after a while return to normal with Angularjs
I have the following problem: I need a field to be shown in a solution with a "mask" as if it were hidden. When an event occurs or a click on a button (or itself) such field is filled with a value…
-
1
votes1
answer320
viewsQ: Middleware for routing authentication to an existing vector in Laravel
I’m starting to understand Laravel’s routing system now, and I’ve come up with a question regarding the Middleware. Can I have two equal routings for the same vector where when my user is…
-
1
votes1
answer249
viewsQ: Groups of routes with default values in Laravel
I need to understand how I create routes with default values (it would be the default that we have in function switch PHP). I’m looking for something like: Route::group(['prefix' => '/'], ['as'…
-
1
votes1
answer47
viewsQ: Uses existing paraments in a second-level parentNode
I have the following object as an example: var teste = { config : { dir: "myDir", type:"myType" }, fn : { foo : function(){ console.log(this); //retorna o objeto fn }, bar : function(){…
-
1
votes4
answers1474
viewsA: service returning result of a $http
My solution was to use the function $q Angular within my service. It instantiates a variable and sets a trigger for when there is a change of it, so I can pick up and do the $http with your return…
-
0
votes0
answers124
viewsQ: How to read a DLL with Cordova or Javascript
I’m creating a app that to communicate with my server I need to create a hash variable that depends on the class, function and parameters I am sending. the server validates this information and only…
-
1
votes1
answer159
viewsQ: child element taking focus of parent element
Is there any way to know when some child element is in focus? My problem revolves around the example below where I need a div not to suffer the Blur when a child element is in focus (in this case,…
-
1
votes4
answers1474
viewsQ: service returning result of a $http
I am creating a service for an application Angularjs where I should query a Ws and return a value to a variable. My problem is that when I use the $http I can’t get that amount back if I use a…
-
3
votes2
answers2209
viewsA: Take larger existing value in a number array
found(rs), inside Math.max() i have a variation to work upon programmatic arrays that works as follows: var retorno = [3,6,9,22,46,73]; var maiorNumero = Math.max.apply(Math,retorno); //ai sim…
-
2
votes2
answers2209
viewsQ: Take larger existing value in a number array
By giving a function, I return an array with numerous random numbers. I need to get the largest number between this array, and for that I ended up finding the function Math.max(). The problem is…
-
0
votes2
answers1879
viewsA: Customize header colors for a &ionicPopup
I ended up finding the solution. The $ionicPopup allows me to use a set of specific classes from a parameter called cssClass. To solve my problem, I opened the browser DOM and identified the classes…
-
1
votes2
answers1879
viewsQ: Customize header colors for a &ionicPopup
I’m looking for a way to change the colors of the header $ionicPopup but I couldn’t find any material on the Internet. The only way I found was if I create my entire template in a separate file or…
-
2
votes1
answer234
viewsQ: Demand Routing for Controllers
I am creating an application that uses Angularjs and I am new to this library. My problem is that when I see the way it makes the $router i understand that there is a lack of some way that I can…
angularjsasked LeandroLuk 4,989 -
0
votes1
answer151
viewsQ: Insert controller into the application from the requested template
I am creating an angular application where, on the home page I last a controller to do some validations before proceeding with the application login. My question is, do I have to "instantiate" the…
-
0
votes1
answer55
viewsA: Cordova + Angular JS initialization vectors
Solution: Basically, I have a page default that is called whenever the application is started, from then I direct the controller of this page to do all the treatments that are necessary and from…
-
1
votes1
answer55
viewsQ: Cordova + Angular JS initialization vectors
I’m new in development with Angularjs and I’m starting to create an application, where before reaching the user login I need to validate if there is a database Sqlite, if inside the database I have…
-
2
votes6
answers4694
viewsA: How to make a stopwatch continue counting after closing the page?
I believe that if you can use the attributes of localStorage() to come up with a solution! localStorage is a function implemented in more up-to-date browsers (óbvil other than IE) where the browser…
-
2
votes1
answer215
viewsA: Error with Angularjs for $http.get
When you are consuming data from other domains, it is necessary that external domain access is released in WS in order for it to work. By default, browsers and servers block access that is not from…
-
0
votes0
answers913
viewsQ: Encrypt a String for RC2 in Javascript
There is a way to use RC2 encryption through some Javascript function? I’m making a mobile application where her validation token needs to be through this encryption because the rest of the system…
-
1
votes2
answers100
viewsQ: Dynamic TSQL for multiple returns
I need to make multiple inserts that will depend on an existing result in a table like this: --CRIA TABELA #CONTATO CREATE TABLE #CONTATO( NOME VARCHAR(100) NULL, TELEFONE VARCHAR(50) NULL );…
-
1
votes1
answer43
viewsQ: Running a function allocated to an object from a comparison in for
I am building a library to validate forms (I know there are numerous but my case is specific) and I wanted to be able to send to a function an object with the fields and in its sublevel its…
-
0
votes1
answer897
viewsQ: Jquery select all elements containing the data-id attribute
Hello, I was wondering if there is any way to search all the existing elements on a page containing the attribute data-id just like I can do when I want to get a native HTML tag. for example, if I…
-
0
votes1
answer897
viewsA: Jquery select all elements containing the data-id attribute
I ended up testing, and found that if the code is executed searching for the attribute without referencing the value of it it returns all the elements that contain that attribute, so: $('[data-id]')…
-
-4
votes4
answers174
viewsA: Is it possible to use PHP in a data-title field?
In PHP, when you don’t give a ECHO in the variables, it does not print the value of the same on the page transforming it into HTML. your error is in this. try to put ECHO that solves.…
-
1
votes1
answer417
viewsQ: setInterval with auto-clearInterval
I’m creating a way to extract data from Twitter without being quoted the values of their API. The best way I found was using the widget that they provide (and that has no quota) and from its loading…
-
1
votes1
answer203
viewsQ: sp_executeSQL for each record of a table
I have the following problem: I need to analyze the differences between two databases, based on the existing tables and columns within these tables. My idea is to take the name of the columns inside…
-
1
votes3
answers291
viewsQ: positioning of float elements without spacing
I have long been trying to solve this problem. whenever I create a site using div’s that are float I have the problem of leaving a blank space after the 1st div in the line break as in the example…
-
2
votes1
answer288
viewsQ: Joint foreign key between index field and a possible string
I am creating an application where I thought of a possibility to insert all existing addresses in the system in a single table, both for users, customers, suppliers etc. the structure of my table…
-
0
votes3
answers8700
viewsQ: Tag <a href> without changing the location bar
I use bootstrap to create applications for the web and I realized that in numerous examples, they use for buttons the <a href> as in this link. I wanted to know how I can work in the same way…
-
3
votes1
answer121
viewsQ: Private functions via ajax - Code Igniter
I am using Code Igniter to create a web system and so that the user does not update the losing page that is already open I use all calls via ajax within "modules". The problem is that if I put a…
-
1
votes2
answers108
viewsQ: When starting an application, perform Windows task
I am looking for a way to perform a windows task whenever an application starts. I need to run a VBS or BAT whenever an app starts (it starts with a second app after the user has entered their login…
windowsasked LeandroLuk 4,989 -
1
votes1
answer84
viewsQ: pseudo-classes in CSS
I’m creating a module that will show information. this information should be displayed as expandable div’s, which I created using only CSS as is here: .news .itens { overflow: auto; margin-right:…
-
-1
votes1
answer316
viewsQ: Return Websql query as Array for a global variable
I am using a Websql database to save usage license information in a Phonegap application. At any time of the system I will need to access this information, so I intend to save this into a global…
-
0
votes1
answer87
viewsQ: Building a function name and executing it
I have an object that is formed by various functions. these functions are table names that from a previous treatment I have to run them. The idea of the code is, if a table does not exist, perform…
-
0
votes2
answers532
viewsA: How to use CSS style in application?
usually when using phonegap, it tends to pick up android settings. I advise you in css to put the classes as ! Mportant and review how are the tags. Another good idea, (I’m using at the moment) is…
-
5
votes1
answer3364
viewsQ: Offline database on Phonegap app
I’m creating an app with Phonegap and need to consume/manipulate information from an existing Sqlite base within my directory WWW but in 3 days looking for tutorials only found ways to create the…