Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Java+form+input data and output

    ok im pretty new to this and getting confused sooooo easy
    i want to make a form
    Code:
    O----------OO----------OO----------O
    |text box 1||text box 2||text box 3|
    O----------OO----------OO----------O
    o-------------o
    |submit button|
    o-------------o
    O---------------O
    |output text area|
    O---------------O
    but when you press submit in the output text area this pops up with what you entered in this format
    Code:
    {url={text box 1}}{img}{text box 2}{/img}{text box 3}{/url}
    i tryed google so many times but maybe this place can help {hopefully}
    Last edited by idemonickitty; 07-26-2009 at 02:51 AM.

  • #2
    Gütkodierer
    Join Date
    Apr 2009
    Posts
    2,127
    Thanks
    1
    Thanked 426 Times in 424 Posts
    Are you working with some sort of templating engine, or why are you using that strange brace notation?

    Anyway, you can just set the innerHTML property of the output text area to the desired output string in the onsubmit handler of the form and return false (using Javascript).

    If you want a more detailed answer, you are going to have to show at least some HTML.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •