Posts by Odair • 1,653 points
29 posts
-
-1
votes1
answer43
viewsQ: implode(): Invalid Arguments passed
I’m working on a system for uploading contents and various photos in which I need change file names using md5 hash and creating a string with the new names but I’m finding it difficult to use MD5…
-
0
votes1
answer74
views -
1
votes2
answers210
viewsQ: Format date with javascript
I’m developing an application in which I get the posts from a facebook page and need to format the post creation date that I get via json as follows: 2018-01-12T11:25:41+0000 What function should I…
-
0
votes1
answer928
viewsQ: How to print JSON object list
I’m implementing the facebook posts of a particular page on my site and I’m having trouble understanding how to print the following JSON structure: { "posts": { "data": [ { "created_time":…
-
1
votes1
answer3799
viewsQ: Send ajax requests using pure javascript POST method
I am trying to submit a form using AJAX through the POST method but I am not succeeding. Can someone help me? function gooSubmit(url,id){ //declaração das variáveis var sd =…
-
0
votes2
answers55
viewsQ: How to adapt this function to work without needing the element ID?
I have a function and want to adapt it to work without needing the element ID (document.getElementById("slides");). I saw that there is the possibility to do this using the operator NEW but I had…
-
1
votes1
answer663
viewsQ: Problems sending php email
I am trying to send emails to specific lists registered in the database, with the php mail function but the email is not sent. What can be the mistake? Below the script for sending emails: if…
-
1
votes1
answer299
viewsQ: Error when connecting ORACLE database with PHP
When trying to connect to an Oracle ORACLE database appears the following error: TNS:System was not Given the SERVICE_NAME in CONNECT_DATA I have already set up php.ini and included the following…
-
2
votes2
answers316
viewsQ: Completing form with AJAX and Mysql
I need to complete a form, according to the user’s demand, with Database information (Mysql). Example: I have the fields "Institution", "Course" and "Period". For the user, first, will appear only…
-
3
votes1
answer772
viewsQ: "By Onchange" form validation with javascript
Good afternoon! I am trying to validate a form by "Onchange" with javascript, the script worked correctly but is presenting the following error: When I try to fill in any form field without having…
-
40
votes3
answers39993
viewsQ: How to implement google reCAPTCHA on my website?
I’m trying to implement the reCAPTCHA from Google on my site, and I can’t do the integration Server-Side (I use the language PHP). How can I make reCAPTCHA work, and perform the validation before…
-
1
votes1
answer835
viewsQ: How do I pay with the Instagram API?
I made a page to display Instagram photos that have some hashtag preselected by me. I used an example I found on the internet (I don’t remember the source) and I don’t know how to make pagination in…
-
-1
votes1
answer3118
viewsQ: Convert html page to image or pdf?
I would like to generate an image or pdf from a file html and send the file by email, anyone know how I can do that? I’ve looked for some classes, but I didn’t find any ideal.…
-
4
votes3
answers3827
viewsQ: How to scroll infinity with pure javascript?
I’m trying to implement an infinite scroll on my site, like this one, but I’m having trouble making the script that picks up the mouse scrolling event. I tried using this script (below) that I…
-
7
votes4
answers2032
viewsQ: Validation of forms with javascript
I’m having trouble validating a form with pure javascript, when it arrives in the field of the type "checkbox" always returns false, even with "checked = true". Why is this happening? How can I…
javascriptasked Odair 1,653 -
3
votes2
answers1416
viewsQ: How to subtract decimal numbers?
I did a function to fade out on <div> once I finish loading the page but can’t get the exact value of the end of Fadeout (that would be 0) always gives me a number like this:…
javascriptasked Odair 1,653 -
10
votes2
answers6917
viewsQ: How to clean a canvas area?
I created a function that generates random objects in the area canvas and wanted that after the end of this function the area was clean. Is there any possibility of doing that?…
-
4
votes3
answers3165
viewsQ: Function to increment value within the div
I’m trying to do a function to increment (every 20ms) +1 in <div>, according to the value that will be inside her: For example: <li class="marcacao" onMouseOver="aumenta('html')">HTML5 e…
javascriptasked Odair 1,653 -
16
votes3
answers4097
viewsQ: How to randomly color Divs with a Javascript Color Array?
I created a function that changes colors (pulled from one array) on certain page elements (which are also on array), but it was very strange, as it changes the colors of the elements one after the…
-
7
votes1
answer378
viewsQ: How to use escape character in CSS?
I’m trying to insert a special character into :before of my links so that they stay in the following way: This is the link The problem is that this character is written in hexadecimal and when I try…
-
4
votes2
answers3111
viewsQ: How to check the database update from a browser?
I’m trying to make a page that updates the <div> (that has the content brought from the database) automatically once some value is entered (as well as on this site). I used the setInterval to…
-
6
votes1
answer1322
viewsQ: How to configure . htaccess to accept a hyphen in the URL?
I’m customizing the Urls on my site, but the .htaccess does not accept hyphens Urls, for example: postagem/1/criando-efeito-fadeout-com-javascript When I write the title without the hyphens it…
-
2
votes1
answer149
viewsQ: String handling with str_replace
I’m trying to treat a string with the function str_replace but I wanted to insert a <span> before the word treated, as in the example below: $entrada = array("//"); $tratamento =…
-
4
votes2
answers1219
viewsQ: How to insert Javascript code into the database?
I’m creating a function bbcode for a blog I am doing and wanted to know if it is possible (and safe) I insert Javascript codes inside my database. I am working with Mysql. Another question, I cannot…
-
14
votes4
answers44310
viewsQ: Remove page element with javascript
I’m making an application and I came up with a question: How do I remove an element from a javascript page without using innerHTML = ''? For example, I want to remove a div (like the example below)…
javascriptasked Odair 1,653 -
0
votes2
answers271
viewsQ: Can anyone identify the error in that code?
A few days ago I asked a question about how to add class to an elemetho by clicking the button, the answers were satisfactory (I did it using Jquery as suggested), but I decided to create a function…
-
4
votes3
answers403
viewsQ: What is the benefit of working with webSql?
I was reading about webSql and I came up with this question, what is the advantage of working with webSql since it runs client-side?
-
10
votes5
answers1657
viewsQ: How to add class to the next element when clicking the button?
I have a list of several items, and just above that list will have two buttons, "next" and "previous". I wanted when the user clicked next, for example, to add a different class to the next item in…
javascriptasked Odair 1,653 -
0
votes3
answers311
viewsQ: Problems with AJAX XML Request
I’m having a problem I made a Javascript code to display via AJAX an XML with a list: My XML is like this: <?xml version="1.0" encoding="ISO-8859-1"?> <telas> <item>…