Jump to content

All Activity

This stream auto-updates

  1. Today
  2. https://www.w3schools.com/tags/att_global_title.asp
  3. Namasthe, What is the use attribute title=about w3schools under <p> element? What is use of it and how we can use? HTML Attributes and you said in my last question this is the correct code you said in my last post according tutorials this is correct code. and this is the link title=about w3schools
  4. You can change how your website appears in Discord and many other places by using OpenGraph <meta> tags. You can read more about it here: https://ogp.me/
  5. I have a thing. I have discord and want to add embed to discord but I can't. This are screenshots
  6. Yesterday
  7. Last week
  8. You probably will have to find a forum where people specialize in Visual Basic. Almost nobody uses Visual Basic, I think even Microsoft discourages its use in favor of better maintained languages like C# or even Javascript.
  9. Basically, I want to make the app open when I double-click the file in Windows Explorer, like when you double click a .WAV file and it opens Windows Media Player, opening the file without having to manually open the file after the application starts. I want to do the same so when I open a file in my application, it detects that I am trying to open the file, and auto-opens it if it is compatible.
  10. I got it to open the application when I right click and clicked my app, but the picture didn't open. Same thing with Double clicking. I looked for code online with no success; Google only found how to open in Visual Studio, not what I wanted. Not to be mean, but if I don't get any answers again, I will be quitting for VB on this page and look for an alternate VB Forum. Twice, I ask for help here on this Forum about Visual Studio/Basic, and nobody answers, and can't change tags for better luck. Frustrating. However, I may still ask about other codes if I get answers. Anyhow, I want to use this highlighted "Open with..." command, or replace "Open (the app, and manually open file by drag-and-drop to the app)" and have it open. Automatic, not with open and drag-and-drop. I want to open when I double click. I need code to link the opened file like I did drag-and-drop to a picture tool to auto open, unless I opened the app alone... Let me know if you need the current code. Please, PLEASE give me help, thank you for the help. Any help WOULD BE APRECIATED.
  11. Those characters would be something like left arrows and right arrows. Your document's character set has not been specified. You need to do two things: In your code editor, make sure that the character encoding is set to UTF-8 before saving the HTML file. Add a <meta> tag in the <head> indicating which character encoding is being used in the document like the following: <meta charset="UTF-8">
  12. I have to agree. W3schools is great and I've used it to my advantage. I have used a script or two from your examples. In these scripts a w3.css is used. Are these available somewhere? I would like to add parts to my css file.
  13. HI, I'm sorry to have to ask a newbie question, but I cannot explain what's happening. I'm creating a website for a local foundation. On this website I'm using one of your beautiful scripts for a slideshow of the pictures of our events. This works perfectly. Only, I get strange characters on the buttons and I don't know where they come from. When I run the page locally, the buttons are fine and without any additional characters. Can you help me solve this? For an example: https://www.degroenepoortoost.nl/NL/ImpressieBloemperkInzaaien.html
  14. The JavaScript table sort algorithm on the page "How TO - Sort a Table" is quite inefficient. Not only does it use the infamous quadratic "bubble sort", but is also updates the table unnecessarily often. I was just learning JavaScript and HTML and was frustrated to find no reasonable example anywhere on the internet; so I made one myself 😁. Please use the attached algorithm, which is basically the same, but with three improvements: - Faster sorting by using binary insertion; - updates the table only when needed; - uses textContent instead of innerHTML so it is not distracted by invisible data. Feel free to adjust the program to your style. If you are interested, I am happy to spice it up with some comments for legibility, but it is quite trivial anyway. Jurjen tablesort.js
  15. Earlier
  16. The information you pass to the send() method of the XMLHttpRequest object is just a string. The Javascript variable "data" does not exist in the HTTP request, it just holds the string "Test String" temporarily on the client side. The variable name "data" has to be included as part of the body of the request, like this: xhr.send("data=Test String");
  17. I made a mistake when I submitted the topic. The variable in the $_POST(......) should have been "data" not "d" but it still has the same error. I didn't submit the code correctly I hope this is better . I am using $_POST as the string that gets passed can be quite long, up to 56 names. This is a correct submission of the "TestProgram.php" <!DOCTYPE html> <html> <head> <title>Test program</title> <script language="javascript"> function formatOutput() { // lots of formatting goes on here var formattedText = "This is a test"; //test data getGame(formattedText); } function getGame(str){ //Sends data to the php process "save Game". var data = "Test String"; var xhr = new XMLHttpRequest(); xhr.open("POST", "saveGame.php", true); xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xhr.onreadystatechange = function() { if (this.readyState === 4 ){ alert(xhr.responseText); } }; xhr.send(data); } </script> </head> <body> <table width="1000" align="center" border="0"> <br /> <tr> <td width="500"align="center" colspan="3" <button onclick="formatOutput()"/>Click on me</td> </tr> </table> </body> </html> This is then supposed to pass the data to the "saveGame.php <!DOCTYPE html> <html> <body> <?php $outputString = $_POST["data"]; $fp = fopen("C:\\xampp\\htdocs\\BowlsClub\\GamesSaved\\test26.txt","w"); if (!$fp){ $message = "Error writing to file. Try again later!" ; }else{ fwrite($fp, $outputString); $message = "File saved!"; } fclose($fp); echo $message; ?> </body> </html> The error occurs at line 6 ($outputString = $_POST["data"];) . It states that "data" is an 'undefined array key'. Screen shot of error attached. Is it possible to edit a topic once it's been submitted. I couldn't find any help on it. jjack46
  18. Spaces are important in HTTP requests. You've sent this to the server: "?d = data", so that key would be "d " and the value would be " data" If you remove the spaces it should work. It would be better to use $_GET than $_REQUEST to make it clear where the information is meant to come from. $_REQUEST also searches for data in POST data and cookies.
  19. I'm attempting to pass a text string from a javascript process to a php process, using XMLHttprequest, and am getting an 'undefined array key' error. The php process should save the string to a file. It appears to pass the string to the php code okay as it returns the message 'File saved', but it also gives the error message 'undefined array key' on 'data' on line 2 of the php code. I appears to be saving a blank string to the text file as it overwrites any previous saved text in the file. So it looks like no data is being passed to the php codebut it is still try to save it. I'm no sure whether the problem is on the javascript side or the php side. The attached files are test code which reproduces the error. Clicking on the button in 'TestProgram.php will attempt to pass the test string to 'saveGame.php which should save the text string to 'test26.txt :- Any help would be much appreciated. TestProgram.php saveGame.php test26.txt
  20. The value of top has to be a number, it cannot be "absolute". "absolute" should be the value of the position property. The element which wraps around the overlay should have a relative position. I cut out some superfluous elements and changed some of the code back to what it was in the original W3Schools examples: https://www.w3schools.com/code/tryit.asp?filename=GSU8T8H7Z2IN
  21. Hi all, Since I am relatively new to CSS / HTML coding, I find the w3schools' online tutorial extremely useful. However, I would like to combine the two tutorials that I have came across. 1) https://www.w3schools.com/css/tryit.asp?filename=trycss_image_gallery_responsive 2) https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_image_overlay_title My intention is the put 3 images per row (like instagram feeds) in one of my portfolio I have tried to combine the CSS but the overlay .container doesnt seem to be overlaying on the image https://www.w3schools.com/code/tryit.asp?filename=GSU5M70LOKO8 Hoping someone will know how to advise. Thank you all in advance!
  22. --- I was accepted to test GitHub Copilot and its amazing. Here is some info on how it work. Crazy... Have you tried it? What do you think.... M.Sc. Magnus from Sweden
  23. I am a Electrical engineering graduate,self-taught web and software designer, coder and nature lover. I give more importance to be creative and unique. I have a strong interest in the field of software design and programing. I like to know how different tech works, knowing how things work will let me know how it can be broken, knowing how to break will let me know how to prevent the breach. I'm a person who likes to constantly upgrade myself and contribute to the tech industry.
  24. Slightly disconcertingly, though, I find that Notepad++, which I use, doesn't show the code formatting colours when I put the inverted commas around the php. This makes it look as if the code won't work, although clearly it does.
  25. If you want to write a program on your own PC I don't understand why you wouldn't use vb.net or the like. Do people just want the program to operate through their browser? Anyway thanks for the link, I'll have a look. Actually I guess I can just use php instead. All I'm trying to do is make a cURL command so php ought to be adequate. Maybe Python is for full blown applications that run on the server. There's a handy converter here https://reqbin.com/req/java/c-w7oitglz/convert-curl-to-http-request
  26. It seems that W3Schools does not explain how to set up and use Python on the server-side, maybe because it is very common for people to use Python for programming on their PC rather than as a server-side programming language. I don't use Python myself, so I can't tell you how it works. This page seems to have some explanations: https://pythonbasics.org/webserver/
  27. OK, thanks. But then how do I actually use it? Presumably I have to put something in my file like I do with php: <?php.....?> I have looked over the Python tutorial and I can't see where it tells me this fundamental piece of information. It only seems to talk about using it on my own PC. Maybe I have to use a module and have my Python code separate from my other code? Edit: No it's not that. When I try that I get the message "non-JS module files deprecated".
  1. Load more activity
  • Create New...