0

Hi I'm a bit rusty with this again, I have a user profile web page and I'm working on making a wall posting system, I can do it the crappy n easiest way: textbox to listbox and then save the listbox as a text document for retrieval when the client logs in again.

But id like to write it to the HTML code or something of that nature. Like those div containers so my style sheet is applied to the data being posted.

Could anyone give me a head start to this?

3
  • Try to explain your problem in a bit better, maybe even with a couple of lines of code. Commented Mar 5, 2011 at 16:46
  • see how we are speaking with the "add comment" im trying to create a dumbed down version of this. All i want to try do is on click event "button1" add text from "textbox" to a div html container in asp.net Commented Mar 5, 2011 at 16:53
  • or to something of that effect Commented Mar 5, 2011 at 16:53

2 Answers 2

1

You know from where you need to copy (sorry... take inspiration) your functionality.

  1. Have a text box
  2. User submits the data...
  3. Add it to DB and either return the same data and add new table row below the previous one or just on client add extra "TR" below the previous "TR".

It will require jQuery or any other similar thing. You have SO, dissect it using Firebug and build your own version of it.

Sign up to request clarification or add additional context in comments.

Comments

0

You can do this with jQuery

$('button').click(function(){
var x = $('textarea').val();
$('div').html(x);
});

Check working example at http://jsfiddle.net/dzert/

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.