Search This Blog
Monday, December 14, 2009
Sunday, December 6, 2009
Jquery: ajax post and encoding
Works fine in my side.. Thanks to Rodrigo Asensio.
From http://stackoverflow.com/questions/965150/jquery-ajax-post-and-encoding/1229012#1229012
I have a better solution now. Both post and get works PERFECTLY. I'm working over tomcat who by default handle ISO 8859 stuff.
Web page properties:
From http://stackoverflow.com/questions/965150/jquery-ajax-post-and-encoding/1229012#1229012
I have a better solution now. Both post and get works PERFECTLY. I'm working over tomcat who by default handle ISO 8859 stuff.
Web page properties:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
charset of the webpage inside the head.Now, all my parameteres are escaped with escape function, I provided this solution before.<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
(function($) {$.fn.escape = function() {
return escape(this.val());};})(jQuery);
Now, when sending the ajax request I set the contentType to this:contentType : "application/x-www-form-urlencoded; charset=iso-8859-1"
And finally , when receiving the parameters at the servlet or any receiver I get a decoded parameter using this.POST and GET works perfectly in IE 7 and 8 , SAFARI, CHROME and FIREFOX.public String getHttpParameter(String name) throws Exception {
String value = this.getHttpRequest().getParameter(name);
return value == null || value.isEmpty() ? value : URLDecoder.decode(value,"ISO-8859-1");
}
Wednesday, November 25, 2009
Friday, November 20, 2009
Monday, November 16, 2009
Sunday, November 15, 2009
Email with Gmail
http://stackoverflow.com/questions/1555145/sending-email-with-gmail-smtp-with-codeigniter-email-library
Friday, November 13, 2009
Thursday, November 12, 2009
Thursday, November 5, 2009
Wednesday, November 4, 2009
Saturday, October 31, 2009
Friday, October 30, 2009
Wednesday, October 28, 2009
Monday, October 26, 2009
Thursday, October 22, 2009
Wednesday, October 21, 2009
xhtml validation
It's a firefox plugin to validate if the page is xhtml valid:
http://users.skynet.be/mgueury/mozilla/
http://users.skynet.be/mgueury/mozilla/
Subscribe to:
Posts (Atom)