0
Fluid 템플릿에서 Ajax 호출을 만들고 싶습니다. Fluid URI action ViewHelper을 사용하고 싶습니다. 문제는 인수 중 하나가 Javascript 변수에서 동적으로 발생한다는 것입니다. ViewHelper가 Fluid에 의해 렌더링되고 Javascript 변수의 내용이 런타임에 삽입되는 것을 어떻게 얻을 수 있습니까?Fluid URI에서 Javascript 변수를 인수로 사용하는 방법 ViewHelper
function test(field) {
xmlhttp.open("GET", '<f:uri.action action="ajax" arguments="{filterfield:' + field + '}" />', true);
}
현재 유체 렌더링 된 출력은 다음과 같습니다 :
function test(field) {
xmlhttp.open("GET",'mod.php?...&tx_test_test_testview%5Bfilterfield%5D=%20%2B%20field%20%2B%20...', true);
}
하지만 내가 달성하고자하는 :
function test(field) {
xmlhttp.open("GET",'mod.php?...&tx_test_test_testview%5Bfilterfield%5D=' + field + '...', true);
}
내가 ...
을 넣어 여기에
멋진 간단한 해결 방법! 고마워! – andreas