473,395 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

onclick on a lick- tableau dashboard should appear

5
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.  
  5. <script language="javascript" type="text/javascript">
  6. function toView(str){
  7. if(str=="tag1"){
  8.         document.getElementById("tag1").innerHTML = "tag1";
  9. document.getElementById("tag2").innerHTML ="";
  10. document.getElementById("tag3").innerHTML ="";
  11. }
  12. else if(str=="tag2"){
  13.         document.getElementById("tag2").innerHTML = "tag2";
  14. document.getElementById("tag1").innerHTML ="";
  15. document.getElementById("tag3").innerHTML ="";
  16. }
  17. else if(str=="tag3"){
  18.         document.getElementById("tag3").innerHTML = "tag3";
  19. document.getElementById("tag2").innerHTML ="";
  20. document.getElementById("tag1").innerHTML ="";
  21. }
  22. else{
  23.  
  24. document.getElementById("tag1").innerHTML ="";
  25. document.getElementById("tag2").innerHTML ="";
  26. document.getElementById("tag3").innerHTML ="";
  27. }
  28. }
  29. </script>
  30. </head>
  31.  
  32. <body>
  33.  
  34. <table class="lamp">
  35. <tr>
  36.   <td><input type="button" name="x" value="tag1" onclick="return toView(this.value)"/><input type="button" name="x1" value="tag2" onclick="return toView(this.value)"/><input type="button" name="x2" value="tag3" onclick="return toView(this.value)"/><input type="button" name="x2" value="tag4" onclick="return toView(this.value)"/></td>
  37. </tr>
  38. <tr><td><div id="tag1"></div><div id="tag2"></div><div id="tag3"></div></td></tr>
  39. </table>
  40.  
  41. </body>
  42. </html>
  43.  
  44.  
  45.  
  46. in the place of "tag1"
  47.  
  48. i want to run the following code:
  49.  
  50. //tag1
  51.  
  52. <script type='text/javascript' src='https://online.tableausoftware.com/javascripts/api/viz_v1.js'></script><div class='tableauPlaceholder' style='width: 600px; height: 599px;'><object class='tableauViz' width='600' height='599' style='display:none;'><param name='host_url' value='https%3A%2F%2Fonline.tableausoftware.com%2F' /> <param name='site_root' value='/t/nettscience' /><param name='name' value='Livon/Adwords' /><param name='tabs' value='yes' /><param name='toolbar' value='yes' /><param name='filter' value='%3Aoriginal_view=yes' /></object></div>
can anyone help?
Sep 18 '14 #1
0 1549

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: grenzo | last post by:
I have seen a software in php that created a graphic mask ( tableau for hotel ). Could anybody tell me like is it possible? Where do I find any example? tanks...
1
by: Vianney Lançon | last post by:
J'ai eu recemmet à implémenter des fonctions du type is_pointer<> is_polymorphic<> if_then_else<> qui donnent leur résultat à la compilation. Un peu comme dans la bibliotheque mpl de boost. On...
4
by: Frank Hoek | last post by:
Hi, I try to create the following: 2 buttons next to each other, on a webpage button 1 makes (onClick) text 1 appear just beneath the button button 2 makes (onClick) text 2 appear just...
1
by: eXistenZ| | last post by:
Bonjour, je suis entrain de recupérer des données a partir d'une table; et je mets ces données là d'un un tableau, puis j'essaie de mettre le contenu de ce tableau ds une table; le pb c'est...
2
by: Dominique | last post by:
Hello, Im want to fix the width of a dashboard. I have a field which has a field (in this dashboard on the left part of my screen) which could be long and make the right side of the screen out...
11
by: Mathieu | last post by:
je ne sais pas si c'est bien l'endroit où poser ces questions, mais j'ai 2 autres petits problèmes à régler. Je débute en php, vous allez peut-être trouver les questions faciles, tant mieux dans ce...
19
by: Roberto | last post by:
Can anyone recommend a PHP-based dashboard product or open source project? My employer is looking to purchase a product to collect business intelligence data like number of customer interactions...
0
by: ramani | last post by:
when button onclick i want the following code: <script type='text/javascript' src='https://ExampleDomain1.ExampleSubDomain1.com/javascripts/api/exampleScript.js'></script> <div...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.