I have a javascript function like following:
---
function gotoProvince(region)
{
location.href = 'http://www.XXX.XXX/shopping/productdetail.jsp?regionToggle=true&languageToggle=true&content=/portlets/personal/wireless/product_details.jsp&metaKey=PrsShpWls_Content&wlcs_catalog_item_sku=66282&INT=MOB_SA_Q4_BBPearl_LM_wlpbest®ion=' + region + '&language=en';
}
---
A
JSP file writes out the html code and javascript function. This function is to switch the province selection.
The wierd thing is that it works fine in IE6, but it did not work in Firefox. In firefox, it seem that it treat & as ampersand and amp; as a part of query parameter.
Fox example, the above link:
'amp;language' becomes the parameter key, and en becomes the parameter value
Why firefox and IE6 interpret the query
string in a different way?
Thanks in advance