954,598 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Buttons dont change into hit state?

ok, new problem. I've created some buttons that essentially i have created for a quiz page. What i've designed them to do is when you click on them they should change in to their hit state and do nothing else. The yes buttons should show a tick on the hit state and the no buttons should show a cross on the hit state. Except that they do not change at all, what is wrong with them?

Attachments Blackfin_DSP_teaching_tool.zip (1064.51KB)
snitch321
Junior Poster in Training
63 posts since Nov 2007
Reputation Points: 9
Solved Threads: 2
 

You did not written any code for that and too there is no instance name of your hits and where is the event listeners?

rajarajan07
Nearly a Posting Virtuoso
1,447 posts since May 2008
Reputation Points: 167
Solved Threads: 239
 

what i want to happen is that i want then to stay in their hit state once they have been clicked. Just like a quiz, so that when they click the correct button it shows its hit state of a tick over it and when they click a wrong button it shows an x over it

snitch321
Junior Poster in Training
63 posts since Nov 2007
Reputation Points: 9
Solved Threads: 2
 

Thats Right Man! where is the code and the instance name for your hit state buttons?

rajarajan07
Nearly a Posting Virtuoso
1,447 posts since May 2008
Reputation Points: 167
Solved Threads: 239
 

ok ive attached the code and added in the instance name so that they operate fine. However still not sure how to make them stay in their hit state.
have a look at what ive done in attachement for clarity.

Attachments Blackfin_DSP_teaching_tool1.zip (803.49KB)
snitch321
Junior Poster in Training
63 posts since Nov 2007
Reputation Points: 9
Solved Threads: 2
 

Hey, you done in a wrong way. You utilized the hit button without knowing the purpose of that!. fine leave it.

I have attached a file for your solution, make it in that way. It will work.

Hope this solve!

Attachments solution.zip (10.95KB)
rajarajan07
Nearly a Posting Virtuoso
1,447 posts since May 2008
Reputation Points: 167
Solved Threads: 239
 

ahh yes, thank you, that did work. i am very grateful for what you have done. its ashame i have to give a new instance name and attache3d code for every 20 quiz buttons that you created for me to work.

snitch321
Junior Poster in Training
63 posts since Nov 2007
Reputation Points: 9
Solved Threads: 2
 

Cheers!! Go ahead!

rajarajan07
Nearly a Posting Virtuoso
1,447 posts since May 2008
Reputation Points: 167
Solved Threads: 239
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: