/    Sign up×
Community /Pin to ProfileBookmark

Validating progress bar before completing 100% count

[code=html][CODE][QUOTE] <html>
<head>
<script type=”text/javascript”>
var prg_width = 200;

function progress() {
var node = document.getElementById(‘progress’);
var w = node.style.width.match(/d+/);

if (w == prg_width) {
w = 0;
}

node.style.width = parseInt(w) + 10 + ‘px’;
}

</script>
</head>

<body onload=”var progress_run_id = setInterval(progress, 500);”>

<div style=”border: 1px solid black; width:200px; height:5px;”>
<div id=”progress” style=”height:5px; width:0px; background-color:red;”/>
</div>

</body>
</html>[/QUOTE][/CODE]

[/code]

Please kindly help. I want this progress bar to be validate before completion four times. Like bringing up a textbox to receive the password to validate when it reaches 70, 80, 90

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@KorFeb 09.2011 — What do you mean by "validate a progress bar"? can you put your problem in other, more descriptive, words?
×

Success!

Help @ken2010 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...