Changing Attributes in .load Content
Hello,
Currently I am loading some HTML from a text file so that I can display it within a DIV. This content is based on different link ID's depending on the link. Currently I am able to get the template to load correctly but am unable to change the value of the #paramName attribute called value. Any help would be much appropriated!
jQuery Code
- $(document).ready(function(){
- $(".leaf").click(function(){
- var currentReport = $(this).attr('id');
- $("#dropHere").load('links/template.txt');
- $("#paramName").attr("value", "RetailSales-Desktop/DesktopSalesinTotal");
- $("#dropHere").trigger('refresh');
- });
- });
Object that is being change
- <script type="text/javascript" src="http://localhost/javascripts/script.js"></script>
- <div class="Placeholder">
- <object class="tableauViz" width="100%" height=1000 style="display:none;">
- <param name="host_url" value="http%3A%2F%2Flocalhost%3A8000%2F" />
- <param name="site_root" value="" />
- <param name="name" value="Summary/Competitive" id="paramName" />
- <param name="tabs" value="no" />
- <param name="toolbar" value="yes" />
- </object>
- </div>