User Profile

Collapse

Profile Sidebar

Collapse
RKZA
RKZA
Last Activity: Oct 26 '07, 08:52 AM
Joined: Mar 14 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Hi airwinx,
    I would not recommend refreshing the page, to dynamically generate more options. Its not very userfriendly to see the page flash on refresh, and make the browser do more work than is should. Yyou should look further in to AJAX's were you can set up an xmlHttpRequest( ).
    So basically you send a server request using javascript for a file. It will make your application feel more responsive and improve usability.
    To...
    See more | Go to post

    Leave a comment:


  • RKZA
    replied to javascript validation error message
    Hi dude,
    So if you want to check that you check box is ticked, you would write

    [HTML]if(!mycheckbox. checked){ //what ever code }[/HTML]

    R.K.
    See more | Go to post

    Leave a comment:


  • RKZA
    replied to javascript validation error message
    Hi,
    Just focusing on the script in bold i can identify a simple error,
    you have have forgot to open your curly bracket, see below,
    if(document.frm .username.value .length > 18 || document.frm.us ername.value.le ngth < 5) { <<<<missing bracket
    [HTML]var regExp = /^[A-Za-z][A-Za-z0-9_]*$/;
    if(!regExp.test (document.frm.u sername.value))
    alert("no special characters or spaces in 'username'")...
    See more | Go to post

    Leave a comment:


  • RKZA
    replied to javascript validation error message
    Yip I think it be best to close the if statement after the variable "len".

    For your line six you don't need the for statement to find set focus on the form field username, just keep the code: document.frm.us ername.focus(). This goes for the same in you passward section.

    Now the only reason i can think of what you were tring to achieve with your for statement is to highlight all the characters in the text field....
    See more | Go to post

    Leave a comment:


  • RKZA
    replied to javascript validation error message
    Hi,
    I had a quick scan through your code and I think for the first if statement you have not closed off with a curly bracket "}".

    R.K.
    See more | Go to post

    Leave a comment:


  • RKZA
    replied to semi transparent
    Hay philleep,

    Now if you what semi-transparency in IE theN use the code below, but be warned ;¬) even though it works it will not validate through W3C CSS Validator.
    So you use opacity in FireFox and Opera and Netscape, use filter in IE.
    Just put it in a separate css file.
    Try it out...
    Code:
    .ClassName {
    filter:progid:DXImageTransform.Microsoft.BasicImage(opacity=0.75);
    }
    You must...
    See more | Go to post

    Leave a comment:


  • I see the error of my ways, sometimes I can be so blind...
    Anyway I believe I have corrected the errors
    • Got rid of the forward slash in the head script element
    • There were one too many closeing div tags


    Heres the code:
    [HTML]<link type="text/css" href="index.css " rel="stylesheet " />
    <script type="text/javascript" src="foo.js"></script>
    ...
    See more | Go to post

    Leave a comment:


  • Hay dude,
    I have fix your XHTML, just a problem with the script tags.
    There are a few problems with your css for cross-browser compatibility, tip try not to use margin to position some of your elements.
    Anyway Here is your XHTML,

    [HTML]
    <link type="text/css" href="index.css " rel="stylesheet " />
    <script src="foo.js" type="text/javascript"/></script>...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...