dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: mike-web-dev

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    16
    Views
    2,348

    oh woah really? thats brilliant thank you i was...

    oh woah really? thats brilliant thank you i was unaware of that! i will impliment that across all of my regular expressions! thanks alot!
  2. Replies
    2
    Views
    1,212

    perfect! thank you very much!! :) Knew it was...

    perfect! thank you very much!! :)

    Knew it was a simple fix just didnt no how to amend the html inside the id="title" rather than the id itself, innerHTML seems to do the trick! Thanks!
  3. Replies
    16
    Views
    2,348

    yup got it thank you! all working now! cheers for...

    yup got it thank you! all working now! cheers for the help!! i have implimented the (mk|MK) as you suggested also!

    Thank you once again!! :)
  4. Replies
    16
    Views
    2,348

    ah iv done it! it was the $ i had on the end of...

    ah iv done it! it was the $ i had on the end of the string which was ending the expression! removed it and it now works. here is the finished full code for anyone interested!


    <script...
  5. Replies
    16
    Views
    2,348

    Iv tried this and it doesnt seem to be giving me...

    Iv tried this and it doesnt seem to be giving me an alert message? perhaps if I show you my full code you will better udnerstand why I used the method I have.


    var regExpressPostcode =...
  6. Replies
    16
    Views
    2,348

    ok iv tried this code and now it doesnt display...

    ok iv tried this code and now it doesnt display my alert in any situation?

    here is my new code?


    var regExpressMilton = /^MK(1|2|3|4|5|6|7|8|9|10|11|12|13|15|17|19|77)\s$/;

    function...
  7. Replies
    16
    Views
    2,348

    iv tried your code using a postcode MK1 however...

    iv tried your code using a postcode MK1 however it still displays the alert no matter what postcode is added. here is my full script:


    var regExpressMilton = /^MK(1|15|17|19|77)$/;

    function...
  8. Replies
    16
    Views
    2,348

    sorry i need to include all possibilities between...

    sorry i need to include all possibilities between MK1 and MK15. Sorry this may not have been clear the first time around. If I use your code but include the additional possibilities from my...
  9. Replies
    2
    Views
    1,212

    [RESOLVED] Basic Slide Show

    Iv got this script which changes the image using simple next and previous buttos from a predefined list, however it doesnt change the name or "title" of the image. seems like some code is missing?...
  10. Replies
    1
    Views
    1,005

    never mind i figured it out. change return false...

    never mind i figured it out. change return false to return true and the form is submitted!
  11. Replies
    16
    Views
    2,348

    [RESOLVED] Regular Expression

    Hi Gurus!

    Iv written a regular expression to single out specific postcodes, however it currently returns all postcodes submitted. Could someone take a look at my regular expression and help me...
  12. Replies
    1
    Views
    1,005

    [RESOLVED] Alert before form submission

    Hi,

    I have a very basic postcode validation script which works brilliantly, however I require a new validation adding to this. I want to single out people with specific postcodes, to be mor...
  13. Replies
    7
    Views
    1,068

    Brilliant thank you! yes i am aware that some...

    Brilliant thank you! yes i am aware that some postcodes wont validate as it is but this form is only going to be used by a select set of people in a certain area all of whom have postcodes which will...
  14. Replies
    7
    Views
    1,068

    right ok i see so i need to combine the two...

    right ok i see so i need to combine the two together into one function? how would I go about doing this? my javascript knowledge is very patchy im afraid!





    thanks for the heads up and i am...
  15. Replies
    7
    Views
    1,068

    opps sorry that was a comment which i tried to...

    opps sorry that was a comment which i tried to remove from my code when pasting it into the forum. here is the code with comments removed correctly:

    <script language="JavaScript"...
  16. Replies
    7
    Views
    1,068

    [RESOLVED] form validation

    Hi people, me again. sorry!

    I have two different criteria for two seperate form feilds both using regular expressions, however for some reason the second one is the only one which is applied. The...
  17. i do apoligise if i was confusing regarding the...

    i do apoligise if i was confusing regarding the spaces, but we got there in the end!!
  18. OMG IT WORKS! for anyone reading this thread...

    OMG IT WORKS!

    for anyone reading this thread we finally got there and this is the outcome:

    /^[a-zA-Z]{/^[a-zA-Z]{1}[a-zA-Z0-9]{4}\s*[a-zA-Z0-9]{5}\s*[a-zA-Z0-9]{3}\d{1}(@|!|\&){1}$/;

    Thank...
  19. nope sorry this still accepts spaces but doesnt...

    nope sorry this still accepts spaces but doesnt accept a straight 15 character string.
  20. is there a way i can use a \s? or similar to...

    is there a way i can use a \s? or similar to state, either a space or nothing. Perhaps this bit would be easier to be done with an If statement and two seperate regular expression? perhaps you could...
  21. /^[a-zA-Z]{1}[a-zA-Z0-9]{4}\s[a-zA-Z0-9]{5}\s[a-zA...

    /^[a-zA-Z]{1}[a-zA-Z0-9]{4}\s[a-zA-Z0-9]{5}\s[a-zA-Z0-9]{3}\d{1}(@|!|\&){1}$/;

    ok iv adapted your code to fit the criteria of 5 characters space 5 characters space 5 characters.

    this now works....
  22. if you read my initial post i said i want it to...

    if you read my initial post i said i want it to allow spaces between each 5th character. I tried to write this above but found it did not work, looking at that link you sent i have now re written...
  23. woah that looks helpful thank you!

    woah that looks helpful thank you!
  24. yes i understand the function which is...

    yes i understand the function which is validating. its the expression im not sure on. Iv looked it up and found that \d is a digit? sorry my regualer expression knowledge is very poor. does a digit...
  25. im sorry now uv lost me, what does that mean?...

    im sorry now uv lost me, what does that mean? sorry i need an explanation to this code.
Results 1 to 25 of 47
Page 1 of 2 1 2
HTML5 Development Center



Recent Articles