Link to home
Start Free TrialLog in
Avatar of jmingo
jmingo

asked on

Making this work with onclick...help!?

I have this code, that i want to work on an onclick..on a submit button.

Here's the code

<script language="javascript" src="xp_progress.js"></script>

<script type="text/javascript">
var bar1= createBar(300,15,'white',1,'black','blue',85,7,3,"");
</script>

Heres the link to the progress bar (js file)
http://www.dynamicdrive.com/dynamicindex11/xpprogressbar.htm

Any help would be great!
Avatar of Roonaan
Roonaan
Flag of Netherlands image

<input type="button" onclick="createBar(300,15,'white',1,'black','blue',85,7,3,'');" />

-r-
Avatar of jmingo
jmingo

ASKER

thanks for the comment....

i seem to get this

'undefined' is null or not an object...

any ideas?
ASKER CERTIFIED SOLUTION
Avatar of mvan01
mvan01
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Oh yeah, that button will actually look better if you put some text on it, like this:

<input type="button" value="Show Progress" onclick="javascript:bar1.showBar()" />

Peace and joy.  mvan
Avatar of jmingo

ASKER

thanks.. works great
You are welcome.  Peace and joy.  mvan