PDA

View Full Version : javascript help



Spunkyz
Mar 25th, 2002, 12:21 AM
hello all,

does anybody know where to find a script where it allow u to OnClick play a file name

and submit vote at the same time?

i know how to make the 1st one but dunno how to combine with the vote one...

.eg : when they click at the submit button it play the music as well as voting that music at the same time.


someone care to help?


thanks alot

jstanden
Mar 26th, 2002, 03:24 AM
Instead of performing both actions inside the OnClick or OnSubmit, have the method call a function that performs all the actions you like.

If you must have them inside the method, seperate them with a ;

jstanden
Mar 26th, 2002, 03:26 AM
Another tool to provide dynamic functionality through javascript (without pop-ups or page changes) is to submit changes to a 1px frame for updating the database, etc.