Skip to content
Advertisement

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

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

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

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.

Advertisement