Hi,
I’m facing one issue in passing percentage value in through javascript. Here’s a sample script below.
<html>
<body>
<script language=”JavaScript”>
function call_action_soa(form){
alert(form);
}
</script>
<FORM NAME=”myform” ACTION=”” METHOD=”GET”>
<table>
<tr><td>
<a href=”javascript:call_action_soa(‘PP-asia%54069-061031’)”>PP-asia%54069-061031</a></td>
<td><INPUT TYPE=”button” NAME=”button” Value=”Click” onClick=”javascript:call_action_soa(‘PP-asia%54069-061031’)”>
</td>
</FORM>
</tr>
</table>
</body>
</html>
Here,when I pass the value in href, in javascript function,its getting transformed to ‘PP-asiaT54069-061031’ ie. the ‘%’ is getting replaced by ‘T’. The same think when used from a button doesn’t transform the %.
Any pointer will be highly appreciated.
Thanks