Answers.Body: <p>John </p>
  
  <p>My immediate thinking is that you will probably need to do some form of iframing on the block. The reason for that is that i don't think i can think of a way to have proper session keys and static html copied across. The session key is generated when the first step of the form is loaded. You may also need to look at a drupal module like themekey if you need to switch themes to make the iframe look nicer in the block</p>
  
  <p>Seamus</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-03T20:18:47.043Z
Answers.Text: Using themekey is a good suggestion. I'd tried iframes with snippet=1, but wasn't happy with the loading times.
Answers.UserDisplayName: JohnFF
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-02T21:08:08.913Z
Answers.LastActivityDate: 2017-08-02T21:08:08.913Z
Answers.UserDisplayName: Seamus Lee
Body: <p>D7.56 Civi4.7.22</p>
  
  <p>I'm attempting to embed the bulk of a contribution page inside a block shown in a view. The view shows multiple of these blocks.</p>
  
  <p>I copied them by using inspect to get the HTML underneath.</p>
  
  <p>This works fine at first, however intermittently I experience the following error when clicking the button:</p>
  
  <p>"Your browser session has expired and we are unable to complete your form submission. We have returned you to the initial step so you can complete and resubmit the form. If you experience continued difficulties, please contact us for assistance."</p>
  
  <p>How can I circumvent this? I suppose that the HTML needs to be regenerated, not copy and pasted. How can I do this?</p>
  
Tags: <contributions>
Title: Embed Contribution Page Error
ThreadText: # Embed Contribution Page Error
  
  (Asked by: username_0 on 2017-08-02)
  
  D7.56 Civi4.7.22
  
  I'm attempting to embed the bulk of a contribution page inside a block shown in a view. The view shows multiple of these blocks.
  
  I copied them by using inspect to get the HTML underneath.
  
  This works fine at first, however intermittently I experience the following error when clicking the button:
  
  "Your browser session has expired and we are unable to complete your form submission. We have returned you to the initial step so you can complete and resubmit the form. If you experience continued difficulties, please contact us for assistance."
  
  How can I circumvent this? I suppose that the HTML needs to be regenerated, not copy and pasted. How can I do this?
  
  **Tags:** contributions
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-08-02. Score: 2
  
  John
  
  My immediate thinking is that you will probably need to do some form of iframing on the block. The reason for that is that i don't think i can think of a way to have proper session keys and static html copied across. The session key is generated when the first step of the form is loaded. You may also need to look at a drupal module like themekey if you need to switch themes to make the iframe look nicer in the block
  
  Seamus
  
  > **Comments:**
  > **username_0**: Using themekey is a good suggestion. I'd tried iframes with snippet=1, but wasn't happy with the loading times.  
  
  ---
  
  