Form data to Thickbox?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rjoseph
    New Member
    • Sep 2007
    • 36

    Form data to Thickbox?

    Hi guys

    I am using a jquery thickbox script (http://jquery.com/demo/thickbox/ - iframed content example) to display information in a popup(modal) in the middle of my page. To do this I simply use the following hyperlink in my main page:

    <a href="mypage.as p?name=thickbox &keepThis=true& TB_if rame=true&heigh t=550&width=750 " title="More info" class="thickbox ">Open window for more info</a>

    This will open a window in the middle of my page with the dimensions of 550x750 and within it load a page called (mypage.asp". This works just fine.

    However, I now want to do the same thing but instead of using a simple hyperlink I want to post form data from my main page into my thickbox modal window. It's a very basic form and looks like this:

    Code:
    <form name=myform method=post action=mypage.asp>
    <input type="text" name="fullname" size="20">
    <input type="text" name="emailaddress" size="20">
    <input type="submit">
    <input type="hidden" name="key" value="234fdw8">
    </form>
    Is it possible to submit the form data from my main page into the thickbox modal window? If so, how would this be done? Any help would be fully appreciated

    Best regards

    Rod from the UK
  • GazMathias
    Recognized Expert New Member
    • Oct 2008
    • 228

    #2
    You could build the url sent to the thickbox using javascript (client-side) that contains the data the thickbox page needs).

    Gaz.

    Comment

    • rjoseph
      New Member
      • Sep 2007
      • 36

      #3
      Good in principle but...

      Hi Gaz

      Thank you so much for your reply.

      Sounds good in principle but have no idea how this is done. Any help would be fully appreciated.

      best regards

      Rod from the UK

      Comment

      • GazMathias
        Recognized Expert New Member
        • Oct 2008
        • 228

        #4
        If I get time a bit later I may write a function for you, but you may get a quicker response if you post in the Javascript forum.

        Maybe a moderator can move the post?

        Gaz.

        Comment

        • rjoseph
          New Member
          • Sep 2007
          • 36

          #5
          Hi Gaz

          Thanks for your reply.

          If you could look into this for me then that would be great!

          In the meantime, I will add this post into the javascript section like you suggested.

          Best regards

          Rod from the UK

          Comment

          • jhardman
            Recognized Expert Specialist
            • Jan 2007
            • 3405

            #6
            moved for you. that was the solution I would have suggested as well, and the javascript isn't that bad either.

            Jared

            Comment

            Working...