My code is showing with the instructions on my browsers [closed] - javascript

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 1 year ago.
Improve this question
I am an absolute beginner. Yesterday I noticed my Visual studio code showed colors when I program and it translates to console on my browser but it’s all grey today and my code and instruction all translate to my browser like the picture. enter image description here

You're writing Javascript code in a plain HTML file, that won't work. You need to create a Javascript file or create a <script> tag and place the Javascript code there.

Related

Convert JS Regex to Dart [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed yesterday.
Improve this question
I have a Regex expression working perfectly on the website but I am unable to convert it to Flutter for the mobile app.
Here is the Regex we have on our website
/^(?=.*[a-zà-öø-ÿ])(?=.*[A-ZÀ-ÖØ-Ý])(?=.*)(?=.*[#$!%*?&#|"\\/'()+\-=<>_{}[\],.:;^~`])[A-Za-zà-öø-ÿÀ-ÖØ-Ý\d#$!%*?&#|"\\/'()+\-=<>_{}[\],.:;^~`]+$/
Just use it into TextFormField with validator, also implement the event OnChanged, and AutoValidateMode on user interaction
For Example
Example Code

broadcasting', {cmd: 'send'}); [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 days ago.
Improve this question
I use translation to talk to you because I got tired of searching a lot in Arabic explanations and did not find a solution. I have a chat site programmed with "node.js" with a mysql database and there is a security vulnerability that some users do (check element > control panel) that puts this code "socket.emit('broadcasting', {cmd: 'send'});" is restarting the entire site. I want a solution to this problem. Is there a way to prevent users from placing this code in (check element > console)or any other solution? Thank you.
I tried obfuscating the code but it didn't work

Google Data Studio Community Visualization Doesn't Show Canvas on Dev Mode [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 months ago.
Improve this question
I am setting up the simplest community visualization. It only draws a blue rectangular on the canvas. However, as I upload my code to google cloud bucket and add the visualization to my Google Data Studio, it does not show anything.
Here is my code: https://storage.googleapis.com/gistic_default/myViz/myViz.js
The error shown in browser is: https://datastudio.googleusercontent.com/getThirdPartyScript?vizId=gs%3A%2F%2Fgistic_default%2FmyViz%C2%A0barChart&path=gs%3A%2F%2Fgistic_default%2FmyViz%2FmyViz.js&cacheBuster=1641850894876 net::ERR_ABORTED 500 which looks like GDS can not find the script.
Everything works fine after I uploaded code with linux system.

not able to run modified js code in chrome dev tool [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
I am not able to run the modified code, after modification still chrome is debugging older code. I can see the green color on the web page which denotes that its pointing to the local file saved in my system. But still not able to run the modified code. I am able to do so by using console to modify the js files.
I am really stuck for 3 days and now i am pretty confused whats going on. I searched on google but it seems not working.
Try the below steps-
• Clear the browser cache.
• In case you are using Visual Studio, clean and the rebuild the solution. Or do the equivalent if you are using any other IDE.

PHP Get URL Of Current Page, Not Script [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I realise this might look like a duplicate but I don't think it is. I've looked everywhere.
What I'm attempting to do is get the URL of the page the user is currently on, but I'm attempting to do this in a separately loaded page.
$('#siteStatus').load('/_backend/account/accountStatus.php');
I want to load a script into this div that works out the current page of the url.
At the moment I am doing $url = "{$_SERVER['REQUEST_URI']}"; but this just returns /_backend/account/ and I'm unsure why.
Any help is appreciated.
Thanks to #prasad using print_r($_SERVER); showed an array of what I could use and it turns out $_SERVER['HTTP_REFERER'] was what I needed.
Thanks.

Categories

Resources