0

[jQuery] Get SoloLearn Profile Avatar & Cetificate url

Hi all, just created a nice dynamic script to show your profile images: https://code.sololearn.com/WMqwmP3F1XYg/#js You can click at the shown images to open it in a new page. leave a like/comment thanks edit: during commenting i created a small bug. it's fixed now

23rd May 2017, 10:52 AM
nouseforname
nouseforname - avatar
7 Réponses
+ 5
scripts are different, but for a similar purpose. have you tested your code on mobile?
20th May 2017, 7:54 AM
Burey
Burey - avatar
+ 5
well now it works :)
20th May 2017, 8:26 AM
Burey
Burey - avatar
+ 1
Well what i tested now... it seems not all browser support the onerror event. which i used to remove not existing url entries. If i show just every url. it's working well everywhere with every profile. regarding similiar scripts: i just do it for fun and my own learning curve. I really like full dynamic scripts. Thats why sometimes i try same things different.
20th May 2017, 8:20 AM
nouseforname
nouseforname - avatar
+ 1
It works cause now i don't hide by default. Which causes also nion existing URLs are displayed. And if error event will be fired, it will disappear afterwards.. Test it with my profile id, then u will see what i mean. Original all elements are hidden, and displayed if no errors... That's why in some cases its not working
20th May 2017, 8:32 AM
nouseforname
nouseforname - avatar
+ 1
Finally i got it working like i want it. The problem is not browser but order of the event binding. At first load it was working well. But as soon as i trigger an update by submitting the user id, it lost the event bindings. Should be fixed by now. Also added the return key, so you can update it by just pressing enter when done typing the new user id.
20th May 2017, 9:11 AM
nouseforname
nouseforname - avatar
0
Sry, had a small glitch during commenting, now it's working again well edit: btw. the other scripts are different
20th May 2017, 7:46 AM
nouseforname
nouseforname - avatar