The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Very busy

I'd be delighted to help Andrew, but as always i'm very busy.

If you could edit your post so i can see the objects being refered to and the important functions relating straight away (use bold and color or something)
then i can help you, otherwise i don't have time to look at it and work out what's going on.

if the user checks a text box say username, and the username text box is empty or there verification textbox for the username it will display a error "Enter Username to " & "change username" in username textbox and the verification split. After a while the boxes should clear and show an empty box.

Now Heres my problem.

If the user starts to type in the textbox the textbox it clears after a certain amount of time emptying what they have wrote, so basically I need to check whether the user has started to type and cancel the timeout function to clear the textbox.

Not tested (as per usual)

<input type="checkbox"
onclick=" (this.checked)?
var tim=setInterval('sflash()', 600);
:
(tim)?clearInterval(tim):return false;"
>Note:
This is a logic bundle and is NOT tested. I've written it nicely, but in reality it would look like:
"(this.checked?var tim=setInterval('sflash()', 600)tim)?clearInterval(tim):return false;"

I would of put this online for you to read what i'm trying to do but, my free host decided to delete my account

I also simplified it

PHP Code:

ok I setup a little document for you to see what i'm after exactly and got rid of the crap that was in my first post

<p>OK, heres what I need exactly.</p>
<ol>
<li>onload clear both text boxes and uncheck checkbox.</li>
<li>check whether the text boxes are empty, on clicking the checkbox.</li>
<li>if checkbox is empty or not equal to verifying the checkbox it will show
your ticker.</li>
<li>if one textbox is filled out the ticker will only work in one textbox, leaving
the box they have filed out intact and showing in the empty textbox </li>
<li>instead of the ticker repeating itself continuously, I want it to timeout
when the checkbox is clicked and clear the checkbox and the textbox's
<ul>
<li> eg, after 3-10 seconds of displaying the ticker it will empty the textboxes
and gain focus on the textbox,<br>
that is either empty or the verify textbox if not eqaul to the username
text box. </li>
</ul>
</li>
<li><font color="#FF0000">Main Problem</font> - if the user starts typing while
the timer has been activated to clear the checkbox and textboxs, it will cancel
the timer and the and will allow the user to continue typing. </li>
<li>also test if the username has a limit to its input, so if the user sets
the limit to 0 in the source the user will be able to use infinate amount
of characters where as if they set it to 5 they can enter a password of upto
five characters and also allow for a min value as well in the same way.</li>
</ol>
<p>
<script>
function openPanel(option)
{
var adminpanel = open(option,'adminpanel','');
adminpanel.focus();
}