+ Post New Thread
Results 1 to 4 of 4
Coding Thread, JavaScript Help Please in Coding and Web Development; I have a form similar to this: Code: <form action="" method="post"> <input type="text" name="text" /> </form> This form is loaded ...
  1. #1

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    242

    JavaScript Help Please

    I have a form similar to this:

    Code:
    <form action="" method="post">
    <input type="text" name="text" />
    </form>
    This form is loaded in a modal box using the script available here:

    ModalBox &mdash; An easy way to create popups and wizards

    When the user submits the modal box form I want another modal box form to load, sending the data submitted to it. I've changed the form code above to this, in order to load the next modal box on submit.

    Code:
    <form action="" method="post" 
    onsubmit="Modalbox.show(PATH_TO_PHP_FILE_TO_LOAD_IN_MODAL_BOX, {title: 'Saving...', width: 400}); return false;">
    <input type="text" name="text" />
    </form>
    This loads the next modal box up fine, but without passing the data from the form. Can anybody help me pass the data?

    Many thanks,
    [/CODE]

  2. #2

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    242
    Pretty please?

  3. #3


    tom_newton's Avatar
    Join Date
    Sep 2006
    Location
    Leeds
    Posts
    4,507
    Thank Post
    871
    Thanked 862 Times in 681 Posts
    Rep Power
    199
    How about appending the data URL-encoded to the PHP script? That may be the only way.

  4. #4

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    242
    Found it. It allowed for custom params, so I serialized the form data and passed it into this.



SHARE:
+ Post New Thread

Similar Threads

  1. Javascript Compare Values
    By Teaser in forum Scripts
    Replies: 2
    Last Post: 22nd September 2010, 12:48 PM
  2. Javascript Scroller
    By ljlbray in forum Web Development
    Replies: 4
    Last Post: 21st April 2010, 10:05 AM
  3. Javascript help
    By garethedmondson in forum General Chat
    Replies: 1
    Last Post: 10th July 2009, 02:53 AM
  4. Selective Javascript
    By danIT in forum Coding
    Replies: 2
    Last Post: 13th March 2009, 08:54 AM
  5. html/ javascript help
    By strawberry in forum Coding
    Replies: 2
    Last Post: 2nd July 2008, 12:22 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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