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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Apr 2013
    Location
    Newcastle, Australia
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Collecting up selected options, text from textboxes, then generating them in a div

    Hi Guys,

    I'm doing a small project which is generating limericks using options selected by the user in a webpage along with information entered in textboxes.

    I have the textboxes and dropdown boxes down no problems - what I am trying to figure out is how to take those options and generate the completed product on the same page, possibly in a div down the bottom of the page (or is it better to use a popup or frame?)

    Just wondering how you 'collect' variables or options and use javascript to create a finished output.

    Regards,



    Ewan

  • #2
    Senior Coder jmrker's Avatar
    Join Date
    Aug 2006
    Location
    FL
    Posts
    3,026
    Thanks
    36
    Thanked 494 Times in 488 Posts

    Question

    Give an example of the kinds of limerick parts you plan to put into the selection options.
    And an example of the kind of information that would be put into the textboxes (names, nouns, adj., adv.?)
    What will an example of a finished product look like based on the information above?

  • #3
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,731
    Thanks
    202
    Thanked 2,508 Times in 2,486 Posts
    There was a young man of Japan
    Whose limericks never would scan.
    When asked why this was,
    He replied "It's because
    I always try to fit as many syllables into the last line as ever I possibly can."


    Quote Originally Posted by Mrewan79 View Post
    Just wondering how you 'collect' variables or options and use javascript to create a finished output.
    Sounds like you need to learn Javascript! What you are asking for is really very, very basic.
    Last edited by Philip M; 04-04-2013 at 08:41 AM.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.


  •  

    Posting Permissions

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