Nice :-)
and I got one problem solved as well - URL encoding of special characters ...
in my sample I used:
function get(obj) {
var poststr = "name=" + encodeURI( document.getElementById("name").value ) +
"&address=" + encodeURI( document.getElementById("address").value );
makePOSTRequest('/w600libsam/ajax4p.pgm', poststr);
}
but all special char. was converted into 2 3 bytes fields as %C3%BC for ΓΌ
it should be escape NOT encodeURI ....
function get(obj) {
var poststr = "name=" + escape( document.getElementById("name").value ) +
"&address=" + escape( document.getElementById("address").value );
alert(poststr)
makePOSTRequest('/w600libsam/ajax4p.pgm', poststr);
}
WEB RESCOURCE
http://xkr.us/articles/_javascript_/encode-compare/
YAHOO! GROUPS LINKS
- Visit your group "Easy400Group" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
