Skip to content

Tag: javascript

How can I call a Javascript variable on PHP(HTML)

So what I’m trying to do is something like this: I want to name the new dynamic textbox. So I could call it later on another PHP page. Answer You have to send the javascript value through ajax POST to the server and read the post via php. Not so sure what your aim is but let me know if

how to include javascript inside html

Sorry for asking this silly question. I got stuck to include a javascript file in my html page in a php project. when I try this it works fine- <script type=”text/javascript” src=”script.js”></script> But when I want to load the script.js file from my js directory it does n…

How to handle error from controller using PJAX in YII2?

I am using Yii2 Pjax widget which is unable to throw error from controller due to which I am unable to log error for users when there is any error coming from the controller. PJAX code CONTROLLER code: I have tried below clientOptions but not working Also used javascript but no help :- Is there any way from w…

HTML Log System with javascript or maybe php

Hi I tried to make a log system panel to my website. The code is works fine because if you write the text into the input field it will show up. But if you reload the page it will disappear. So my problem is the disappearing text. I want to do this when I type the text so it doesn’t