[mochikit] Re: howto get the euro; sign in a new dom node?
Hello Sander, On 8/1/07, SanderElias [EMAIL PROTECTED] wrote: I needed to insert an euro sign in a newly created dome node, and it backfired on me. I think I must miss something! I tried this: var newDiv = DIV(null,euro; 11,-) document.appendChild(newDiv) You will have to use the unicode escape sequence, like this: var newDiv = DIV(null,\u20ac 11,-) document.appendChild(newDiv) If your html or js file where you keep this code is saved in utf-8 and served with the right content encoding, I believe you can also just type in the euro symbol directly. Arnar ps. Sorry for the double post Sander, forgot to reply to the list earlier. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~--~~~~--~~--~--~---
[mochikit] Re: howto get the euro; sign in a new dom node?
Hello Arnar, Tanks for the clarification! You will have to use the unicode escape sequence, like this: var newDiv = DIV(null,\u20ac 11,-) document.appendChild(newDiv) Aha! well, it looks like I need to finds a unicode escape table! If your html or js file where you keep this code is saved in utf-8 and served with the right content encoding, I believe you can also just type in the euro symbol directly. I'm afraid this is too error-prone for me. I'll stick with the escape codes! ps. Sorry for the double post Sander, forgot to reply to the list earlier. No Problem! with kinds regards Sander --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~--~~~~--~~--~--~---
[mochikit] Re: howto get the euro; sign in a new dom node?
Here's a great Unicode utility -- just type in characters that _look like_ what you're looking for and you'll get the Unicode, HTML, etc. http://leftlogic.com/lounge/articles/entity-lookup/ Regards, etc... David On 8/1/07, Arnar Birgisson [EMAIL PROTECTED] wrote: On 8/1/07, SanderElias [EMAIL PROTECTED] wrote: You will have to use the unicode escape sequence, like this: var newDiv = DIV(null,\u20ac 11,-) document.appendChild(newDiv) Aha! well, it looks like I need to finds a unicode escape table! For this particular case I just googled for euro symbol unicode. Didn't even have to click anything since the code was displayed in the search results :o) Otherwise, this is the official reference: http://www.unicode.org/charts/ Arnar -- David Janes Founder, BlogMatrix http://www.blogmatrix.com http://blogmatrix.blogmatrix.com --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~--~~~~--~~--~--~---
[mochikit] Re: howto get the euro; sign in a new dom node?
On 8/1/07, SanderElias [EMAIL PROTECTED] wrote: You will have to use the unicode escape sequence, like this: var newDiv = DIV(null,\u20ac 11,-) document.appendChild(newDiv) Aha! well, it looks like I need to finds a unicode escape table! For this particular case I just googled for euro symbol unicode. Didn't even have to click anything since the code was displayed in the search results :o) Otherwise, this is the official reference: http://www.unicode.org/charts/ Arnar --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~--~~~~--~~--~--~---
[mochikit] Re: Async status success return codes question
Implement a workaround. Just write an errback that turns 2xx into a successful response, that way your code will still work if the behavior eventually changes. On 7/31/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: So is this yet another thread on success codes that ends without consensus or a final word on success code meaning in MochiKit? Obviously I would prefer it if MochiKit treated all 2** as successes but if the decision is that this wont change then I'll just implement the work around and take it of my TODO list. So Bob can you provide the final word? Regards, Simon Cusack --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~--~~~~--~~--~--~---