日期:2014-05-18 浏览次数:21278 次
<c:choose> <c:when test="${zn == 'pilot'}"> <input type="radio" name="zoneName" value="pilot" checked="checked" /> <font color="red">PRFQ1</font> </c:when> <c:otherwise> <input type="radio" name="zoneName" value="pilot" /> <font color="red">PRFQ1</font> </c:otherwise> </c:choose> <c:choose> <c:when test="${zn == 'week'}"> <input type="radio" name="zoneName" value="week" checked="checked" /> <font color="red">PRFQ2</font> </c:when> <c:otherwise> <input type="radio" name="zoneName" value="week" /> <font color="red">PRFQ2</font> </c:otherwise> </c:choose>
<input id="ButtonFB" type="button" value="FB_DB" onclick="queryFBBySourceId(${source.sourceId });" />
function queryFBBySourceId(str){ url="/PRFQ/processingPanel.do?method=queryFBBySourceId="+str+"&zoneName="+zn; //但是这个zn在这里报错,说是未定义. //我用这一句也取不到单选按钮的值不知道为什么 var zoneName=request.getElementsByName("zoneName").value; window.open(url,'_blank'); }