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. O

    PHP Why does ../ work but not / for relative file paths?

    The root contains the folder.
  2. O

    Node.JS I can't go to another ejs page.

    Talking about <a href="/about" >About-1. Описание</a> </br> 'First, where is the page? Let's assume it's in the same folder as the page with this anchor. Remove the /. This is relative shorthand for the root and not the folder you are in. Next, every page needs a suffix. For most websites, it's...
  3. O

    JavaScript My story not work according to video and image in all browser with audio

    Please use the </> icon in the tool menu to paste code. Please redo this and paste a separate section for the html and another for the css. And if you're using anything that is only on your computer place it on the web where we can get it and add it to the mix.
  4. O

    PHP Why does ../ work but not / for relative file paths?

    Exactly like I said - using the / I get the error: No such file or directory in C:\wamp64\www\VscPhp\home\index.php on line 2 (side note: I thought it would be C:\\. The root.) But ../ goes up 2 folders - The first is home the second is _data FYI I am using VSCode and Wampserver to do this on...
  5. O

    PHP Why does ../ work but not / for relative file paths?

    And where is file your code is in. No matter where it is the '/' won't work. What I should ask is: What are the real (full path name) paths for both files.
  6. O

    PHP Why does ../ work but not / for relative file paths?

    ../ is a relative path that says the file is in the folder that is one level higher than the current directory. ./ is also a relative path that says the file is in the same folder as the current file. / is always the root of the current file.
  7. O

    JavaScript Why use parentheses to seperate statement in if statements?

    I use parentheses so the thing makes sense to me - You don't need them for things to work you have them so if you need to troubleshoot or change things you don't waste a lot of time trying to figure complicated statements.
  8. O

    JavaScript Please Help me make the computer game work correctly?

    This is because #result{... display: none; } The JS will reveal it here if(birdTop >450|| ((blockLeft<50) && (blockLeft>-50) && ((birdTop<hTop) || (birdTop>hTop+100)))){ result.style.display="block"; // REVEALED HERE text.innerText='Your final score is :${score}'...
  9. O

    JavaScript Please Help me make the computer game work correctly?

    Yanni, Please use the </> icon in the message toolbar above the text box to paste your code Makes things much easier to copy and paste for us. If you had a good text editor, like VScode, you would have seen two errors in the JS. ((blockLeft<50) Should only have a single parenthesis and the line...
  10. O

    HTML & CSS Can someone please help?

    When you put code here - use the </> in the toolbar to enter it. I don't know what you want. Please re-think what you want and ask again. OH, there is no night/day button.
  11. O

    HTML & CSS Integrated the burger menu in the navbar (but not only...)

    Because this will take a lot of explaining I'm giving you a link to an easy-to-understand site. Read it all before doing anything and good luck: https://alvarotrigo.com/blog/hamburger-menu-css-responsive/
  12. O

    JavaScript Mobile navigation menu immediately closing when opened

    Just a guess: When the nav bar opens this func sees it as a scoll and if the nav bar is 216px the func closes it.
  13. O

    HTML Suspicious Developer

    Just using the code you provided I see NO action to the form - That's where the form is sent AND the input button doesn't do anything. I went to the site and find nothing like this form anywhere.
  14. O

    JavaScript Javascript parse JSON elements ok on PC Chrome but undefined on Android Chrome

    Paulo, I need more info like the HTML and the call to the json file so I can try it myself.
  15. O

    JavaScript Creation of a virtual notice-board

    Use the "style" tag, not the inline version, in the head to style your html. End every javascript command with a semicolon. MOST Importantly setTimeout() executes only once. Use setInterval() when you want it to repeat. Because you placed the time control in the function - the function will...
  16. O

    JavaScript Need Help With Tree View Actions

    Using the example on W3Schools, because you didn't give us code, I just added for (i = 0; i < toggler.length; i++) { toggler[i].parentElement.querySelector(".nested").classList.toggle("active"); toggler[i].classList.toggle("caret-down"); }; So the whole page would be: <!DOCTYPE html> <html>...
  17. O

    JavaScript Close all the <details>

    Have you tried detail.setAttribute("close");??
  18. O

    HTML & CSS Bootstrap

    I was tricked into using bootcrap. It does what it says it will, but you won't be a coder if you go that route. Man up and learn HTML/CSS/JS. That will require the same amount of study and when you run into a problem later on you will be able to solve it and not run around like a chicken without...
  19. O

    JavaScript get max sum of multiple functions

    Variables defined inside of a function can not be retrieved outside of the function. The function must pass them to the outside. So the return statement of each func has to be rewritten and 'b' must be declared in func r3 <script> function r1(){ var x = 5; var a = 10; var b = 10...
  20. O

    JavaScript How do I use currency converter to show new currency in html

    I am not going to use your code - too many things are not defined. I'll give it in words. You enter your amount of bitcoins and hit the calculate button. This calls a function. That function gets the bitCoinAmount, then gets the ZAR. It then removes the conversion factor for the currencies you...
Back
Top Bottom