I’m using a Line Chart of Google, I take data from a database of MySQL, to show points of some variables at different datetime. The sample time is 1 minute, but ocationally some points are loss (dont worry about the reason), so when I create de chart, the distance between two point is the same for 1 minute or 1
Tag: javascript
Preventing passwords showing in source code
I am doing a password manager web app (like LastPass etc), one of the things that has occurred to me is that after using PHP to retrieve the passwords from a db and decrypting them and then using JS to display them in the UI, the variables containing their passwords are visible if someone looks at the source code. Even
Get date-time value instead of default dd/mm/yyyy –:– — on Edit
I have created a bootstrap Modal from which I am taking Debt information, now on debt creation, I don’t have a problem with dd/mm/yyyy –:– — as default (I can remove it using JS and put a placeholder) but when I edit the debt entry, i want to display the values entered instead.. Debt Entry Editing of debt where I
Keeping a php script active
I was thinking of uploading some huge images onto my webpage and figured I could possibly optimize the load using a special image viewer with zoom functionality. As I’ve understood from long ago is that browsers have certain limits when it comes to image dimensions, and possibly memory as well. The workaround for the simple task of just displaying the
Laravel 7 – Update value of checkbox without form or button
I’m stuck with my project, please help… This is the situation: In my project I have to assign a teacher to give permission to grade students, because a group can have 2 or more teachers, but only one has to have permission to grade, so… I added a column in my table ‘teachers’ in the database with the name ‘grade’
javascript form not validating fields
I’m trying to validate a form via javascript onSubmit, then run the php captcha verfication and email send action. The problem is that every time I try to check the fields, I can see just one of them highlited with my CSS classes (seems to be related to the ‘return false;’ which blocks me). Anyone has a clue? Here’s my
how to get checkboxes values by name and check if these value exists in another array, become checked jquery laravel?
I’m trying to get values from checkboxes by their name, and check if these values exists in another array, if exists, so the values that exists, become (checked) by press a button, I use jquery for that, and tried a lot of ways but all checkboxes stills unchecked although I passed their values in if statement. Checkboxes: script(jquery): it’s supposed
How to insert a photo from the database into the slider
There is a code that produces photos added to the database. I tried to insert this code into regular js sliders, but all I got was a bunch of photos superimposed on each other and a slider that didn’t work. How can I make a slider out of this code? Here is how the code looks when this script is
Convert to accordion
I’m new here. I’m trying to convert my <li> into an accordion in the mobile view. I actually have something similar to: And I have this on the footer.php But it shows me “Uncaught TypeError: oTab is undefined” So every time I click on the li it displays the related div description. Now I’d like to convert that into an
If I click on Tab, it doesn’t response. Why?
Problem is I cannot click the Tabs on the website and If i click on Tabs; it show Uncaught Type Error: Cannot set properties of null (setting ‘value’). Is there any way to fix this? Also, I am a beginner and I don’t know how to fix this. Codes are written in PHP and Javascript. Above codes are index.php codes.