www.webdeveloper.com

Search:

Type: Posts; User: sekter

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    14
    Views
    4,682

    I actually had an error message appear next to...

    I actually had an error message appear next to the field to tell them they were entering wrong data on the spot. Not that it matters now since im not using the onkeypress anymore hehe.
  2. Replies
    14
    Views
    4,682

    That was also my logic behind it svidgen,...

    That was also my logic behind it svidgen, basically if i dont want them to use rogue characters in a username then if the keystroke doesnt work they would know immediately rather than later. I dont...
  3. Replies
    14
    Views
    4,682

    Im actually already detecting for errors at the...

    Im actually already detecting for errors at the point that they click the submit button (before submission though) so i guess i could use an onBlur/change instead of the onkeyup/down. This...
  4. Replies
    14
    Views
    4,682

    I actually had it in an array the first time...

    I actually had it in an array the first time however you will still have to cater for things like "CTRL+A", "SHIFT+left arrow", "SHIFT+right arrow" etc. This if ofcourse if you are using...
  5. Replies
    14
    Views
    4,682

    Hi again, Ok after testing the code...

    Hi again,
    Ok after testing the code unfortunately svidgen your code does not work. The reason being is that if you do:
    if (typedChar.match(/[0-9]/)) { //this is only an example if i was using...
  6. Replies
    14
    Views
    4,682

    Thanks both for the reply, Fang you would be...

    Thanks both for the reply,
    Fang you would be suprised how many people just type junk into form fields (I have a large database of members to prove this) so the idea is just to prevent random things...
  7. Replies
    14
    Views
    4,682

    Detecting certain keys onkeydown

    What i need is something as such (based on previous thread): I have a textfield and i want to limit the input to only numbers, letters and caps.
    So the code is:
    <input onkeydown="return...
  8. Thanks Kor, i was actually using this website...

    Thanks Kor, i was actually using this website alot to test for certain keys but when i read the special keys section i didnt realise other keys like arrow keys would also cause problems too.
    Cheers...
  9. Thanks alot Fang i will start using onkeydown...

    Thanks alot Fang i will start using onkeydown from now on.
  10. Ah right your using onkeydown whereas im using...

    Ah right your using onkeydown whereas im using onkeypress that explains it, is it preferable to use the onkeydown instead? (Im just getting mixed up as to which one should be used where).
  11. I did that before however i ran into a problem,...

    I did that before however i ran into a problem, using your code if you allow the 37 keycode (for left arrow) then you are also allowing the "%" character aswell because it has a charCode of 37 and...
  12. Hi Fang, Thank you for that, however if i...

    Hi Fang,
    Thank you for that, however if i needed to allow say for example only letters to be input in a field (including things like backspace, left arrow, right arrow, space) am i right in saying...
  13. Strange onkeypress event with ESC in Firefox...

    Hi all,
    I have the following code:

    <input onkeydown="return testKey(event)" type="text"/>
    function testKey(evt)
    {
    var charCode = (evt.which) ? evt.which : event.keyCode;
    alert(charCode)
    }
  14. Replies
    3
    Views
    3,186

    Thanks mrhoo that does exactly what i need :)

    Thanks mrhoo that does exactly what i need :)
  15. Replies
    3
    Views
    3,186

    Detect keypress in window

    Is there any way to detect a key being pressed in the window? I have tried the following but it doesnt work:
    document.onkeyup = KeyCheck;
    function KeyCheck()
    {
    var keyID = event.keyCode; ...
  16. Replies
    6
    Views
    1,525

    View Post

    Hi vwphillips, thanks alot for that function it is exactly what i need :)
  17. Replies
    6
    Views
    1,525

    My question is not how i can get it to execute...

    My question is not how i can get it to execute via page loading or onChange, it is about actually doing what im asking, which is how do i make a drop down the same as another. How this code gets...
  18. Replies
    6
    Views
    1,525

    Sorry Gullanian but did you actually read the...

    Sorry Gullanian but did you actually read the question i posted? This has nothing to do with onChange, as soon as the page loads i want the select to be the same as the other i.e. exactly the same...
  19. Replies
    6
    Views
    1,525

    Make drop down the same as another?

    If i have in HTML:
    <select id="mainDropDown">
    <option value="Default">Select county</option>
    </select>

    <select id="dropDown1">
    <option value="Avon">Avon</option>
    <option...
  20. Replies
    8
    Views
    844

    Nap, still says undefined. Isnt it becoz the page...

    Nap, still says undefined. Isnt it becoz the page has already rendered with the content? Although even that doesnt make alot of sense to me becoz javascript executes from top to bottom so the...
  21. Replies
    8
    Views
    844

    Hey Declan no need to apologise I know you werent...

    Hey Declan no need to apologise I know you werent being rude or anything :), I hope i wasnt either, I always appreciate ppl giving free time to help out. Ok so I have 2 pages again: test.html has:
    ...
  22. Replies
    8
    Views
    844

    I know what AJAX stands for and yes i am using...

    I know what AJAX stands for and yes i am using true as a third parameter:


    xmlHttp.onreadystatechange=stateChanged;
    xmlHttp.open("GET",url,true);

    This is why i am asking that question because...
  23. Replies
    8
    Views
    844

    Getting variable from js using Ajax :S

    Im pretty new to Ajax so this is prob a n00b question, I have the following setup:
    test.html page: with a function:


    <script src="findVar.js" type="text/javascript"></script>
    <script...
  24. Right thats cool i see. Ohhhh ofcourse yeah...

    Right thats cool i see.
    Ohhhh ofcourse yeah will get mixed up with \".
    Thats sweet thanks holland :p.
  25. Sorry my bad that part is correct, the part i was...

    Sorry my bad that part is correct, the part i was wondering about was:


    onmouseout='this.src= ...\/notherpath.gif'
    Shouldnt this be:
    onmouseout='this.src= \"..\/saveBtn.gif\" '

    Out of...
Results 1 to 25 of 56
Page 1 of 3 1 2 3
HTML5 Development Center



Recent Articles