kapppz
12-07-2007, 01:06 AM
So, I'm going to try very hard to explain my issue, but I don't know if I'll get it across properly. If you're still confused, by all means ask and I'll clearify it the best that I can.
I'm a part of a roleplaying community (http://www.acornrack.com/) and am currently building a website. I'm trying to get it so that you can create a list in the account setup of your character's friends and enemies. The basic idea is that in one input box, you type the name of the other character, and then you select from a drop-down menu the "rank" of the friendship (best friend, close friend, crush, enemy, whatever), and then when you click on "Submit," it adds the other character's name and rank to some sort of list which is then displayed on your profile page.
If anyone uses Facebook, it's like when you tag someone in a picture. You click "Add" and the name adds onto the list of people in the picture, and then you can click "remove" to take that person out of the picture. I have a pretty basic understanding of JavaScript, but looking at the Facebook source only left me more confused. Not to mention, the Facebook code is not /exactly/ what I had in mind. Just the general idea of it.
My train of thought was that I'd have to create a seperate form within the main account setup form, where the name and rank would be input into a JavaScript array, and then that list would be stored as a custom AcornRack variable, and then the output on the profile is the entire list. But I don't know if that actually makes sense and is possible.
If anyone could help me, that would be lovely. I've spent quite a long time (at least ten or twelve hours over the last day or two) looking at JavaScript tutorials (and DHTML and form/input tutorials, at the advice of someone else), but nothing seemed to really fit what I'm trying to do, or help me figure out how to do it on my own. Any suggestions would be lovely. ^_^
If you'd like to contact me directly, you can message me on AIM at kapppz.
Thanks so much in advance.
-kapppz
I'm a part of a roleplaying community (http://www.acornrack.com/) and am currently building a website. I'm trying to get it so that you can create a list in the account setup of your character's friends and enemies. The basic idea is that in one input box, you type the name of the other character, and then you select from a drop-down menu the "rank" of the friendship (best friend, close friend, crush, enemy, whatever), and then when you click on "Submit," it adds the other character's name and rank to some sort of list which is then displayed on your profile page.
If anyone uses Facebook, it's like when you tag someone in a picture. You click "Add" and the name adds onto the list of people in the picture, and then you can click "remove" to take that person out of the picture. I have a pretty basic understanding of JavaScript, but looking at the Facebook source only left me more confused. Not to mention, the Facebook code is not /exactly/ what I had in mind. Just the general idea of it.
My train of thought was that I'd have to create a seperate form within the main account setup form, where the name and rank would be input into a JavaScript array, and then that list would be stored as a custom AcornRack variable, and then the output on the profile is the entire list. But I don't know if that actually makes sense and is possible.
If anyone could help me, that would be lovely. I've spent quite a long time (at least ten or twelve hours over the last day or two) looking at JavaScript tutorials (and DHTML and form/input tutorials, at the advice of someone else), but nothing seemed to really fit what I'm trying to do, or help me figure out how to do it on my own. Any suggestions would be lovely. ^_^
If you'd like to contact me directly, you can message me on AIM at kapppz.
Thanks so much in advance.
-kapppz