Closed (outdated)
Project:
Media: Tableau
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Mar 2015 at 16:18 UTC
Updated:
29 May 2024 at 19:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
alibama commentedI'm using the latest tableau server and getting the embed code... it copies fine.... I'm using the wysiwyg embed media plugin, not a media field... would love some help with getting the right URI for the media file, haven't gotten that working yet
Comment #2
ecrown commentedLooking further into the initial reported issue. the issue seems to be with when the embed code source uses https instead of http.
eg
<script type='text/javascript' src='https://public.tableausoftware.com/javascripts/api/viz_v1.js'></script>we need to account for both use cases when the url is http and https
Comment #3
ecrown commented@alibama what do you mean by getting the right URI for the media file. could you explain further
Comment #4
alibama commentedhi ecrown - i just wrote up some documentation - I'm not sure if this is going to be very helpful, but it's a start tableau + drupal integration
I'll be glad to keep answering questions here as best i'm able :)
Comment #5
pq commentedAttached patch fixes the issues that were preventing embed codes shared from https://public.tableau.com from being accepted. It includes the following changes:
This should be backwards-compatible so all embed codes that previously worked should hopefully be unaffected.
Comment #6
esolitos[cut]
Comment #7
esolitosComment #8
pq commentedAnother day, another set of changes to the embed code.
This is an update to @esolitos's patch
Comment #9
bharat.kelotra commentedPatch is not working for me or may be I am using the wrong url. So just to confirm. On my tableau account on a view I have a share link, which opens a popup with 2 types of links.
One is embed code which is
<div class='tableauPlaceholder' id='viz1505373335053' style='position: relative'><noscript><a href='#'><img alt='Is Your Hospital Staff Knowledgeable? ' src='https://public.tableau.com/static/images/TE/TEST_239/Health/1_rss.png' style='border: none' /></a></noscript><object class='tableauViz' style='display:none;'><param name='host_url' value='https%3A%2F%2Fpublic.tableau.com%2F' /> <param name='site_root' value='' /><param name='name' value='TEST_239/Health' /><param name='tabs' value='no' /><param name='toolbar' value='yes' /><param name='static_image' value='https://public.tableau.com/static/images/TE/TEST_239/Health/1.png' /> <param name='animate_transition' value='yes' /><param name='display_static_image' value='yes' /><param name='display_spinner' value='yes' /><param name='display_overlay' value='yes' /><param name='display_count' value='yes' /></object></div> <script type='text/javascript'> var divElement = document.getElementById('viz1505373335053'); var vizElement = divElement.getElementsByTagName('object')[0]; if ( divElement.offsetWidth > 800 ) { vizElement.style.minWidth='1004px';vizElement.style.maxWidth='100%';vizElement.style.minHeight='689px';vizElement.style.maxHeight=(divElement.offsetWidth*0.75)+'px';} else if ( divElement.offsetWidth > 500 ) { vizElement.style.minWidth='1004px';vizElement.style.maxWidth='100%';vizElement.style.minHeight='689px';vizElement.style.maxHeight=(divElement.offsetWidth*0.75)+'px';} else { vizElement.style.width='100%';vizElement.style.height=(divElement.offsetWidth*1.77)+'px';} var scriptElement = document.createElement('script'); scriptElement.src = 'https://public.tableau.com/javascripts/api/viz_v1.js'; vizElement.parentNode.insertBefore(scriptElement, vizElement); </script>Other one is link which is
https://public.tableau.com/views/TEST_239/Health?:embed=y&:display_count...
both of them don't work with the regular expression provided in patch. So does I doing it right to include the right link or tableau again updated it's shared url pattern?
Comment #10
javi-er commentedThe Drupal 7 version is not longer supported.