akpwelcome.blogg.se

Resizable javascript
Resizable javascript







It is important that the height is set in pixels.

resizable javascript

For example, ChooseSeats.aspx?EventInstanceId=61602&resize=true Step 3: Check the height is in px If the IFrame you are using requires additional parameters to operate, such as chooseseats needing an EventInstanceId value, you need to ensure the resize=true parameter is the final parameter on the URL. Additionally add a name and id attribute to the Iframe with value SpektrixIFrame and inline styling with a width and height as below You will need to replace customdomain with your custom domain, and replace clientname with the Spektrix client name you are integrating with: Step 2: Add parameter resize=trueĪdd the query string parameter ‘resize=true’ to the Iframe source url embedded into the page. In the of each page containing a Spektrix Iframe that needs resizing enabled, include the following script tag.

resizable javascript

Setting this up takes four simple steps: Step 1: Add integrate.js script To handle this, we've developed a piece of JavaScript that automatically resizes the height of the Iframe down based on its content. In testing your integration, you may notice that the Iframe's fixed size is sometimes too large for some content, leaving vertical white space.









Resizable javascript