Posts by tiaguinhow • 658 points
25 posts
-
0
votes1
answer391
viewsQ: Render delay with Angular + jQuery
Some jQuery functions or Angular directives are not loaded or rendered on page loading. At various points of the APP I had to apply the timeout to work everything normally. I’m currently loading the…
-
4
votes1
answer351
viewsQ: Difference between Cope declaration
Is there any difference in that Cope statement mentioned in the angular documentation: myApp.controller('DoubleController', ['$scope', function($scope) { $scope.double = function(value) { return…
-
9
votes1
answer280
viewsQ: Search tool for my site on Google
How to include a search within the Google search engine? It would have to include a meta tag in my website for this to appear on Google? A little difficult to explain, so I will illustrate with…
-
0
votes2
answers2812
viewsA: Problem generating PHP/HTML for PDF
I have used in my last projects the class pdfcrowd, and had no problems. Installation Copy pdfcrowd.php to your source directory. Example Server side PDF Generation. This code converts a web page…
-
1
votes2
answers1567
viewsA: HTML code color inside string in Phpstorm
I was able to solve by disabling the Language Injections in Settings, as shown below:
-
3
votes2
answers1567
viewsQ: HTML code color inside string in Phpstorm
When I insert an echo or a PHP variable receiving a string with HTML code, Phpstorm does not stay in the default color that would be all yellow, as in Sublime for example, and this ends up confusing…
-
4
votes5
answers501
viewsA: Hover only on some columns
this can be done directly in CSS HTML: <table> <tr> <td class="colorido">Coluna 1</td> <td class="colorido">Coluna 2</td> <td class="colorido">Coluna…
-
5
votes1
answer7812
viewsQ: Sort table column datatable through query
I am trying to sort my table by the name field of my database table, but the jquery (datatable) plugin insists on sorting by id (first table field) How to force sorting through the query result, in…
-
0
votes1
answer165
viewsA: Exceptioncontroller error on Laravel 4 route
I was able to solve by changing the route parameter nomenclature, because by default {user} was returning the User model object my route was like this…
-
1
votes1
answer165
viewsQ: Exceptioncontroller error on Laravel 4 route
I set a route Restore in my file Routes.php <?php Route::model('user', 'User'); Route::model('comment', 'Comment'); Route::model('post', 'Post'); Route::model('role', 'Role');…
-
2
votes1
answer224
viewsQ: My site loads different pages on different Operating Systems
I’m going through a very strange problem. When using Windows (Windows 7), my page loads as expected: @extends + index.php Already on Linux (Ubuntu 13.10) it is redirecting me to the route…
-
2
votes1
answer1044
viewsQ: Return javascript result with controller
It is possible within a Controller to return a javascript action and proceed with the controller script ? Example: Call to Login page: <li><a href="javascript:" link="{{ route('login') }}"…
-
1
votes4
answers2213
viewsA: Randomize the position of the images
If you’re using PHP, This will help you: $randomImg = ['img1.jpg', 'img2.jpg', 'img3.jpg', 'img4.jpg', 'img5.jpg', 'img6.jpg', 'img7.jpg', 'img8.jpg', 'img9.jpg', 'img10.jpg']; shuffle($randomImg);…
-
0
votes4
answers7584
viewsA: How to use AJAX with Laravel?
It’s basically the same thing, just swap the directories and insert the token in the form submission, follow an example of what I implemented here: $.ajax({ headers: { 'X-CSRF-Token':…
-
0
votes6
answers1001
viewsA: Error installing Composer in Laravel 4 Project
due to the lack of Ardent updates, it is necessary to insert this in your Composer.json to avoid conflicts: "repositories": [ { "type": "vcs", "url": "https://github.com/Zizaco/ardent.git" } ],…
-
5
votes18
answers139957
viewsA: What is the best way to center an element vertically and horizontally?
Horizontally it’s easy to do only through CSS, already vertically the closest you can get is this example, unless Voce uses a little javascript/jquery div { width: 100px; height: 100px; margin: 25%…
-
0
votes7
answers19609
viewsA: How to catch an element inside an iframe?
You can manipulate that way: jQuery(“.iframeMain”, window.parent.document) check the site with the example…
-
0
votes5
answers1939
viewsA: Sending form via AJAX, method PUT
SOLUTION: The problem was in Laravel’s Slide, my ajax page that had the name script js., was renamed to script.blade.php and after that I used the @include('script') on my main page and began to…
-
0
votes3
answers311
viewsA: Problems with AJAX XML Request
Follow a script I made for ZIP: $.getScript("http://www.buscarcep.com.br/?cep="+$("#cep").val()+"&formato=xml&chave=1iyeEHOY7.SVCKZSalTVl5SnTc34470", function(){ if(resultadoCEP["resultado"]…
-
0
votes5
answers1939
viewsQ: Sending form via AJAX, method PUT
Problem: I am trying to send a form with ajax via PUT, but it is returning the following message on Chrome console: PUT http://intranet.dev/%7B%7B%20URL::to('upload/'.Auth::user()-%3Eid)%20%7D%7D…
-
2
votes4
answers3063
viewsA: Centralize paging in Bootstrap v2.1.0
From version 2.3.0, it is already possible to use the class text-center. If it doesn’t work, use the text-align css as in the example…
twitter-bootstrapanswered tiaguinhow 658 -
1
votes2
answers7444
viewsA: Spacing with bootstrap columns
'Solution' I was able to solve the problem just by applying the other offset, this is correct ? <div class="col-xs-offset-2 col-sm-offset-0 col-md-offset-0 col-lg-offset-0 col-xs-8 col-sm-4">…
-
2
votes2
answers7444
viewsQ: Spacing with bootstrap columns
Studying the official website, I saw that the cool-Xs-offset was implemented only from the version 3.0.1, thus includes the version 3.0.3 on my website. Problem What happens is when I apply the…
-
6
votes1
answer74
viewsQ: Conflicts with the Confideuser class
In my model User, left my protected $table = 'usuarios' and in auth.php the same thing, but when calling the method save() of the Eloquent, he recognizes the table 'users' and not 'users' as I…
-
6
votes2
answers2962
viewsQ: .htaccess with subfolder other than root
I was working with this structure and with this htaccess: structure config/ logs/ www/ app/ bootstrap/ public/ packages/ .htaccess index.php ... vendor/ .htaccess ... htaccess <IfModule…