Posts by Guilherme • 49 points
12 posts
-
0
votes1
answer169
viewsA: Angular: Error in system modules
Solved! The angular/cli webpack has been configured for an earlier version of angular/cli 6.0 Modified file: browser.js Before: node: false; Modification: node: { fs: 'empty', global: true, crypto:…
-
1
votes1
answer169
viewsQ: Angular: Error in system modules
Hello! My application has stopped compiling, causing problems in general purpose modules. The Crypto module was the first error that appeared, so I looked for a solution to this error. The solution…
-
0
votes0
answers123
viewsQ: How to specify each file in 2 input file?
I have 2 input file, one to select the profile photo and the other to choose a background photo. Each photo has different dimensions and I get a preview before the user save. Profile picture, all…
javascriptasked Guilherme 49 -
1
votes0
answers36
viewsQ: Xmlhttprequest "dirty HTML" answer
I did 3 functions to optimize Xmlhttprequest: function _ (x){ return document.getElementById(x); } function ajaxObj (meth, url){ var x = new XMLHttpRequest(); x.open(meth, url, true);…
-
-2
votes1
answer1084
viewsQ: Add elements in Associative Array - PHP
In a typed array just count the number of array elements and pass this value as index. But and in a one-dimensional associative array, as I add new elements? My array is: $array ['chave1'] =…
-
1
votes1
answer40
viewsQ: Drag-Drop events generate internal counters?
I’m trying to create a div every time I drop one image on top of another div, but the following is happening: At 1 time: creates 1 Div; In the 2nd time: creates 2 Div; In the 3rd time: creates 3…
javascriptasked Guilherme 49 -
0
votes2
answers557
viewsA: Use PHP variable in Ajax
Actually they are images and not checkbox, but the solution I made is very similar. In html I did an Hidden input: <input type="hidden" id="campo" value="<?php echo $user_id;?>" /> And…
-
0
votes2
answers557
viewsQ: Use PHP variable in Ajax
By clicking on the positive board (indicated in the figure by an arrow), the user accepts the friendship invitation. I need to pass the user id (value 15) to the update-friends.php page. The event…
-
0
votes0
answers35
viewsQ: Error in $.post method
The index.html page contains: <!DOCTYPE html> <html> <head> <title>teste</title> <script type="text/javascript" src="jquery.js"></script> <script…
-
0
votes1
answer159
viewsA: How to allow accessing only the main page by the url
Create a file . htaccess (no name, only with this extension). Open in the notepad, and type: Directoryindex index.php Options Indexes
-
0
votes2
answers64
views -
2
votes1
answer18344
viewsQ: Question: $.ajax() or $.get or $.post()?
Hello! In my project, the user makes a registration by inserting user, e-mail, link 1(http) and link 2(http). I save this data in a database. On the login.php page, I check if the e-mail and…