Posts by Edinho Rodrigues • 384 points
45 posts
-
0
votes1
answer456
viewsQ: Reactjs - if condition inside the map
I have a requisition for the states api.get('address/states') .then(res => { const states = res.data.data; this.setState({ states }); }) And another that searches the address data by the zip code…
-
0
votes1
answer225
viewsQ: Reactjs - Catch exported constant
I created a component that exports Axios: import axios from "axios"; const token = 'Z31XC52XC4'; export default axios.create({ baseURL: 'https://xxxxx.xxxxx.com.br/api/', headers: { 'Accept':…
reactasked Edinho Rodrigues 384 -
-2
votes1
answer599
viewsQ: Routes in Reactjs
I’m studying ReactJS and I’m having a problem with the routes. I managed to implement the route, but when I click to open a page, it remains rendering the page that was open before and only after…
-
1
votes1
answer358
viewsQ: Apply jQuery Datepicker to dynamically added fields
I made a form with a "date" field and used jQuery Datepicker to enter the date. I also made a function to add more fields similar to those already existing in form: Code entering new fields:…
-
0
votes2
answers122
viewsA: Laravel query two tables, not showing if id are equal
Good night to the comrades who helped me, after trying so hard to achieve using Laravel’s running queries: $students = DB::select('select * from students where id not in (select student_id from…
-
0
votes1
answer1004
viewsQ: Redirect Com Jquery
I’m making a system that makes a requisition ajax with Xios. So far td well, I was able to make the request GET and list all items on the screen in a table. In this table there is a button View…
-
0
votes2
answers122
viewsQ: Laravel query two tables, not showing if id are equal
I have two related tables in the database: Students and student_schedules. At some point, I want to list all the Students that NAY are in student_schedules. I tried to do it like this, but it didn’t…
-
0
votes0
answers67
viewsQ: Compare Database Data with AJAX Result
I make a request AJAX in view and a survey on database. I need to compare the results of the two and if an item is equal I want to print a result in a div $.ajax({ type: "GET", data: {number:…
-
2
votes1
answer56
viewsQ: Get id of two html elements?
I have an array of inputs and use to record in the database /*ANSWERS */ foreach($params['questionnaire_questions_answers'] as $key => $item){ $student_anamineses_answers =…
laravelasked Edinho Rodrigues 384 -
1
votes1
answer218
viewsQ: Jquery Clear array when making new request
In the view I have a input select which event onchange I run a call on ajax for a given route that searches all items of a Model. <select required onchange="getQuestions()"…
-
0
votes0
answers64
viewsQ: Multiple . env Portable 5
I have a domain on the server where I uploaded an application in Laravel. I created a subdommunication and I went up the same application for this domain, but Ubdomain is looking for the same…
-
0
votes0
answers163
viewsQ: Listing in
Hello, I have following modeling: A training table that has several training models (workouts). The models table has several exercises. At the Laravel, I need to list a particular workout (id 1, for…
-
0
votes1
answer159
viewsQ: Laravel array Session overriding
I’m trying to record product data in a Laravel, but it overwrites the session. I have an array of products in the view: @foreach($products as $product) <form action="{{ url('/cart/add') }}/{{…
-
1
votes2
answers395
viewsQ: Know if at least one checkbox is selected within an array of the Laravel
I have an array of the Laravel that renders checkboxes: @foreach($images as $img) <div class="col-md-3"> <img src="{{url('gallery_images')}}/{{ $img->image }}" class="img-thumbnail"…
-
0
votes1
answer37
viewsQ: Change apache in Cpanel
I made an application in Laravel 5 and I need to go up to a server that is not mine, I only have an FTP account for this. The problem is q p Cpanel server is configured for PHP 5 and the Laravel…
-
1
votes0
answers22
viewsQ: Ionic 1 + Firebase Authentication
Someone would have an authentication tutorial tip with Ionic 1 + Firebase to pass?
-
-1
votes1
answer257
viewsQ: Install Magento Community Edition in PHP 7.2.1
I am trying to install Magento Community Edition 2.2.3 but it appears the following error: Your PHP version is 7.2.1. The required PHP version is 7.0.2|7.0.4|~7.0.6|~7.1.0 Can anyone tell if Magento…
-
0
votes1
answer57
viewsA: Include de css in Ionic
I managed to put the css inside a div, like this <div><style type="text/css"> //css aqui </style></div> And calling with ng-include, before was passing the wrong address,…
-
0
votes1
answer57
viewsQ: Include de css in Ionic
I need to call a css block, depending on the condition, in an Ionic view. I’m trying to do with ng-include, but it doesn’t work. <style type="text/css"…
-
0
votes1
answer302
viewsQ: jquery does not work on foreach Blade Standard
jquery script works if put out of foreach, but qd put in it does not work and shows no error in console: <div class="box-indicated"> @foreach($list_indicated as $indicated) <label…
-
2
votes3
answers760
viewsQ: Hide part of string
I need to display only part of the string and when the user clicks on the link show the entire string as the example in the image below.…
-
2
votes1
answer719
viewsQ: Route and form in Laravel
I have a route Route::get('/','WebController@index'); I have a controller public function index() { $cars = Cars::table('cars')->get(); return view('web::index')->with('cars', $cars); } And in…
-
1
votes1
answer654
viewsQ: Session in Laravel 5
In my controller, log in as follows: if(!empty($input['user'])) { $result = $this->userRepository->searchuser($input['user']); //Busca o usuario pelo login // dd($result['data']['user']); if…
-
2
votes2
answers1087
viewsQ: Open a tab by clicking on the navbar link
I have a navbar that has several links to the same page that has 3 tab. I need that by clicking on a navbar item it opens the page with the specific tab selected. I tried to do so (but it didn’t…
-
2
votes0
answers211
viewsQ: API for cryptocurrency quotation?
I would like to know if anyone knows an API to fetch quotations from major cryptocurrencies: Ethereum Bitcoin Dash Monero Zcash…
-
0
votes2
answers2400
viewsQ: Putting a responsive video on my web page
Hello, I need to put a video on my site like this one: http://www.orionbranding.com/ All the examples I think are full width videos, q occupy the whole screen. The code I put below leaves the video…
-
0
votes1
answer57
viewsQ: How to check if an ionicModal is open?
Hello, How to know if an ionicModal is open? I need to check if an ionicModal is open, in case I need to close it so it doesn’t open two ionicModal at the same time
ionicasked Edinho Rodrigues 384 -
1
votes0
answers92
viewsQ: Instalação Cordova
I am trying to install a plugin in Cordova and am having the following error: λ cordova plugin add https://github.com/jlsuarezs/cordova-plugin-brightness.git Error: Failed to fetch plugin…
cordova-pluginasked Edinho Rodrigues 384 -
0
votes1
answer66
viewsQ: Limit text to the first paragraph in Angularjs
I have an application that receives a giant text from the database. I want to display only the first paragraph and put a text saying "SEE FULL DESCRIPTION" right below and when you click open a…
-
0
votes2
answers993
viewsQ: Count total of arrays in Javascript:
[Object, Object, Object, Object] [Object, Object, Object, Object] [Object, Object, Object, Object] [Object, Object, Object, Object] [Object, Object, Object, Object] [Object, Object, Object, Object]…
-
0
votes1
answer70
viewsA: Adicionar items Ionic
Another developer helped me and solved it as follows: $scope.ticketPlus = function(ticketIndex, itemIndex) { $scope.tickets[ticketIndex]['items'][itemIndex]['quantity'] ++;…
-
0
votes1
answer70
viewsQ: Adicionar items Ionic
I need the values to change when clicking the + and -buttons, as in the image. I took an example from Plunker (http://plnkr.co/edit/V1GEsL5IooR8MROuiAoc?p=preview) and I’m trying to adapt to what I…
-
0
votes1
answer89
viewsQ: Progress bar in angulajs
I need a progress-bar which is the image of a chalice being filled with AngularJs. Something like this: http://franverona.com/loadgo/. Can someone give me an example? I don’t have the official image…
-
0
votes0
answers29
viewsQ: Options for Safari Browser
Hello, Use some CSS classes to align objects on the screen: height: 65vh !important; display: flex; align-items: flex-end; justify-content: center; However, in Safari some of these classes do not…
-
1
votes1
answer398
viewsQ: Stylized Div with CSS
I need to make a div that has the appearance of the image below: I tried to do with background image, but it is more difficult to position, as in the image below: The problem is to make this area…
-
0
votes1
answer244
viewsQ: check if object items are empty
Hello, I have an object that receives parameters from a form and send this object to another page. On this page I need to do a validation if at least three items have been completed. Could someone…
-
0
votes1
answer85
viewsQ: Change text in the header according to the open page
I need to change the header text every time I switch pages. Could someone help me??/
-
0
votes2
answers137
viewsA: Opening another page with Angular and Sweet Alert
I did it, doing it like this: **$window.location.href = '/#/register/true';**
-
2
votes2
answers137
viewsQ: Opening another page with Angular and Sweet Alert
I’m trying to open a javascript page with Angularjs. I need that when I click on Bt it asks a question and depending on the result, open a link with the url true or false. I can do this, but the…
-
2
votes1
answer1629
viewsQ: Change the header background of only one Ionic page
Has a project ionic and I need to ion-header-bar only one page has a different background than the rest of the application. Home () <ion-view view-title="Home"> <ion-content id="home"…
-
0
votes2
answers916
viewsQ: Hide widget with Angularjs
Hello. I have a routine that checks the elements of a form-group and adds the class has error in the form-validate. Below var allElements = element.find("input"); for(var i = 0; i <…
angularjsasked Edinho Rodrigues 384 -
0
votes3
answers1216
viewsA: View image in Javascript
Thank you for your willingness to answer my question. With your help I managed to arrive at a satisfactory result. I know I can still improve, but from where I was I think it was a great progress.…
javascriptanswered Edinho Rodrigues 384 -
1
votes3
answers1216
viewsQ: View image in Javascript
I’m new to Javascript. I need to check if the user is browsing on an apple or android and depending on the condition, show the corresponding store button. <script type="text/javascript"> var…
javascriptasked Edinho Rodrigues 384 -
0
votes2
answers601
viewsQ: Script for side menu
Does anyone know a script for making a responsive side menu that looks like the one on Badoo?? When you are viewing the site on a device with large screen the menu appears with all the options and…
-
0
votes2
answers3283
viewsQ: How to Remove Automatic Bootstrap Slider
How to remove the automatic slide from the Bootstrap slide? I have a Carousel that is working perfectly, but I need it to stay static and only change the images when you click on the right or left…