Posts by Krint • 409 points
23 posts
-
0
votes0
answers37
viewsQ: Backend not receiving body of the request via AXIOS or Fetch
I’m trying to make a POST request via fetch and via Xios, but something is happening that the request arrives without the body. I used Postman to see if it could be some problem in the backend,…
-
1
votes1
answer809
viewsQ: Use global variable in Typescript with Nodejs
I am looking for a way to use global variable in typescript with Nodejs. For example in js I can do: //init.js global.foo = "foo"; //teste.js var foo = global.foo; Is there any way to do this in…
-
1
votes1
answer739
viewsQ: How to receive a post or get request with typescript?
i’m starting with nodejs now and would like to use typescript to program compiling for pure javascript. So I’m having trouble finding something succinct so I can understand (since I’m a PHP…
-
0
votes1
answer2019
viewsQ: Format date with Angular Datepipe
I have a date in timestamp format and wanted to format for text in Portuguese, for example: "Wednesday, October 18th, 2017", but I put the pipe "| date:'fullDate'" and it doesn’t work. When I take…
-
1
votes0
answers20
viewsQ: How to export the angular web app 2 on the remote server?
Hello, everyone. I made my first web app angular 2 and am now trying to put on a remote server to access via url. I tried using ng build -Prod and passed the dist folder that was generated to my…
-
0
votes2
answers191
viewsQ: How to pass Property-bind to router-outlet at angular 2
Hi, guys. I’m new to learning Angular 2 and I have this title question. My router-outlet: <router-outlet [busca]="termo"></router-outlet> with this Property-bind and returns me this…
-
1
votes2
answers2042
viewsQ: Problems passing instantiated object by function parameter with php
I have a file php that instance a class, however I am not able to pass this instantiated object as parameter to another class. Example: $usuario = new Usuario(); $email = new Email();…
-
0
votes1
answer89
viewsQ: Calling php server side with Ionic and Angularjs
Hello, folks. I have this title doubt that I haven’t yet managed to heal. I’ve searched several forms and even the conventional form of angular: $http.post() or $http.get() But I return that…
-
0
votes1
answer501
viewsQ: Pass parameters in jquery . on
Hey there, guys. I’m trying to do a function to delete a node from an xml, but I have a problem that is the following: In pure javascript just by me onclick="function('')" inside the html tag for…
-
1
votes1
answer171
viewsQ: Display elements one by one with . each jquery
Hello, guys. I’m having problems with the . each of jQuery. I have an xml like this: <dados> <usuarios> <usuario id="1"> <login>usuario12</login>…
-
2
votes2
answers310
viewsQ: Create node in xml with jquery
Hello, guys, I have a problem: I’m trying to create a node in an xml with jquery and I can’t... I have an xml file which I get it with ajax: <?xml version="1.0" encoding="UTF-8"?>…
-
-1
votes1
answer421
viewsQ: file_get_contents generating 500 error
I have a file php that gives a file_get_contents in archives json. PHP can see the files because the file_exists works just right. But if I give file_get_contents in the same file as the file_exists…
-
1
votes1
answer830
viewsQ: move_uploaded_file crashing
Hello, guys, all right? I’m having a problem saving images inside the server. This code I found on the internet, but it doesn’t work. Give me some errors. You can help me? This is the code: if (…
-
2
votes1
answer159
views -
3
votes2
answers9138
viewsQ: How to make a request with Curl
Hello, folks, I am involved in a project and need to make a request with Curl to get data from an api. But I’ve never used Curl in php that way. Can help me? curl -X GET…
-
1
votes0
answers97
viewsQ: Php does not receive the data I pass with $http.post from the angular
Hello, everyone. I’m trying to get some data passed by $http.post for a php script. This is my angled ajax: $http.post('../_classes/chamaOddss.php', id).then(function(datae) { console.log(datae);…
-
5
votes5
answers7965
viewsQ: Some way to get the price of the dollar
Do you know of any api or other way in php to get the price of the dollar? I just need the price of the dollar for the real one. I’ve tried these two api’s, but the two are off the air.…
-
2
votes2
answers211
viewsQ: How can I add an array within an array?
I need a multidimensional array that will be composed of database information, but I’m not able to add this information. I can’t explain it very well, so I’ll show you. So I want to: Array ( [0]…
-
2
votes2
answers637
viewsQ: Insert array within an angular scope
Hello, everyone, I’m a beginner in angular, and I’d like to know what I’m doing wrong here. Check it out: Every time I click on a button I want it to add some "modified" information of an object…
-
1
votes1
answer417
views -
2
votes1
answer972
viewsQ: Error on line 2 at column 1: Extra content at the end of the Document
Hey there, guys, I’m trying to create an xml, but it returns me the error of the title, I googled and everything I saw about this was that I was missing root, however, I believe I’m using root, can…
-
-4
votes2
answers205
viewsQ: Why does my ajax only work when you want?
I have a page that is mixing HTML with php that when I click the button submit, Javascript is triggered, takes all the information and calls a function that activates an ajax to call a php file. It…
-
0
votes1
answer4030
viewsQ: java.lang.Nullpointerexception: Attempt to invoke virtual method on a null Object Reference
I’m trying to enter some values in the bank, but you’re always giving exception. My class that inserts in the bank: private String email; private int codigo; private Button btnOkay; private Button…