Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/84.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Struts2 Jquery远程对话框在if条件下不工作_Jquery_Ajax_Struts2_Dojo - Fatal编程技术网

Struts2 Jquery远程对话框在if条件下不工作

Struts2 Jquery远程对话框在if条件下不工作,jquery,ajax,struts2,dojo,Jquery,Ajax,Struts2,Dojo,嗨,我只是想在点击链接时调用一个对话框。。 我试过这个例子。。。 以我为例 我正在使用标记打开 这是我的密码 <%@ taglib prefix="sx" src="//link for dojo-plugin"> <%@ taglib prefix="sx" src="//link for Struts JQuery-plugin"> <s:url action="sample" var="url" ></s:url> <sx:a hr

嗨,我只是想在点击链接时调用一个对话框。。 我试过这个例子。。。

以我为例 我正在使用
标记打开 这是我的密码

<%@ taglib prefix="sx" src="//link for dojo-plugin">
<%@ taglib prefix="sx" src="//link for Struts JQuery-plugin">
<s:url action="sample" var="url" ></s:url>
<sx:a  href="%{url}" targets="boxDIV" > click </a> 

<sx:div id="boxDIV">
<s:if test="box">//If condition is doing good no problem with this Cause I can see this if block without ajax tags
  <sj:dailouge>
     <s:iterator >
         //Iterating some list
      </s:iterator>
   </
</if>
 </sx:div>

点击
//如果条件很好,没有问题,因为我可以看到没有ajax标记的If块
//迭代某个列表

,如果没有硬性的理由,那么就避免使用它。这个例子不需要dojo插件。我还没有找到任何dailog box的例子。。