Ask your own question, for FREE!
OpenStudy Feedback 4 Online
OpenStudy (anonymous):

So, I'm going to retry the OS app development. But, there are two things I need. First, I need to know how to get the username, because I'll be doing away with the top right of the link bar (Home, Invite, Username with Picture, Settings, Logout). It's kinda hard to explain. I'll also need that with the user's picture. @poopsiedoodle (for when I get un-sus'd in a few minutes)

OpenStudy (anonymous):

@Sean_Le_Van @nincompoop @Opcode @KonradZuse @shadowfiend

OpenStudy (anonymous):

Btw, I'm using VB.

OpenStudy (anonymous):

Anyone got any ides? :C

OpenStudy (anonymous):

yes

OpenStudy (anonymous):

I'm coding something... wait up

OpenStudy (anonymous):

in vb?

OpenStudy (anonymous):

Well, the username on the top right is circled by a class named "user-link username direct this-user username". Now, you could (properly) send a JavaScript request to receive it, and then return it inside your VB.NET and utilize. Here's an example of JavaScript fetching the contents of the username: javascript:var coolbeans = document.getElementsByClassName("user-link username direct this-user username")[0].innerHTML;alert(coolbeans); (paste it in the URL)

OpenStudy (anonymous):

I could also code a little something for fetching the smartscore. :P

OpenStudy (poopsiedoodle):

Well, I'm just using a webbrowser control, because I'm lazy.

OpenStudy (anonymous):

wat ? >:|

OpenStudy (anonymous):

You could at least give me a medal >.< @poopsiedoodle

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!