1 Replies - 927 Views - Last Post: 06 August 2014 - 04:33 AM

#1 murali2489  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 33
  • Joined: 03-August 13

document.formname.submit is passing null value in IE 11 after sometime

Posted 06 August 2014 - 02:09 AM

Hi All,

My application works fine in ie 8 but while running the application in IE 11, at first it loads fine. But after sometime when i click on any button or any links in the page, I am getting an error stating ** No action exist for view Null ** .

Please advise

What happens is ,
1.we are having hidden variable in our JSP's
2.during runtime, values (view and action) are passed onto the hidden variable and appropriate view and action gets loaded.
3.Javascript is used to get the value from hidden variable and submitting the form.

** when we first load our page in ie11 everything works fine but aftersome time when we click on any button or link in the page somehow the values of hidden varaible becomes null inside javasript and while submitting the form, page did not get loaded because null value is passed. **

Hidden variables are below


<INPUT TYPE="HIDDEN" name="<%=CiViewBeanKeys.JSP_VIEW_NAME%>" value="">
<INPUT TYPE="HIDDEN" name="<%=CiViewBeanKeys.JSP_ACTION_NAME%>" value="">
 


** This view name becomes null after sometime mysteriously inside javascript when we click on a button **
** I even put an alert before and after submitting form inside javascript function and i got the values properly in the alert **

** **The Area I am getting the value as null is below **


document.f1.submit(); 


My JSP page is below for reference

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>

<head>


</script>
<script>
function submit_suspendRetro() 
{
    document.f1.<%=CiViewBeanKeys.JSP_ACTION_NAME%>.value = "<%=CiViewBeanKeys.SPB_ACTION_SUSPEND_RETRO%>";
	document.f1.<%=CiViewBeanKeys.JSP_VIEW_NAME%>.value = "<%=CiViewBeanKeys.SPB_VIEW_NAME_RETRO_STATUS%>";
	document.f1.submit();
}
function submit_restartRetro() 
{
    document.f1.<%=CiViewBeanKeys.JSP_ACTION_NAME%>.value = "<%=CiViewBeanKeys.SPB_ACTION_RESTART_RETRO%>";
	document.f1.<%=CiViewBeanKeys.JSP_VIEW_NAME%>.value = "<%=CiViewBeanKeys.SPB_VIEW_NAME_RETRO_STATUS%>";
	document.f1.submit();
}

function reloadPage() 
{
    document.f1.<%=CiViewBeanKeys.JSP_ACTION_NAME%>.value = "<%=CiViewBeanKeys.SPB_ACTION_LOAD_RETRO_STATUS%>";
	document.f1.<%=CiViewBeanKeys.JSP_VIEW_NAME%>.value = "<%=CiViewBeanKeys.SPB_VIEW_NAME_RETRO_STATUS%>";
	document.f1.submit();
}


function resetInUsedBy() 
{

    var boolContinue = true;
    sMsg = "Are you certain you want to Reset Account ?";
    boolContinue = confirm(sMsg);
    if (boolContinue) {
    document.f1.<%=CiViewBeanKeys.JSP_ACTION_NAME%>.value = "<%=CiViewBeanKeys.SPB_ACTION_RESTART_ACCT%>";
	document.f1.<%=CiViewBeanKeys.JSP_VIEW_NAME%>.value = "<%=CiViewBeanKeys.SPB_VIEW_NAME_RETRO_STATUS%>";
	document.f1.submit();
	}else{
	return;
	}
}

</script>
	<META http-equiv="Content-Style-Type" content="text/css">
	<META name="GENERATOR" content="IBM WebSphere Studio">
	<link rel="STYLESHEET" type="text/css" href="theme/retro.css">
	<TITLE><%=spb_login_info.getApplicationName()%> - Retro Calculation Status</title>  
</HEAD>

<BODY STYLE="margin-left: 2px; margin-right: 0px; margin-top: 0px">
<FORM method="POST" NAME="f1" ACTION="<%= request.getContextPath() + spb_login_info.getApplicationURL() %>">
<% 
	// Hardcoded page name for the menu
	String pageName = CiViewBeanKeys.SPB_VIEW_NAME_RETRO_STATUS;
%>
<%@ include file="../html/spbill_retro_calc_menu.html" %>
<INPUT NAME="<%=com.app.spbill.core.interfaces.CiViewBeanKeys.SPB_HIDDEN_APPLICATION_ID%>" TYPE="HIDDEN" VALUE="<%= spb_login_info.getApplicationId()%>"/>
<INPUT TYPE="HIDDEN" name="<%=CiViewBeanKeys.JSP_VIEW_NAME%>" value="">
<INPUT TYPE="HIDDEN" name="<%=CiViewBeanKeys.JSP_ACTION_NAME%>" value="">
<input type="hidden" name="<%=CiViewBeanKeys.SPB_INPUT_ACCOUNTNUMBER%>" value="<%=vBean.getAcctNumber()%>" />
<TABLE WIDTH="800px" CELLSPACING="0" BORDER="0">  
      
   <% if (mBean != null)
   	{
		if (mBean.getMessage() != null && !mBean.getMessage().equals(""))	      
		{
		%>
	     <TR>
		   	<TD>
  		    	<a CLASS="errormessage"><%=mBean.getMessage()%></a>
	        </TD>
 		 </TR>
		<%
   		}
	}
	%>
</TABLE>

<TABLE WIDTH="100%" CELLSPACING="2" CELLPADDING="2" BORDER="0">
<TR bordercolor='white' CLASS="pageheading" HEIGHT=20>
	<TD  CLASS="statictext">Retro Calculation Status: </TD>
</TR>
</TABLE>
<TABLE WIDTH="100%" CELLSPACING="2" CELLPADDING="2" BORDER="0">
	<TR>
  		<TD CLASS="iotext">Retro Pre-Edit: <%=vBean.getRetroPreEditMess()%></TD>
	</TR> 
	<TR>
  		<TD CLASS="iotext">Retro Calculation: <%=vBean.getRetroCalcMess()%></TD>
	</TR> 
	<TR>
  		<TD CLASS="iotext">Pes Calculation: <%=vBean.getPESCalcMess()%></TD>
	</TR>  
</TABLE> 

<TABLE>
  <TR>
    <TD>
      <INPUT CLASS="statictext" NAME="SUSPEND CALC ENGINE"       
          <%if(!isRetOwner){      
	      %> disabled  <%}%>
	      
           
      onclick="submit_suspendRetro()" TYPE="BUTTON" VALUE="SUSPEND RETRO ENGINES"/>
    </TD>
    <TD>
      <INPUT CLASS="statictext" NAME="RESTART CALC ENGINE" 
          <%if(!isRetOwner){      
	      %> disabled  <%}%>
	      
      
      onclick="submit_restartRetro()" TYPE="BUTTON" VALUE="RESTART RETRO ENGINES" />
    </TD>
    <TD>
	      <INPUT CLASS="statictext" 	      
	      
	      
	      onclick="reloadPage()" TYPE="BUTTON" VALUE="Refresh" />
	      
	      <INPUT CLASS="statictext" 	      
	       <%if(!isRetOwner){      
	      %> disabled  <%}%>
	      
	      onclick="resetInUsedBy()" TYPE="BUTTON" VALUE="Reset Account" />
	    </TD>
	   
  </TR>
</TABLE>
<TABLE WIDTH="100%" CELLSPACING="2" CELLPADDING="2" BORDER="0">
<TR bordercolor='white' CLASS="pageheading" HEIGHT=20>
	<TD  CLASS="statictext">Retro Pre Edit Running: </TD>
</TR>
</TABLE>
<TABLE WIDTH="100%" CELLSPACING="2" CELLPADDING="2" BORDER="0" >
<TR CLASS="HighlightRow" bordercolor='white' CLASS="HighlightRow" HEIGHT=20>
	<TD CLASS="statictext">Account Name</TD>
	<TD CLASS="statictext">Account Number</TD>
	<TD CLASS="statictext">Effective Date</TD>
	<TD CLASS="statictext">Start Time</TD>
</TR>	
<%
	ArrayList editQueue = vBean.getPreEditQueue();
	if (editQueue != null)
	{		boolean bRowHighlight = true;
			for (int c=0; c< editQueue.size(); c++)
			{
				CvQueueRecord er = (CvQueueRecord) editQueue.get(c);
				bRowHighlight = !bRowHighlight;	
	%>	
	<TR <%if(bRowHighlight){%> class="HighlightRow"<%}else{%>class="StandardRow"<%}%> >
		<TD CLASS="iotext">
			<a><%= er.getAccountName() %></a>  
		</TD>
		<TD CLASS="iotext">
			<a><%= er.getAccountNumber() %></a>
		</TD>
		<TD CLASS="iotext">
			<a><%= er.getCIMDate() %></a>
		</TD>
		<TD CLASS="iotext">
			<a><%= er.getStartTime() %> </a>
		</TD>
	</TR>
	 <%
   			}
	}
	%>  	
</TABLE>
<TABLE WIDTH="100%" CELLSPACING="2" CELLPADDING="2" BORDER="0">
<TR bordercolor='white' CLASS="pageheading" HEIGHT=20>
	<TD  CLASS="statictext">Retro Calculation Running: </TD>
</TR>
</TABLE>
<TABLE WIDTH="100%" CELLSPACING="2" CELLPADDING="2" BORDER="0" >
<TR CLASS="HighlightRow" bordercolor='white' CLASS="HighlightRow" HEIGHT=20>
	<TD CLASS="statictext">Account Name</TD>
	<TD CLASS="statictext">Account Number</TD>
	<TD CLASS="statictext">Effective Date</TD>
	<TD CLASS="statictext">Start Time</TD>
</TR>	
<%
	ArrayList retQueue = vBean.getRetroQueue();
	if (retQueue != null)
	{		boolean bRowHighlight = true;
			for (int a=0; a< retQueue.size(); a++)
			{
				CvQueueRecord cr = (CvQueueRecord) retQueue.get(a);
				bRowHighlight = !bRowHighlight;	
	%>	
	<TR <%if(bRowHighlight){%> class="HighlightRow"<%}else{%>class="StandardRow"<%}%> >
		<TD CLASS="iotext">
			<a><%= cr.getAccountName() %></a>  
		</TD>
		<TD CLASS="iotext">
			<a><%= cr.getAccountNumber() %></a>
		</TD>
		<TD CLASS="iotext">
			<a><%= cr.getCIMDate() %></a>
		</TD>
		<TD CLASS="iotext">
			<a><%= cr.getStartTime() %> </a>
		</TD>
	</TR>
	 <%
   			}
	}
	%>  	
</TABLE>
<TABLE WIDTH="100%" CELLSPACING="2" CELLPADDING="2" BORDER="0">
<TR bordercolor='white' CLASS="pageheading" HEIGHT=20>
	<TD  CLASS="statictext">PES Calculation Running: </TD>
</TR>
</TABLE>
<TABLE WIDTH="100%" CELLSPACING="2" CELLPADDING="2" BORDER="0" >
<TR CLASS="HighlightRow" bordercolor='white' CLASS="HighlightRow" HEIGHT=20>
	<TD CLASS="statictext">Account Name</TD>
	<TD CLASS="statictext">Account Number</TD>
	<TD CLASS="statictext">Effective Date</TD>
	<TD CLASS="statictext">Start Time</TD>
</TR>
<%
	ArrayList pesQueue = vBean.getPESQueue();
	if (pesQueue != null)
	{		boolean bRowHighlight = true;
			for (int b=0; b< pesQueue.size(); b++)
			{
				CvQueueRecord cp = (CvQueueRecord) pesQueue.get(B)/>;
				bRowHighlight = !bRowHighlight;	
	%>	
	<TR <%if(bRowHighlight){%> class="HighlightRow"<%}else{%>class="StandardRow"<%}%> >
		<TD CLASS="iotext">
			<a><%= cp.getAccountName() %></a>  
		</TD>
		<TD CLASS="iotext">
			<a><%= cp.getAccountNumber() %></a>
		</TD>
		<TD CLASS="iotext">
			<a><%= cp.getCIMDate() %></a>
		</TD>
		<TD CLASS="iotext">
			<a><%= cp.getStartTime() %> </a>
		</TD>
	</TR>
	 <%
   			}
	}
	%>  	
</TABLE>
<TABLE WIDTH="100%" CELLSPACING="2" CELLPADDING="2" BORDER="0">
<TR bordercolor='white' CLASS="pageheading" HEIGHT=20>
	<TD  CLASS="statictext">Scheduled Retro Calculations: </TD>
</TR>
</TABLE>
<TABLE WIDTH="100%" CELLSPACING="2" CELLPADDING="2" BORDER="0" >
<TR CLASS="accountbar" bordercolor='white' CLASS="HighlightRow" HEIGHT=20>
	<TD CLASS="statictext">Account Name</TD>
	<TD CLASS="statictext">Account Number</TD>
	<TD CLASS="statictext">Effective Date</TD>
	<TD CLASS="statictext">Status</TD>
	<TD CLASS="statictext">Retro</TD>
	<TD CLASS="statictext">PES</TD>
	<TD CLASS="statictext">Reports</TD>
	<TD CLASS="statictext">Calc Start</TD>
	<TD CLASS="statictext">Calc End</TD>
	<TD CLASS="statictext">Reset</TD>


</TR>
<%
	ArrayList retros = vBean.getRetros();
	if (retros != null)
	{		boolean bRowHighlight = false;
			for (int i=0; i< retros.size(); i++)
			{
				CvRetroStatus cv = (CvRetroStatus) retros.get(i);
				bRowHighlight = !bRowHighlight;	
	%>	
	<TR <%if(bRowHighlight){%> class="HighlightRow"<%}else{%>class="StandardRow"<%}%> >
		<TD CLASS="iotext">
			<a><%= cv.getAccountName() %></a>  
		</TD>
		<TD CLASS="iotext">
			<a><%= cv.getAccountNumber() %></a>
		</TD>
		<TD CLASS="iotext">
			<a><%= cv.getCIMDate() %></a>
		</TD>
		<TD CLASS="iotext">
			<a><%= cv.getStatus() %> </a>
		</TD>
		<TD CLASS="iotext">
			<a><%= cv.getRetro() %> </a>
		</TD>	
		<TD CLASS="iotext">
			<a><%= cv.getPES() %> </a>
		</TD>	
		<TD CLASS="iotext">
			<a><%= cv.getReports() %> </a>
		</TD>
		<TD CLASS="iotext">
			<a><%= cv.getCalcStart() %> </a>
		</TD>
		<TD CLASS="iotext">
			<a><%= cv.getCalcEnd() %> </a>
		</TD>
		
		<TD CLASS="iotext">
		<INPUT TYPE="CHECKBOX" value ="change" NAME="resetAcct_<%=i%>" />
	    </td>
		
	</TR>
	 <%
   			}
	}
	%>  


</TABLE>




</form>
</BODY>
</HTML>



Is This A Good Question/Topic? 0
  • +

Replies To: document.formname.submit is passing null value in IE 11 after sometime

#2 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3576
  • View blog
  • Posts: 10,441
  • Joined: 08-June 10

Re: document.formname.submit is passing null value in IE 11 after sometime

Posted 06 August 2014 - 04:33 AM

what does your JSP page HTML source code looks like in the browser?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1