代码如下:
<td width="52" height="21"><a onclick="javascript: returnMain();" >
<script>
function returnMain(){
hide_menu();
setTimeout("parent.frames[3].location = 'welcome_frame_curhome.do? currentPage=1&pageSize=15';","2000");
}
</script>
<td width="52" height="21"><a onclick="javascript: returnMain();" >
<script>
function returnMain(){
hide_menu();
setTimeout("parent.frames[3].location = 'welcome_frame_curhome.do? currentPage=1&pageSize=15';","2000");
}
</script>
解决方案 »
- 请问用什么方法可以弹出窗口?
- 英文自动换行问题怎么处理?社区的专家榜怎么一个页面都打开阿!!
- 响应不了onKeypress事件,是什么回事?
- EXTJS问题在线等待。。。。
- 问个超级新手问题,动态加载页面的
- var nWin = window.open(); form.target=nWin; form.submit(); 类似上面的写法;将数据提交到新开窗口中去,具体语法怎么写?谁能帮助下?
- 如何得到复选框的文本,不是value??
- 求助(现场给分)...关于窗口连接问题。
- 如何用javascript来判断在文本框中输入是ip地址,给出代码,给分28
- javascript的onclick问题,急...............................................
- 请教个问题
- 谁能帮我解密段JS代码谢谢
function returnMain(){
hide_menu();
setTimeout("window.open( 'welcome_frame_curhome.do? currentPage=1&pageSize=15','_mainframe')","2000");
}
function returnMain(){
hide_menu();
parent.frames[3].location = 'welcome_frame_curhome.do? currentPage=1&pageSize=15';
}
取消延时???
<parameter key="title" value="homepage" direct="true"/>
<parameter key="screenId" value="BDM01S01" direct="true"/>
<parameter key="functionId" value="首页" direct="true"/>
<parameter key="body" value="/homepage/curhome.jsp"/>
</screen>
********************************************
<url-mapping url="welcome_frame_curhome.do" screen="welcome_frame_curhome.screen">
<web-action-class>com.app.dibf.controller.web.actions.homepage.AJJC360HtmlAction</web-action-class>
</url-mapping>
********************************************public class AJJC360HtmlAction extends HtmlActionJsrsSupport {
private static Logger log = Logger.getLogger(AJJC360HtmlAction.class); public Event perform(HttpServletRequest request) throws HtmlActionException,
ValidationException { if (log.isDebugEnabled()) {
log.debug("AJJC360HtmlAction.perform() Begin.");
} AJJC360Event event = new AJJC360Event();
String currentPage = RequireUtil.getParameterWithUpperCase(request,
RequestConstant.CURRENT_PAGE);
String pageSize = RequireUtil.getParameterWithUpperCase(request,
RequestConstant.PAGE_SIZE);
if (log.isDebugEnabled()) {
log.debug("********* currentPage **********:" + currentPage);
log.debug("********** pageSize ************:" + pageSize);
}
if (currentPage == null || "".equals(currentPage)) {
if (log.isErrorEnabled()) {
log.error(ErrorCode.CURRENT_PAGE_IS_NULL);
}
throw new HtmlActionException(ErrorCode.CURRENT_PAGE_IS_NULL);
}
if (pageSize == null || "".equals(pageSize)) {
if (log.isErrorEnabled()) {
log.error(ErrorCode.PAGE_SIZE_IS_NULL);
}
throw new HtmlActionException(ErrorCode.PAGE_SIZE_IS_NULL);
} //get query Condition
String qk = request.getParameter("qk");
String wzbz = request.getParameter("wzbz");
String jingxing = request.getParameter("jingxing");
String firstJh = request.getParameter("firstJh");
String gx = request.getParameter("gx");
String sj = request.getParameter("sj");
log.debug("gxandsj=============================================99999999999999999"+gx+sj); //System.out.println("qqqqqqqqqqqqqqqqqqqqkkkkkkkkkkkk "+qk);
ArrayList firstJhList = (ArrayList) request.getSession(true).getAttribute("homepage_jhList");
String tempJh = null;
if (firstJh != null) {
if (!firstJh.equals("*")) {
tempJh = (String) firstJhList.get(Integer.parseInt(firstJh));
}
}
Ajjc360Value ajjc360Value = new Ajjc360Value();
ajjc360Value.setQk(qk);
ajjc360Value.setJingBie(jingxing);
if (wzbz == null) wzbz = "1";//默认正钻井
ajjc360Value.setWzbz(wzbz);
ajjc360Value.setJingHao(tempJh); if (log.isDebugEnabled()) {
log.debug("HtmlAction Ajjc360Value ******************:" + ajjc360Value);
}
request.getSession(true).removeAttribute("top_condition");
request.getSession(true).setAttribute("top_condition", ajjc360Value); UserProfile userProfile = (UserProfile) request.getSession(true).
getAttribute(SessionConstant.USER_PROFILE);
event.setUserProfile(userProfile);
event.setCurrentPage(Integer.parseInt(currentPage));
event.setPageSize(Integer.parseInt(pageSize));
event.setAjjc360(ajjc360Value);
event.setGx(gx);
event.setSj(sj);
if (log.isDebugEnabled()) {
log.debug("AJJC360HtmlAction.perform() End.================ssssssssss888888888888888"+gx+sj);
}
return event;
}
<a href="welcome_frame_curhome.do?currentPage=1&pageSize=15"
这样也不行,还是有个过渡页面,不过过渡页面停顿几秒,然后自动跳往主页。