Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

javascript

  1. accol

    JavaScript Model validation error when using Fetch or Axios despite returning a status 200 in the backend?

    Thank you to anyone who reads and replies to this. I do not know what I'm doing wrong by this point. I've been trying to connect the React.js frontend to my ASP.NET Core backend. I've tried both Fetch and Axios and I've been getting the same error each time, however it doesn't make sense to me...
  2. H

    JavaScript Help me to auto replace and display image hosted in Google Drive

    I have an id "content", it contains many images Google Drive URLs. So, I have match all URLs and replace them with clickable link. Here is my code $(document).ready(function(){ function replace_content(content) { var exp_match =...
  3. W

    JavaScript How to set, and then update a Datetime updated field?

    Hi forum, I'm using Bootstrap studio 5.3 and currently have a form with 23 fields on it. It's a form a user can save progress on and come back to at a later time or date, so there is a "Date Updated" field that is a read only datetime picker. As of now, I can get the Date Updated field to...
  4. accol

    JavaScript How to animate input placeholder text shaking in React using Framer Motion

    Thank you for reading. I'm trying to figure out how to make each letter of the placeholder username and password text either shake or animate in a wavy motion, however if you type in words the placeholder would disappear and stop animating as typical. I was using Framer Motion & React: Wavy...
  5. JosiahMaybe

    Ubuntu code testing/debugging maybe

    Okay so I am trying to run/debug some libraries on Ubuntu. I can't get VS Code. I have code in Ruby (I can debug via "ruby name.rb"), Kotlin, Swift, and Javascript. I found some online compilers but there are limits to those and terms. I could probably just HTML page a JavaScript and debug that...
  6. Samantha Groves

    JavaScript HTML canvas isnt working properly(I cant draw anything on the screen)

    Hello I have this code and it is supposed to be a drawing app with the ability to choose between up to 3 colors: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Draw a picture</title> </head> <body> <script> let color = ""; let mouseDownVar = 0...
  7. Y

    JavaScript document.body.textContent with replace or replace all

    Hi Guys, Could you please help me to use document.body.textContent in console log on a website? For example I want to change this format of 4.500,00 to 4,500.00 or 4500.00? How is it possible in this way i.e on this site EuroDreams auf win2day - die Spieleseite der Österreichischen Lotterien|...
  8. D3x73r

    JavaScript Shopping cart problem -localstorage

    Hello guys, I cant find problem why my javascript isnt working. Problem is I think with localstorage, when I reload webpage content in cart-box should stay there but it only save first content-box that I added to cart, others disappear but their value like $ stay in total amount . And other...
  9. F

    JavaScript Coding starter here: What are your ideas/knowledge/advises to improve my basic Dijkstra Algorithm game !?

    You can already play in browser and its pretty basic but i lack inspiration and knowledge to improve it. To make it more interactive, more fun and interesting. What are your ideas/thoughts? Next step for me is to implement an I/O of the priorty queue and their weights for the User so he inputs...
  10. miabianco

    Node.JS Help with kurento example

    Hello to all noob here!!! I am working an old example of kurento and i am wondering if anyone can help me. First of all this working just fine as is. I make some changes in the code so with the Join button to join the room and with a call button to make a call and with leave button to leave...
  11. JosiahMaybe

    JavaScript Is there any way to prevent Javascript changing things without site permission?

    So I may have worked out a secure way to sell except that in like my site hackers may be able to bypass like my selling logic. I would do custom country check in Javascript using navigator.geolocation, prefill paddle.com checkout with Javascript. paddle.com checkout starts in Javascript and...
  12. I

    How do I display the new comment in the comments section when added and still keep the submission ajax code?

    My code is below: $commentsQuery = "SELECT username, created_at, content FROM comments WHERE post_id ={$row['id']} ORDER BY created_at DESC"; $commentsResult = mysqli_query($con, $commentsQuery); $commentsCount = $commentsResult->num_rows; if ($commentsCount > 0) { echo "<details>...
  13. K

    JavaScript How to add some tags by default

    I want to some tags by default witch show up time of open the page. This code normally working fine as add tags but when I trying some tags default such as java, html, php etc then code normally working but no show up default tags. Below is my code, please advice me how to do const removeTag =...
  14. Akhter

    JavaScript Sum textbox value with Gridview Column of Credit

    i want to sum Textbox(txtamount) value with Gridview Column Credit value,and display in footer. $(function () { CalculateDebitCredittotal() }); function CalculateDebitCredittotal() { var creditTotal = 0; var debitTotal = 0; $("[id*=gvtrans]...
  15. T

    JavaScript Patch Http request is not working

    I've been trying to use the http requests to update a status of a car, so that it will for example go from 'pending' to 'canceled'. I am using patch because I do not want to update all data but only statusId. But what is strange, is that it deletes the car, and I do not get any errors. Why, as...
  16. O

    JavaScript undefined error in setInterval

    Hello, Help please to stop setInterval after ending print ascii image. setInterval(type, 100); - this type my image and it's ok, but i need to stop after complete, in my script it after complete printing it show: undefined I know that i need clearInterval, i try some examples from...
  17. JosiahMaybe

    JavaScript How to send a PHP save request in client side Javascript?

    Good hi, I am trying to just set a variable to a database and like my starting point is Javascript client side where I am trying to find if this works. var xhttp = new XMLHttpRequest(); xhttp.onload = function() { // use this.responseText; } xhttp.open("SET", "likeMyPHP.php?q=MyData")...
  18. JosiahMaybe

    JavaScript Is element.addEventListener universal or do I need jQuery?

    In HTML pages there are elements and these elements can have event listeners. Like most universal way I have found to set these is element.addEventListener with first parameter for what and second parameter listener. Is say like that with "click" universal? Like could it run on all internet...
  19. JosiahMaybe

    JavaScript Should this hide all in all browsers?

    Hello, trying to have a page entirely hidden, but then show specific elements by ID. Would this part work in all browsers? I have tested in Microsoft Edge on a computer. let count = 0; while (count != document.body.children.length) { document.body.children[count].hidden=true; count++; }...
  20. J

    JavaScript Making a web map with leaflet plugin. Why cant I get a text box to display when certain coordinates are clicked?

    Hey, Im trying to make a web map, and I want a box to pop up when a certain spot on the map is clicked. I think my code is fine & when i click the location, i recieve a 'Click event fired!' in the console log. But the box is never displayed. Github link Any help would be great. I just cant...
Back
Top Bottom