如何更改jquery struts2对话框(远程)的remoteurl?
我正在使用struts2 jquery插件&使用dialog(remote),因此我在对话框代码之前指定了remoteurl,如下所示:如何更改jquery struts2对话框(远程)的remoteurl?,struts2,struts,Struts2,Struts,我正在使用struts2 jquery插件&使用dialog(remote),因此我在对话框代码之前指定了remoteurl,如下所示: <%@ taglib prefix="s" uri="/struts-tags"%> <%@ taglib prefix="sj" uri="/struts-jquery-tags"%> <html> <head> <sj:head jqueryui="true"/> </hea
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<html>
<head>
<sj:head jqueryui="true"/>
</head>
<body>
<s:url var="remoteurl" action="myremoteaction"/>
<sj:dialog id="mydialog3" href="%{remoteurl}" title="Remote Dialog open on Click" autoOpen="false"/>
<sj:a openDialog="mydialog3">Open Dialog</sj:a>
</body>
</html>
打开对话框
当我点击超链接而不是直接打开对话框时,我想先更改它的remoteurl,然后再打开它
谁能告诉我该怎么做
提前谢谢。你可以试试这个。我还没有测试过它,但我相信它会给你一个解决问题的线索。在打开对话框之前,使用以下方法更改
href
属性的值:
$("#mydialog3").dialog( "option" , "href", your_new_url );
$("#mydialog3").dialog('open')
您也可以访问该页面了解更多说明