Jump to content

Funce

Moderator
  • Posts

    602
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by Funce

  1. Link in what way? Add a hyperlink?
  2. Uh, I'm not sure if there is an option for plaintext input with formatting tags. However if you wish to insert code you can press the button that looks like `<>` to make it look nice. Example: <div class="mySlides w3-container"><a href="/todo#feedback" class="w3-bar-item w3-button w3-mobile">Feedback</a></div> <div class="mySlides w3-container"><a href="/todo#feedback" class="w3-bar-item w3-button w3-mobile">Contact us</a></div> -- PHP is a server side language, and is only processed when you load a page. If you have some invisible 'maintenance' programs to do clean up regularly, you might want to look if your host supports task scheduling. If you want 'live' updates(to affect the page your user is viewing), you'll want to create an AJAX request using JavaScript to query some data page (content.php maybe) which will run the processing you require. You could set this request to whenever your carousel turns, or whichever.
  3. First! Always check your inputs server-side! Clients can send you whatever the heck they want! The required attributes are good enough for people who wish to use your website legitimately, but you have to be careful of those who don't. To get what you desire, you'll want to create an AJAX request. Its not my usual tactic to hand out code, but if you want it HTML: <FORM NAME="Betrugseingabe"> <INPUT TYPE="submit" NAME="Absenden" VALUE="Absenden" ID="Schaltflaeche1" ONCLICK="send_form();return false;"> JavaScript: function handle_response() { if(this.status == 200){ //Output Success or something? //Redirect? //Something happens if you don't error out } } function send_form() { var the_form = document.querySelector("form"); var formData = new FormData(the_form); var request = new XMLHttpRequest(); request.addEventListener("load", handle_response) request.open("POST", "../cgi-bin/DBinsert.php"); request.send(formData); } Disclaimer: Untested
  4. You've positioned your carousel absolutely so everything is ignoring its current location. If you remove that bit of styling, your text will start obeying your carousel dimensions, but you'll need some additional work to get it looking better.
  5. Have you seen this? https://stackoverflow.com/questions/15935837/how-to-display-a-range-input-slider-vertically It seems to work rather well.
  6. Have you seen preventDefault? In conjunction with this SO answer should be simple enough to work out.
  7. You should be able to combine this with an on scroll instead of an on click.
  8. No worries, but if you put a check in SecondClass, you're undermining the point of using classes. It makes SecondClass on its own (and anything else that inherits from it) have more baggage.
  9. Empty constructors aren't inherently bad. I wouldn't see an issue with it.
  10. Would the ThirdClass be inheriting the SecondClass' constructor, and infinitely trying to make new instances of ThirdClass?
  11. Funce

    equation solver

    Are you sure this is solvable, there's too little data for me to figure, ax + by = gcd(a, b) where a = 210, b = 65 Creates a geometric line of 42x + 13y = 1. You're going to need another equation to solve this one. There's a missing piece.
  12. Funce

    equation solver

    One: Have you posted this in the right place? I don't think this forum solves algebra... You'll need another equation to be able to solve that absolutely, but in integer terms x = 13n + 9, y = -42n - 29, n ∈ ℤ
  13. Taking a look through the Matomo docs also reveals JSON to be a valid alternative. I would recommend it due to its simplicity. json_decode() is an inbuilt function specifically for dealing with JSON.
  14. I don't know how your server-side works (nor am I proficient in C to use it otherwise) so I wouldn't be able to help regarding that half, but the idea is below: You'd need to look into a JSON library for C, or otherwise string manipulate all the values into a big JSON object string. Then you can output the string as a response.
  15. Funce

    font size 62%

    Why does this matter? If you're using em or rem you're not after specific sizes, just proportional differences.
  16. Funce

    font size 62%

    You're missing the fact that 14px isn't always bigger than 1.4rem. 14px is bigger than 1.4em when the base(html) font-size is less than or equal to 10px. Try this one instead. Your scenario has other factors in play. It has a base of 11px and is a noticeable difference between the two. Be sure to try changing the html font-size to 9px and see what happens in this example. <!DOCTYPE html> <html> <head> <style> html { font-size: 11px; } body { font-size: 1.4rem; } p { font-size: 14px; } </style> </head> <body> <p>This is size 14</p> This is size 1.4rem </body> </html>
  17. Funce

    Resizable side bar

    Could you link the particular Tryit you have in mind?
  18. You could track which one the user has clicked by using a variable. Send that along with your request for data, and make sure your server only sends back the data for that one page. You'll just also need to send a request when the user clicks on a new tab (so they don't see the old data) in addition to the interval requests.
  19. If you're asking how do I update my select to be populated with server values: Scenario: <select> <option value="[serverValue]">[ServerName]</option> </select> Its not going to be pretty. In this scenario if you wanted to (on the fly) change what this select is you'll need to: Need to manually change the InnerHTML property, remember which one was selected, stop the refresh while the user has the dropdown open. This is also non-standard and I do not recommend it. (NOTE: If this only needed to be populated on page load, I suggest a preprocessing language like PHP, or otherwise) If you're asking for a server value based on what is selected, ie select 'temperature' get 60F or whatever it is at the time, then you may want to have a look at sending values. This would be better. <select name="action"> <option value="temperature">Temperature</option> <option value="height">Height</option> </select> You would then receive the value from the server based on what you sent to the server. Here's a good link for that: https://developer.mozilla.org/en-US/docs/Learn/HTML/Forms/Sending_forms_through_JavaScript
  20. Is it necessary for it to be actually disabled? Is there an aversion to just making it just appear disabled? You could just apply a class, to change the styling, and as a condition for different logic is used when pressed. element.classList.contains("lookDisabled"); I don't want to get into the CSS of such an endeavour, but you should be able to figure it out easily enough.
  21. Can you confirm that there are no PHP errors in your footer? This may prevent additional processing from occurring Does your Footer import in any JavaScript? This may overwrite other JavaScript that your header relies on. Other than that, it just looks like that a click event isn't being bound to the button that reveals everything. But its hard for me to say, all the JS has been optimized to the point its unreadable. I would suggest going onto a WordPress Forum for people who will be able to help you with customizing WooCommerce. This forum doesn't exactly have very many people familiar with WordPress' ins and outs. Not to mention the infinitesimal amount of plugins available.
  22. What are you testing it on? I've tried testing it on my mobile, and in my dev tools. Hasn't came up with anything obvious. Are the links not functional? Does it not reveal itself correctly? Check your file caching limits, do a hard refresh. You may be running on old cached version of your JavaScript. My boss gets tripped up on that one all the time.
  23. Perhaps some code would be useful for diagnosing the problem. You said its live, perhaps a link to that so we can see what's up? I suspect, if you're only having issues on mobile, it may be some interaction with `@media` queries (or some rogue JavaScript). But I'd be hard pressed to figure it out exactly from pictures alone.
  24. I'm pretty sure anyone here would never stop you from asking questions, no matter how trivial the answer may seem. We all start somewhere after all. I'm glad that you've taken the time to ask about it, and implement the solution, and say thanks. I hope you have a great time here.
  25. If you can figure out a method to string manipulate it, you could turn it into some array monstrosity, but you should be able to create a dictionary type thing from it. If you split the `List1 etc` by `&` and then split by `=`, you'll have an array that hopefully looks similar in structure to something like this. [ ["List1", "Apparel"], ["List2", "Men"], ["List3", "Shirts"], ["List4", "Tux"] ] I'm not too familiar with C, personally, but you could look into this for splitting and using a dictionary type structure: https://prdeving.wordpress.com/2017/04/24/how-to-parse-key-value-strings-into-associative-arrays-in-ansi-c89/
×
×
  • Create New...