Cannot randomize account icon
I'm tring to randomize my account icon and nothing happens. I'm using Firefox 3.0.1 and the Error Console tells me that avs[idx] is undefined. The avs array inside the onclick seems to be empty, who ate all the cupcakes?
5
people have this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
The company marked this problem solved.
-
Inappropriate?I believe I know the cause of the issue, and it's on my slate of things to fix for friday (Our bugfix day each week).
Thanks for bringing this up, I'll report back here when I've solved it.
I’m saddened by bugs I'm responsible for
-
Inappropriate?Still not working, FYI.
-
Inappropriate?Seeing the same thing here in firefox 3.0.3 - exact same message in the error console as the OP.
-
Inappropriate?Fix will get deployed tonight.
-
Inappropriate?I'm still seeing this problem...
-
Inappropriate?Just close your eyes and you'll stop seeing it. There. Problem solved.
I'll check and see what's gone wrong. I bet it's something simple. Thanks for reporting this!
I’m hoping for a quick fix
-
Inappropriate?Ben, just wanted to give you an update. I'm still working on getting you an answer to this one. Thanks for your continued patience.
-
Inappropriate?I see this hasn't been solved yet so I just had a quick look at the source. Isn't this the case that all the script needs to have is a few random cupcakes in the avs variable, either hard coded or pulled from a db?
Although I'm really against putting JS inline, heres a quick snippet of code to solve the problem. (note: tinyurl in the img tag as it gets chopped)
<img id="current_user_avatar" src="http://tinyurl.com/5a93m2" />
<a href="#" onclick="
avs = [
{'src' : 'http://3.static.getsatisfaction.com/uploaded_images/0240/3497/cupcake2_medium.png'},
{'src' : 'http://3.static.getsatisfaction.com/uploaded_images/0233/2851/cupcake3_medium.png'},
{'src' : 'http://1.static.getsatisfaction.com/uploaded_images/0232/1176/cupcake7_medium.png'}
];
idx = Math.round((avs.length - 1) * Math.random());
document.getElementById('user_avatar_url').value = avs[idx].src;
document.getElementById('current_user_avatar').src = avs[idx].src;
return false;
">randomize your icon</a>
<input type="hidden" id="user_avatar_url" /></div>
-
Inappropriate?Looks like the fix I put in was only part of the problem. I just checked in a real fix... it's almost brain dead simple now. A deploy will go out tonight and then it will be fixed for everyone.
Thanks Phil, and Ben.
-
Inappropriate?Many thanks to Scott and Eric for helping with this trival bug, seems the update hasn't been commited to the live site though. I've resorted to using a lil greasemonkey script for now..
I’m thankful
-
Inappropriate?I got sick over the weekend, and was not up to hand-holding the deploy. I'm feeling better, and things are scheduled to go out tonight.
-Scott
-
Inappropriate?I was just about to report this problem. I'm using IE8 and it still seems to be broken.
-
t-bone: What error do you get? Or, what do you see when you click on randomize and then hit the update button? -
I don't get an error message. In fact, nothing seems to happen at all. -
Are you clicking on the Save Changes button after updating it? -
I am but it doesn't seem do change my icon. -
Unfortunately, I can't divine the reason for this problem. I am able to randomize your icon to change it to a brown cupcake. -
Huh, I can change to a different cupcake, too. I didn't notice that at all. I guess I was expecting something a bit more random.
Loading Profile...



EMPLOYEE


EMPLOYEE
