• Post Reply Bookmark Topic Watch Topic
  • New Topic

inner quotes in onclick statement code

 
Menen Zwerky
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I would like to get some help on this issue regarding this code line:

<sm:button className="InputStyle" name="modify" value="Modify" onClick="applyChange('<%=Server%>')" userType="<%= TypeOfUser %>" />

Is there some mistake about the inner quotes?


The around context is the following:

................

function applyChange(Server){
document.core.action="applyChange.htm?sigla="+Server;

document.core.submit();
}

................
<body class=body>
<%
Hashtable news=(Hashtable)request.getAttribute("news);
String Server=(String)news.get("Server");
%>
................
<sm:button className="InputStyle" name="modify" value="Modify" onClick="applyChange('<%=Server%>')" userType="<%= TypeOfUser %>" />
</body>
................

Thanks
Menen
 
K West
Ranch Hand
Posts: 58
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please use Code Tags to post the source code.
 
K West
Ranch Hand
Posts: 58
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing wrong with your inner quotes. But why isn't there <script> tag around your JavaScript function?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!