[mochikit] Re: doSimpleXMLHttpRequest, IE and non ascii characters

2009-04-16 Thread Bob Ippolito

You probably need to use encodeURIComponent.

2009/4/16 Boštjan Jerko ml...@japina.eu:

 Hi!

 I am using MochiKit 1.4 and have a simple usage of
 doSimpleXMLHttpRequest:

         var handleServerFeedback = function(result)
         {
                 log(d_querystring);

         }

         var handleServerError = function()
         {
                 log(error);

         }

         returnedServerValue = new doSimpleXMLHttpRequest(/
 showContent/?f_name=+d_querystring);
         log(d_querystring);

 returnedServerValue
 .addCallbacks(handleServerFeedback,handleServerError);


 When I use the script on any browser it works perfectly, but when I
 set d_querystring with some non standard text characters or non ascii
 characters it doesn't work on Internet Explorer - it works in Firefox.

 I did a RSS reader and when I have a feed caled:  Avian’s Blog it
 doesn't work. Mind that there is a #96; character in the name. The
 problem also appears when I use some Slovene characters (e.g. ccaron -
 č).


 Any ideas why is this happening?


 B.



 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
MochiKit group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to 
mochikit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~--~~~~--~~--~--~---



[mochikit] Re: doSimpleXMLHttpRequest, IE and non ascii characters

2009-04-16 Thread Boštjan Jerko

Yes, that does the trick.
I've added encodeURIComponent to d_querystring and voila. Works  
everytime.

Thank's for the quick answer.

B.

On 16.4.2009, at 22:04, Bob Ippolito wrote:


 You probably need to use encodeURIComponent.

 2009/4/16 Boštjan Jerko ml...@japina.eu:

 Hi!

 I am using MochiKit 1.4 and have a simple usage of
 doSimpleXMLHttpRequest:

 var handleServerFeedback = function(result)
 {
 log(d_querystring);

 }

 var handleServerError = function()
 {
 log(error);

 }

 returnedServerValue = new doSimpleXMLHttpRequest(/
 showContent/?f_name=+d_querystring);
 log(d_querystring);

 returnedServerValue
 .addCallbacks(handleServerFeedback,handleServerError);


 When I use the script on any browser it works perfectly, but when I
 set d_querystring with some non standard text characters or non ascii
 characters it doesn't work on Internet Explorer - it works in  
 Firefox.

 I did a RSS reader and when I have a feed caled:  Avian’s Blog it
 doesn't work. Mind that there is a #96; character in the name. The
 problem also appears when I use some Slovene characters (e.g.  
 ccaron -
 č).


 Any ideas why is this happening?


 B.






 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
MochiKit group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to 
mochikit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~--~~~~--~~--~--~---