Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. H

    JavaScript How to set an initial value to PlaceAutocompleteElement

    Thanks for your message, but the link you provided refers to the old API. In the new API , the returned object is a closed shadow element with the input inside. So it seems there is no access to such input to set an initial value
  2. H

    JavaScript How to set an initial value to PlaceAutocompleteElement

    I am creating an autocomplete address input element via google.maps.places.PlaceAutocompleteElement, to let users autocomplete addresses. The thing is that users have previously saved their address in our database, so I need to set the PlaceAutocompleteElement input an initial address value...
  3. H

    JavaScript Grey background on IOS when clicking

    OK, so it seems a safe feature to use. Thank you so much!
  4. H

    JavaScript Grey background on IOS when clicking

    Hello there!! When I click on an absolute positioned div on IOS (Safari), there is a flash of a grey background. This is a video the example: Screen Recording 2025-04-10 at 09.23.30.mov And this is a code pen with the example code: https://codepen.io/hebrerillo/pen/RNwzKXx However, if the...
  5. H

    JavaScript Break on input value changes

    Hello everyone! I want to know if it is possible to set a breakpoint, using the browser, when the value of an input field changes. In Chrome, I can set a breakpoint on a DOM element in these scenarios: Subtree modifications Attributes modifications Node Removal I need a similar way to...
  6. H

    JavaScript Check if input can be focused

    Hello everyone! I want to know if there is a way to check if an input is focusable or not via JavaScript. I am implementing a form, and when the user hits the enter key, the focus should go to the next "focusable" input via JavaScript. The problem is that some inputs are hidden via...
  7. H

    PHP PHP gets commented

    Hello @simong1993 , sorry for the late response The file /etc/apache2/httpd.conf, does not contain any line like "#LoadModule php_module libexec/apache2/libphp7.so " I did a grep php_module and had no results. Maybe that is the problem?? Thank you so much for your help!
  8. H

    JavaScript JavaScript validates an invalid email

    Hello everyone! Yes, I implemented a regex in the HTML input element. Something like this: <input type="email" pattern="[^@\s]+@[^@\s]+\.[^@\s]+" title="Invalid email address" /> This way, the function "checkValidity" on the input will fail in JavaScript if the email is invalid. thank you...
  9. H

    Problems with forms

    Hello @Edrol97 , If you want to be sure that the email is actually sent, that is something you will have to implement on the server side. You can't send an email from the Frontend(browser) side in JavaScript. It has to be implemented in the server side: PHP, Java, Python...
  10. H

    JavaScript JavaScript validates an invalid email

    Hello there! I have a form that I am validating using the Form Validtion API in JS. I would expect the email address 'hannibal@gmail' to be invalid. However, the API returnts that it is valid. Here is an example: <!DOCTYPE html> <html lang="en"> <head> </head> <body> <form...
  11. H

    PHP PHP gets commented

    Apache is running. I can access regular HTML files Hello, sorry for the late response. Yes, I am on a Mac. I am using the default Apache installation that comes with MAC OS. To be honest, I do not remember how I installed PHP. It was long ago. Besides, I have another PHP installation via...
  12. H

    PHP PHP gets commented

    Apache is running. I can access regular HTML files
  13. H

    PHP PHP gets commented

    Hello Malcolm! Thank you so much for asking, but unfortunately I did not find an answer yet 😢
  14. H

    PHP PHP gets commented

    Sure, I just sent you a DM with the file. Let me know if you got it. Thank you so much!
  15. H

    PHP PHP gets commented

    Hello there, This is the php code: <?php echo "hello"; ?>
  16. H

    PHP PHP gets commented

    Hello there! I had a local server in Apache and PHP that was working fine, but it has stopped working suddenly. If I enter the URL "http://localhost/index.php", the PHP code gets commented out in the response: I searched in the web but found nothing. I read somewhere else that the PHP is...
  17. H

    JavaScript Set breakpoint on loading time

    @EkBass @cbreemer thank you both for your help! I came up with two solutions. Actually, @EkBass idea was close. Let's say I want to find a code that is inserting a new attribute ''data-lodaded=true", in a div with class ''target" The first solution is to insert a "debugger" statement right...
  18. H

    JavaScript Set breakpoint on loading time

    Hello there! Sometimes, I want to locate a code that is changing a DOM element. For example, on Chrome I can set a breakpoint "On attribute modifications" for a specific DOM element, so the browser will break when such element has attribute modifications, and I can inspect the code. However...
  19. H

    JavaScript Safari can't play videos with sound using IntersectionObserver

    I am using Safari 15.6, so maybe the new versions fixed that bug
  20. H

    JavaScript Safari can't play videos with sound using IntersectionObserver

    It is OK! Your answers are always welcome.
Back
Top Bottom