모두 삭제 JS
                                            
 4009 단어  IE
                    
// checkbox
	  function selectCheck()
	  {
	  	for(var i=0;i<document.forms[0].elements.length; i++)
	  	{
	  		if(document.forms[0].elements[i].type=='checkbox')
	  		{
	  			if(document.forms[0].elements[i].checked==true)
	  			{
	  				return true;
	  			}
	  		}
	  	}
	  	return false;
	  }
      
      
	  function delSelect()
	  {
	    var select="";
	     
	  	if(!selectCheck())
	  	{
	  		alert(" !");
	  		return;
	  	}
	
	    // , null
		if(document.all.checknum.length==null)
		{
			select += document.all.checknum.value + ",";
		}
		
		// 
		for(var i = 0; i < document.all.checknum.length; i ++)
		{
			if(document.all.checknum[i].checked == true)
			{
				select += document.all.checknum[i].value + ",";
			}
		}
		if(confirm(" , ?"))
		{
			// 
			select = select.substr(0, select.length - 1);
			alert(select);
			document.forms[0].action="ylajax.do?Method=deleteRow&select="+select;
			document.forms[0].submit();
			return ;
		}
  	}
<td><input type="checkbox" name="checknum" value=<bean:write name="s" property="sno"/>></td>
ACTION:
public ActionForward deleteRow(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response) 
	{
		StudentForm sg = (StudentForm)form;
		List<String> list = new ArrayList<String>();
		String check = request.getParameter("select");
		String [] id = check.split(",");
		for (int i = 0; i < id.length; i++) 
		{
			list.add(id[i]);
		}
		ProccessStu.getStu().delStudentTex(list);
		List<StudentTex> lists = ProccessStu.getStu().getStudentTex();
		sg.setStu(lists);		
		return mapping.findForward("initial");
	} 
// ----------------------------------------------------------------------------------
function selectAll()
{
  	for(var i=0;i<document.forms[0].elements.length;i++)
  	{
  		if(document.forms[0].elements.type='checkbox')
  		{
  			if(document.forms[0].check.checked==true)
  			{
  		document.forms[0].elements[i].checked=true;	
  			}
  			else
  			{
  		document.forms[0].elements[i].checked=false;
  			}
  		}
  	}
}
<input type="checkbox" name="check" onClick="selectAll();" >
 -----------------------------------------------------------------
function openwindow( url, winName, width, height)
{
	xposition=0; yposition=0;
	if((parseInt(navigator.appVersion) >= 4 ))
	{
	  xposition = (screen.width - width) / 2;
	  yposition = (screen.height - height) / 2;
	}
	theproperty ="width=" + width + "," + "height=" + height + "," + "location=0," + "menubar=0," + "resizable=1," 	+ "scrollbars=0," + "status=0," + "titlebar=0,"
	+ "toolbar=0," + "hotkeys=0," + "screenx=" + xposition + "," // Netscape
	+ "screeny=" + yposition + "," // Netscape
	+ "left=" + xposition + "," //IE
	+ "top=" + yposition; //IE
	window.open( url,winName,theproperty );
}
JS ---------------------------------------------------------------------------
<html:file property='uploadFile' styleClass="btn" size="50" onkeydown="if(event.keyCode!=9 && (event.keyCode<35 || event.keyCode>40)) return false;"/>
                이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
KindEditor 4.1.2 ie6 loadScript bugKindEditor 버전 4.1.2 ie6 아래_loadScript 메소드 버그 소스 코드는 다음과 같습니다. 이 세그먼트 코드를 다음 코드로 변경하면 정상적으로 실행됩니다....
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.