I have a problem with loading my VBscript in html. I tried to test a simple sample, but it doesn't work:
My html:
<!DOCTYPE html>
<html>
<body>
<head>
<script src="login_VBS.vbs"> </script>
</head>
</body>
</html>
login_VBS.vbs:
msgbox "this is a message"
I can not make it easier, but when I check the view source from IE, the vbs doesn't exist in my source. Any ideas?
Use valid HTML - like:
<!DOCTYPE html>
<html>
<head>
<script language="VBScript" type="text/vbscript" src="test00.vbs"></script>
</head>
<body>
</body>
</html>
and one (or both) scripting language specification; of course the .vbs must exist (in the parent folder of the .html file, if you don't use a full/absolute path).
Make sure you have gave correct filename with correct location, this should work
<script type="text/vbscript" src="VBScript_file_URL"></script>
Check this and also this, also make sure whether the file exists or not.
Related
I was asked in an assignment to output my name to the dev tools console from my html file, can anyone help me with this?
You print to the console, using console.log(). This must be in JavaScript. In an HTML file, it might look like this:
<html>
<head>
<!--Your Head-->
</head>
<body>
<!--Your Body-->
</body>
<script>
console.log("My Name");
</script>
</html>
Just use console.log:
console.log("Your name");
We can use onload function on the body tag to execute an inline script
<!DOCTYPE html>
<html>
<head>
<title>Document</title>
</head>
<body onload="console.log('Mohammed Fuhad')">
</body>
</html>
I have a very simple code but when I go running it in chrome it's blank. Other files work fine. I do not know what to do;
Move the Title inside Head
and Close the tag.
If still doesn't work, refer following code:
<!DOCTYPE html>
<html>
<head>
<title>Future Technologies: Asteroid Mining</title>
</head>
<body>
<p>Asetroid Mining</p>
</body>
</html>
I have a processing program which I want to display on a browser in an html file. I found an instruction on https://cs.nyu.edu/~kapp/cs101/processing_on_the_web/. It still does not show up in my webpage. I also tried it with the same code from the instruction and it still does not show up. I am using chrome and my html code looks like this:
<!DOCTYPE html>
<html>
<head>
<title>Bitmap?</title>
<script type="text/javascript" src="processing.js"></script>
</head>
<body>
<h1>Text</h1>
/* #pjs preload="Karte_schweiz_zentriert.jpg","bitmap_zentriert.jpg"; */
<canvas data-processing-sources="bitmap_map_comparison.pde"></canvas>
</body>
</html>
I have the .html file, processing.js, the two .jpg pictures and the bitmap_map_comparison.pde processing code in one folder called bitmap_map_comparison.
Does anyone know where the problem is?
You are using src incorrectly. Unless you have ProcessingJS in the exact same folder as the program, it will not import as it does not exist. Use this instead:
<script src="https://cdn.jsdelivr.net/processing.js/1.6.6/processing.min.js"></script>
Edit: I'm just now realizing that I'm 3 years late and this probably won't help anyone.
My folder looks like this Initial (folder\css,img,js,vbs,Main.html,Sub.html,sup.html)
I am supposed to link the .vbs script here and have it run from the file but it opens up a new window and shows the code from that file. I have tried script tags inside the link but it didn't work out very well.
My code looks like this:
<html>
<head>
</head>
<body>
Link
</body>
</html>
Use HTML like this
<!DOCTYPE html>
<html>
<head>
<script language="VBScript" type="text/vbscript" src="yourfile.vbs"></script>
</head>
<body>
</body>
</html>
Check this
It has been working... But I don't know why it is not working anymore. I am using Django to set up a local server (?) and I use MySQL for something else. The .css file is into a folder where the .html file is located, and like I said before it has been working.
My code inside the head:
<!DOCTYPE html>
<html lang="en">
{% load static %}
<head>
<meta charset="utf-8" />
<title>JFP</title>
<link rel="stylesheet" href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/bootstrap.css">
<link rel="stylesheet" href="main.css" >
</head>
<body>
<div class="header">
...
My .css is not worth mentioning, is it?
Solved
The problem was: indeed a wrong reference to my .css file. I was scrolling in my Terminal to some MySQL command from the moment there was not yet an 404 fault. It had to be:
/static/main.css
Thanks a lot
If the CSS file is in External server the code is
<html>
<head>
<style>
#import url(stile.css);
</style>
</head>
<body>[...]
</html>
Likely an error in the CSS file. Run it through a validation checker. Also ensure you are referencing the correct elements within that css file.
And as others has said, check the browser console for errors loading either resources.