Jump to content

Funce

Moderator
  • Posts

    602
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by Funce

  1. Perhaps you could include a small snippet of code that is showing the problem?
  2. Make sure to take note of the URL of the websites you visit. W3schools pages will be under the domain https://www.w3schools.com/ The site you have linked is indeed fake, and I have removed it so others do not visit it unnecessarily.
  3. Just a small error on the website server. I don't know the details, but it seems to have been fixed.
  4. Funce

    TimH

    Just a small interruption of service there. It looks like its fixed now.
  5. Fear not! The website is back up and running again.
  6. Funce

    W3 Broken?

    Your guess is as good as mine. Thankfully its fixed.
  7. The momentary interruption has been fixed. Thank you for reporting this.
  8. It seems there was a small interruption in service surrounding the w3schools website. But it looks like it has returned to normal operation.
  9. There's no particular character per say, but if you create separate <pre> elements you can apply this styling in your stylesheet. @media print { .pre-break-after { page-break-after: always; } } Give it a try.
  10. := is invalid JavaScript. Uncaught SyntaxError: Unexpected token :
  11. One solution is to add some margin:auto to your mySlides style. .mySlides { margin: auto; max-width: 50%; }
  12. You've gotta modify this regex so you're using the entire string that matches as follows. (?=(.*\d){2})(?=.*[A-Z])(?=.*[a-z]).* Does this work for this one? And for this one, I've done a negative lookahead, that if it matches more than 3 digits, it won't be valid. ^(?=(.*\d){2})(?=.*[A-Z])(?=.*[a-z])(?!(.*\d){3,}).*$ Does this work for this one? Ab45 -> Match a4F8 -> Match aosjgHJ35 -> Match JsOsm4Osmf6 -> Match JsO2m4Os4f6 -> No match (3 numbers)
  13. Hey Roddy, I had a look through and it seems you get a jquery error on the ones that don't scroll. The error given is below jquery.js:358 Uncaught TypeError: Cannot read property 'length' of null What I found is that you're using jquery.each on some JSON data you receive from search_podcast.php However the only thing I can see I've received from search_podcast.php is: null Compare this with the result from search_letter.php [] And you can probably tell you've got some malformed JSON being returned. I would check the difference between search_podcast and search_letter in their return values. -- On a side note, gc_splash.css is requested 114 times. Although at 8.6KB each, and 150ms response time, that's pretty hefty for 114 instances. You should only need to include this once for a given webpage.
  14. Would something like this work? (?=(.*\d){2,})(?=.*[A-Z])(?=.*[a-z]).{8,} Test data: aaBcde7fg - No Match (1 number) aaBcd67fg - Match 87aBcdfgf - Match 8aBcd7dfg - Match
  15. Is this something you require assistance with? What part are you having trouble with?
  16. Welcome to the forums! This one is a pretty simple fix, all you need to do is add a style to your div. <button onclick="myFunction()">Click Me</button> <div id="myDIV" style="display: none;"> This is my DIV element. </div>
  17. Try posting a code snippet, maybe that will illustrate what you're having issues with.
  18. Hi there Russell, Is this the first time you've set up a web server on your home PC? Is this going to be your local testing server? Is this something you want to be able to access externally? You mentioned another web server, is this hosted online? The error message shown indicates that your browser doesn't know where the server you've set up is. If this server is not going to be externally accessed, have you set up your Windows hosts file?
  19. I'd be more interested in throwing away the iframe idea (I'm quite biased against iframes) and going back to the include and finding out what was wrong with that. What happened with the w3 include, it obviously works in the example.
  20. I've managed to reproduce this. Fix is at end. The error is surrounding the 'hard' wrap attribute. It seems that the new line characters created don't play well and differing browser behaviours are observed. Internet Explorer seems to have an interesting time dealing with the new line characters. IE Query Sent usrtxt: At+W3Schools+you+w%0D%0Awill+find+free+Web-b%0D%0Abuilding+tutorials.%0D%0A When I moved the cursor around in IE to see if I could find these hidden characters, I ran into some weird behaviour (found a character, tried to go over it again, didn't work) and ended up with this being sent (NOTE THE ADDITIONAL "WILL", but the additional B is gone) usrtxt: At+W3Schools+you+will%0D%0Awill+find+free+Web-%0D%0Abuilding+tutorials.%0D%0A Chrome Query Sent usrtxt: At+W3Schools+you+%0D%0Awill+find+free+Web-%0D%0Abuilding+tutorials.%0D%0A I would instead use wrap=soft, and wrap on output instead. There really isn't very many scenarios where you need to use wrap=hard. (I personally haven't found any)
  21. You should be able to re use the event that the hamburger button uses. Try adding an onclick attribute that's similar to the hamburger button (if it has that attribute)
  22. Use the code snippet function to provide code snippets. Try to keep them small enough that they illustrate the problem that you have.
  23. X - Height - Gap is used so that the the second obstacles reach the bottom of the screen. Though "y" would be a better choice (canvas.height) this is immaterial as the code always runs with the width as larger than the height, which is the requirement for the bottom obstacle.
  24. Do you have a snippet of code that exhibits this behaviour?
  25. You should be able to use an advanced text editor such as Notepad++ to be able to search for new line characters, and remove them. If you are referring to programmatically removing the new line characters, then I'd need to know what server side language you're planning to use.
×
×
  • Create New...