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...
User Profile
Collapse
-
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.Leave a comment:
-
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'")...Leave a comment:
-
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....Leave a comment:
-
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.Leave a comment:
-
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...
You must...Code:.ClassName { filter:progid:DXImageTransform.Microsoft.BasicImage(opacity=0.75); }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>
...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>...Leave a comment:
No activity results to display
Show More
Leave a comment: