www.webdeveloper.com

Search:

Type: Posts; User: scoper

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    21
    Views
    1,722

    yep... see its easy really! :D

    yep... see its easy really! :D
  2. Replies
    21
    Views
    1,722

    yeah, or it might be easier to call paddLeft in...

    yeah, or it might be easier to call paddLeft in the redir function


    like so:




    function redir() {
    var pgno = document.getElementById('pageno').value;
  3. Replies
    21
    Views
    1,722

    function padLeft(val) { var output = val; ...

    function padLeft(val) {
    var output = val;
    for (var i = val.length; i < 3; i++)
    output = "0" + output;
    return output;
    }
  4. Replies
    1
    Views
    650

    offsetHeight is a good multi browser property

    offsetHeight is a good multi browser property
  5. Replies
    21
    Views
    1,722

    there is nothing wrong syntactically with the...

    there is nothing wrong syntactically with the line... it might just be a bug in the editor :)
  6. Thread: 2 second delay

    by scoper
    Replies
    3
    Views
    769

    var timer = null; function keyup2sec(){ ...

    var timer = null;

    function keyup2sec(){
    timer = window.setTimeout(ajax(), 2000);
    }

    function clearIt() {
    if (timer) {
    window.clearTimeout(timer);
    timer = null;
  7. Replies
    21
    Views
    1,722

    whats unsure about using the keyCode method?

    whats unsure about using the keyCode method?
  8. Replies
    21
    Views
    1,722

    the input size is easy... simply size="3"... ...

    the input size is easy... simply size="3"...

    as far as the dynamic input validation is concerned... heres something i prepared earlier :p



    function checkInput()
    {
    var code;
    if...
  9. Thread: 2 second delay

    by scoper
    Replies
    3
    Views
    769

    if you start a timer on keyup which should call...

    if you start a timer on keyup which should call your function and clear the timer on keydown... that should do it...

    This should help you get started...

    JavaScript Timers -...
  10. Replies
    21
    Views
    1,722

    the main thing here is to ensure that the button...

    the main thing here is to ensure that the button you use isn't a submit button, but a standard one...



    function redir() {
    var pgno = document.getElementById('pageno').value;
    ...
  11. he has overflow:auto in the code above so i guess...

    he has overflow:auto in the code above so i guess hes using a scrollable container ;)
  12. Replies
    1
    Views
    468

    onblur is the best event to handle considering...

    onblur is the best event to handle considering the behavior of onchange differs between browsers
  13. Theres no real easy way of doing it, but you can...

    Theres no real easy way of doing it, but you can get the viewable area of the div using offsetHeight, you probably already have the line-height from your css and any padding on the div... from there...
  14. Replies
    3
    Views
    551

    there is a property of document called forms...

    there is a property of document called forms which is an array of all the form elements in the page... you could find the relevant form and post it manually?
  15. Replies
    2
    Views
    720

    It seems that you have copied the aspx page but...

    It seems that you have copied the aspx page but not the aspx.cs codebehind page.
  16. Replies
    2
    Views
    1,774

    window.frames['framename'].location = url

    window.frames['framename'].location = url
  17. Replies
    3
    Views
    551

    Is there a question in there?

    Is there a question in there?
  18. Thread: cool buttons...

    by scoper
    Replies
    1
    Views
    629

    Search google for "javascript image rollovers"...

    Search google for "javascript image rollovers" theres lots of code around
  19. Thread: Hidden div help

    by scoper
    Replies
    3
    Views
    662

    it should be exactly the same code, only instead...

    it should be exactly the same code, only instead of handling onchange (as you would with a select) you handle onclick
  20. Replies
    3
    Views
    496

    im pretty sure that \D is the same as [^0-9]...

    im pretty sure that \D is the same as [^0-9] therefore if there is a decimal point in the string it will be replaced with an empty string.
  21. Replies
    2
    Views
    1,400

    You could handle the onsubmit of the form, if it...

    You could handle the onsubmit of the form, if it fails validation return false



    function Validate() {
    if (...)
    return true;
    else
    return false;
    }
  22. Replies
    5
    Views
    40,170

    If you are only interested in displaying 1 of 2...

    If you are only interested in displaying 1 of 2 pieces of text, then simply:

    obj.innerHTML = Math.random() > .5 ? text1 : text2;

    should do the trick

    if you need more than two, then have a...
  23. Thread: Form validation

    by scoper
    Replies
    1
    Views
    755

    There is an error in the email test method, which...

    There is an error in the email test method, which is stopping the script and therefore not getting to the telephone test:



    if (reg.test(value)) {


    should be
  24. Thread: Runtime error

    by scoper
    Replies
    3
    Views
    1,298

    If this is happening on pogo.com, then there is...

    If this is happening on pogo.com, then there is nothing you can do about it. It will be a problem in their script and they will have to sort it out.
  25. Replies
    3
    Views
    860

    You are setting the timeouts at the same time,...

    You are setting the timeouts at the same time, you need to set them after the previous one has finished
Results 1 to 25 of 80
Page 1 of 4 1 2 3 4
HTML5 Development Center



Recent Articles