Re: [jQuery] Submit a form (POST) to a Thickbox panel

2007-03-05 Thread Mattias Hising
Hi, We are doing just that on PokerRoom.com for messages and gift-vouchers (previewing a message/gift-voucher before sending). What we actually do is the following (not my code, just a schematic of how it is solved on PokerRoom.com): //Serialize the form using the form-plugin and

Re: [jQuery] Submit a form (POST) to a Thickbox panel

2007-03-04 Thread Erik Beeson
Use Thickbox in iframe mode and bounce the content off your server. Otherwise, manually get the values from the form and generate a div with the preview content in it (all from javascript). Submit form data to an iframe is a flawed idea. --Erik On 3/4/07, Seb Duggan [EMAIL PROTECTED] wrote:

Re: [jQuery] Submit a form (POST) to a Thickbox panel

2007-03-04 Thread Seb Duggan
I see how to do this with a normal HTML page, but how do I submit the data via POST and get the resulting page into a Thickbox iframe? Seb On 4 Mar 2007, at 19:16, Erik Beeson wrote: Use Thickbox in iframe mode and bounce the content off your server. On 3/4/07, Seb Duggan [EMAIL

Re: [jQuery] Submit a form (POST) to a Thickbox panel

2007-03-04 Thread Erik Beeson
I see. I don't think that functionality is built in to Thickbox. It probably wouldn't be too hard to hack it to do that. Google 'iframe post' for info on the HTML necessary to make it happen. Or just use GET. Good luck. --Erik On 3/4/07, Seb Duggan [EMAIL PROTECTED] wrote: I see how to do this

Re: [jQuery] Submit a form (POST) to a Thickbox panel

2007-03-04 Thread Kristinn Sigmundsson
U could generate a div with the info from the form and use thickbox internal function TB_show, like this: $(preview).click( function () { //generate a div with the contents of the form and then call thickbox with: TB_show(Post preview, #TB_inline?height=300width=300inlineId=divId, false); }); I