Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Funce

  1. Funce

    Data Retrieval - Sundry Formats

    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.
  2. Funce

    getting dynamic data for one tab only

    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.
  3. Funce

    font size 62%

    Why does this matter? If you're using em or rem you're not after specific sizes, just proportional differences.
  4. 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>
  5. Funce

    Resizable side bar

    Could you link the particular Tryit you have in mind?
  6. Funce

    getting dynamic data for one tab only

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

    drop down value print for dynamic data

    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
  8. Funce

    onclick disabled button

    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.
  9. Funce

    Woocommerce dropdown menu

    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.
  10. Funce

    Woocommerce dropdown menu

    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.
  11. Funce

    Browser/Coding/Devise issues?

    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.
  12. 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.
  13. Funce

    multiple drop down submit

    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/
  14. Funce

    multiple drop down submit

    This doesn't require anything particularly special. If you want AJAX, you can change the `getValues()` function to send an AJAX request with the FormData object as the payload. Look here: https://developer.mozilla.org/en-US/docs/Web/API/FormData/Using_FormData_Objects If you don't need AJAX, then a standard form submission would take care of this easily. Remove the onClick method and change the button type to "submit". That would submit as per a normal form. (Sending through the action URL)
  15. Funce

    user id

    There's gotta be some error messages in that last lot of code you posted, Html. I can see a syntax error in line 14, an undefined error in line 21. Copying the error messages helps us more than describing them.
  16. Funce

    creating or opening text file from webserver

    Is your server located with a hosting provider? They should have some instruction on if they allow FTP or otherwise. If they allow FTP, you can try FileZilla as a program to use.
  17. Usually font discrepancies indicate that the fonts specified on a website, aren't installed on the machine you're viewing it on. This is usually prevalent if you're specifying a font, but not including the font library on your webpage for those that don't have it. However, you stated that you're using google fonts. How are you linking these? Can you create a small example of this? I suspect that your link may have something wrong with it (Maybe a typo or something).
  18. Funce

    date format change

    Here's one which may have some alternatives for you to explore: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local This one however doesn't run on Firefox, Opera and IE
  19. Funce

    Automatic index.html loading

    I see, you'll probably need a server side language like PHP instead. I've misunderstood your issue.
  20. Funce

    Having difficulty creating popup descriptions

    What's your code looking like? It sounds like the document.getElementById("MATCH") isn't matching up with your <div id="MATCH">
  21. Funce

    Universal selector

    You'll need to do H1, h2, h3 and so on https://stackoverflow.com/questions/7539125/can-i-target-all-h-tags-with-a-single-selector
  22. Funce

    Automatic index.html loading

    Have you tried using an .htaccess file? https://stackoverflow.com/questions/17709500/how-to-redirect-all-pages-only-to-index-html-using-htaccess-file-and-not-redirec
  23. Funce

    date format change

    Have you seen: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/time <input type="time" min="9:00" max="18:00" /> This one works on 24hr time.
  24. Funce

    A Flexible PHPMailer Factory Class with Traits

    No worries Roddy, I'm not too familiar with PHPMailer myself, (I went hunting viciously for what msgHTML() was) but from my cursory evaluation (without a PHP parser) it otherwise looks okay.
  25. Funce

    A Flexible PHPMailer Factory Class with Traits

    Hi there Roddy, I'm going to poke some holes in the implementation. require_once shouldn't have an `=` in it, semi-colon at the end. You're calling your PHPMailerFactory as if it had a constructor function, from your latest post it seems like it doesn't. Instead call it like: <?php $newsletter = PHPMailerFactory::create('newsletter', $username, $email); ?>