Jump to content

Funce

Moderator
  • Posts

    602
  • Joined

  • Last visited

  • Days Won

    19

Posts posted by Funce

  1. On 9/13/2019 at 8:03 PM, Raktim said:

    But, those 2 string does not full match.

    1 string only charecter 5 is matched and 2nd string only F8 are matched. But I want to do match the complete string. How to modify that?

    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?

     

    On 9/13/2019 at 9:40 PM, Raktim said:

    I want to make that input take only 2 number at least one lowercase, one uppercase and at least 8 characters except number.

    I tried this pattern...

    
    (?=(.*\d){2})(?=.*[A-z])(?=.*[a-z])[A-z!"#$%&'()*+,-.\/:;<=>?@[\]^_`{|}~]{8,}

    But it totally fails. Then what should be my correct pattern to do that?

    I want Like...

    Abc4k9h2L ->FALSE

    Abc4k9hL+ ->TRUE

    Abc4l@s$kl4 ->TRUE

    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)

    • Thanks 1
  2. 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.

  3. 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>

     

  4. 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?

  5. 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.

    • Thanks 1
  6. 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)

  7. 23 hours ago, Christopherp said:

    Aha - understood.  Will search for a dropdown closing event

    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)

  8. 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.

  9. 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...