Re: Integrating datejs
On 13 Jul., 17:22, Thomas Broyer t.bro...@gmail.com wrote: FYI, searching for datejs gwt on Google leads tohttp://code.google.com/p/kiyaa/wiki/Moduleswhich already provides a GWT wrapper for DateJS. this no good, it doesn't even compile. It inherits stuff that isn't part of the jar file. I just copied the DateJs.java class into my project, but using it fails with a JavaScript exception: com.google.gwt.core.client.JavaScriptException: (TypeError): this[16908544].clearTime is not a function This happens when I do a DateJS.today().getTimezone(). I had this problem too when using the stuff without a wrapper... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Integrating datejs
Given that DateJS changes the built-in Date object, I wouldn't be surprised that it doesn't work cross-window/cross-frame (changing built-in types is considered bad practice anyway). Using add-linker name=xs / (beware: deprecated) might be the only workaround. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/bamr0xNCj3EJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Integrating datejs
thanx for helping, I've given up on it, too much hassle and I don't think it's worth it for what I need... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Integrating datejs
Battling with timezones in my app I come across the datejs project (datejs.com). Is anybody out there who can help me integrating this stuff in my GWT (2.3.0) project? I followed the Getting started examples but executing anything described therein results in errors like undefined in Firebug. (Yes, I loaded date.js from SVN). Any help/hints greatly appreciated -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Integrating datejs
Are you using $wnd.Date to access the enhanced Date object? Also, how are you loading the date.js script in your app? See http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html (if you haven't already) FYI, searching for datejs gwt on Google leads to http://code.google.com/p/kiyaa/wiki/Modules which already provides a GWT wrapper for DateJS. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/UeidMDPr5dIJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Integrating datejs
On 13 Jul., 17:22, Thomas Broyer t.bro...@gmail.com wrote: Are you using $wnd.Date to access the enhanced Date object? yes, I found this valuable hint in one of your posts! Right now I'm trying the examples mentioned in Getting started and even they don't work. Also, how are you loading the date.js script in your app? I have added the loading in my initial .html File. There I evaluate the locale and then load the corresponding date-XXX.js File: document.write(script type=\text/javascript\ src=\'dates/ core.js\'/script) document.write(script type=\text/javascript\ src=\'dates/ date- + locale.replace(_, -, g) + .js\'/script) document.write(script type=\text/javascript\ src=\'dates/ extras.js\'/script) In Firebug I can see that the correct datejs files are loaded successfully so the stuff should be available Seehttp://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI...(if you haven't already) check, done that, been there, ... FYI, searching for datejs gwt on Google leads tohttp://code.google.com/p/kiyaa/wiki/Moduleswhich already provides a GWT wrapper for DateJS. I had seen this but didn't have a closer look what it is. I'll check it out... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.