0
나는 셰어 포인트 내에 코드를 내장했습니다. 매개 변수에 자바 스크립트 값을 전달해야합니다. 내가 여기서 어떻게 할 수 있니? 참조 용으로 세 번째 매개 변수 (PUT_FUNCTION_VALUE_HERE)를 참조하십시오.객체 매개 변수에 값 지정하기
<script type="text/javascript">
function getUrlParameters(parameter, staticURL, decode){
/*
Function: getUrlParameters
Description: Get the value of URL parameters either from
current URL or static URL
Author: Tirumal
URL: www.code-tricks.com
*/
var currLocation = (staticURL.length)? staticURL : window.location.search,
parArr = currLocation.split("?")[1].split("&"),
returnBool = true;
for(var i = 0; i < parArr.length; i++){
parr = parArr[i].split("=");
if(parr[0] == parameter){
return (decode) ? decodeURIComponent(parr[1]) : parr[1];
returnBool = true;
}else{
returnBool = false;
}
}
if(!returnBool) return false;
}
function getUrlParametersWrite(parameter, staticURL, decode){
var vlaue = getUrlParameters(parameter, staticURL, decode);
alert(value);
document.write(value);
document.close();
}
</script>
<script type='text/javascript' src='http://myview.fake.org/javascripts/api/viz_v1.js'></script>
<div class='tableauPlaceholder' style='width: 984px; height: 634px;'>
<object class='tableauViz' width='984' height='634' style='display:none;'>
<param name='host_url' value='http://myview.fake.org' />
<param name='site_root' value='' />
<param name='name' value='MemberParticipationReporting/MemberParticipationDashboard&Fice=PUT_FUNCTION_VALUE_HERE' />
<param name='tabs' value='yes' />
<param name='toolbar' value='yes' />
</object>
</div>
을 나는 다음'의 끝에 값을 추가 할 필요가 <매개 변수 이름 = '이름'값 =/'/ MemberParticipationDashboard & Fice = PUT_FUNCTION_VALUE_HERE을 MemberParticipationReporting'> ' –
답변이 업데이트되었습니다. – Robbert