• Post Reply Bookmark Topic Watch Topic
  • New Topic

error on tag

 
hafiz adam hussin
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this error happen after i make a hide comment


the error is:
Syntax error, insert ")" to complete Expression


the code is:
function sortListBy(sortParaName, sortOrder)
{
document.forms[0].sortedByCodeOrder.value = "<%=Constants.ASCENDING_ORDER%>";
document.forms[0].sortedByNameOrder.value = "<%=Constants.ASCENDING_ORDER%>";
//document.forms[0].sortedByTypeOrder.value = "<%=//Constants.ASCENDING_ORDER%>";

if(sortParaName == "<%=ListProfileForm.SORT_BY_CODE%>")//error is here in tag %>
{
document.forms[0].sortedByCodeOrder.value= sortOrder;
}
else if(sortParaName == "<%=ListProfileForm.SORT_BY_NAME%>")
{
document.forms[0].sortedByNameOrder.value= sortOrder;
}
/*else if(sortParaName == "<%=//ListProfileForm.SORT_BY_TYPE%>")
{
document.forms[0].sortedByTypeOrder.value= sortOrder;
}*/

document.forms[0].sortBy.value = sortParaName;
document.forms[0].event.value = "<%=ProfileAction.EVENT_VIEW_LIST_PROFILE%>";
document.forms[0].submit();
}
 
hafiz adam hussin
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

this error happen after i make a hide comment


the error is:
Syntax error, insert ")" to complete Expression


the code is:



i found the solution:

 
bhanu chowdary
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Better use JSP style comments
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!