|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
doSimpleXMLHttpRequest, IE and non ascii charactersHi! 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 ` 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@... To unsubscribe from this group, send email to mochikit+unsubscribe@... For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: doSimpleXMLHttpRequest, IE and non ascii charactersYou probably need to use encodeURIComponent. 2009/4/16 Boštjan Jerko <mlist@...>: > > 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 ` 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@... To unsubscribe from this group, send email to mochikit+unsubscribe@... For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: doSimpleXMLHttpRequest, IE and non ascii charactersYes, 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 <mlist@...>: >> >> 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 ` 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@... To unsubscribe from this group, send email to mochikit+unsubscribe@... For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free embeddable forum powered by Nabble | Forum Help |