PDA

View Full Version : click link adds codes into textarea



MaGiCSuN
April 19th, 2003, 14:57
hi there,

I have an "add an review" page that i would like to allow people to add their review to my site. I don't want the review to be added automatically so i receive them via email. I have different kind of 'topics' to have reviews about for example: make-up, cd's, movies and hair. I first had this idea to have .txt files with the 'templates' in them because for every topic i have another template set. But then i remember the idea of an tagboard, clicking an smilie OUTSIDE the textarea and the code will be added INSIDE the textarea.

So what i was wondering, is there any way to click a topic on the page that will take you to the form and have the template appearing in the text area? the template only contains html, no images

otherwise people have to open the .txt file online, copy the text, paste them in notepad, change it and copy it again to paste it into the text area.

btw the template is just the content that is between the <body> and </body> part. So basically the 'review'. I have things in that saying what people have to change and what they have to leave as it is.

also i have a small other question: is there an limit of text that can be send through bravenet? i haven't set any limit myself to the textarea, but because i use bravenet so send me the emails i wasn't sure

Thanks!

Love,
Mirna

zoobie
April 23rd, 2003, 04:23
Huh? You want to style a populated textarea? Huh? :robot2:

CareBear
April 23rd, 2003, 04:32
Originally posted by zoobie
Huh? You want to style a populated textarea? Huh? :robot2: There's another thread (http://freewebspace.net/forums/showthread.php?s=&threadid=42534) about it as well. :)

It's basically an "add a review" page with 4-5 different topics (movies, makeup, etc). She made a different default HTML template for every review with the parts people need to fill in as HTML comments, like:

Movie name: <!-- replace this with the movie name -->.
She wants to have a link for every different review topic that will load the corresponding HTML template into the textarea when clicked.

Mirna-the templates you want to add are just too big/long to easily do with Javascript. Adding a smiley to a textarea is no problem (it's just a few characters) but text that's several hundred/thousand letters long as those templates are just won't fit into a single javascript variable which is why I did the php one in the other thread.

MaGiCSuN
April 23rd, 2003, 13:51
Yeah sorry about the other thread. I thought i had said 'closing this one' but i didn't Sorry ! Thanks for the answers ;)

CareBear
April 23rd, 2003, 14:01
oops.. I didn't notice this one was older then the other one :o