Re: Creating CSS Animations dynamically?
Actually, a quick note to anyone in future googleing this (hi!) beware of another limitation in firefox During a CSS transition, getComputedStyle returns the original property value in Firefox, but the final property value in WebKit. https://developer.mozilla.org/en/docs/Web/API/window.getComputedStyle So, in firefox, your cant query the current position mid-transition. At least not in the way. I got a workaround for my own use-case, but thought it was worth noting. ~~~ Thomas Bertines online review show: http://randomreviewshow.com/index.html Try it! You might even feel ambivalent about it :) On 4 January 2015 at 00:52, Thomas Wrobel darkfl...@gmail.com wrote: perfect. I wasn't aware you could do it just like that. That works fine. (at least on FF and Chrome). Also saves me from having all those ugly vendor extensions. ~~~ Thomas Bertines online review show: http://randomreviewshow.com/index.html Try it! You might even feel ambivalent about it :) On 3 January 2015 at 22:13, Jens jens.nehlme...@gmail.com wrote: Have you tried using transitions instead of animations? So you add transition:transform ease-in-out 1s; transform:translate(0px, 0px); as CSS class to the element you want to translate and then dynamically add a style attribute to that element which contains transform:translate(targetX, targetY); -- J. -- You received this message because you are subscribed to a topic in the Google Groups Google Web Toolkit group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/5h6FeUdIh88/unsubscribe . To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: Creating CSS Animations dynamically?
perfect. I wasn't aware you could do it just like that. That works fine. (at least on FF and Chrome). Also saves me from having all those ugly vendor extensions. ~~~ Thomas Bertines online review show: http://randomreviewshow.com/index.html Try it! You might even feel ambivalent about it :) On 3 January 2015 at 22:13, Jens jens.nehlme...@gmail.com wrote: Have you tried using transitions instead of animations? So you add transition:transform ease-in-out 1s; transform:translate(0px, 0px); as CSS class to the element you want to translate and then dynamically add a style attribute to that element which contains transform:translate(targetX, targetY); -- J. -- You received this message because you are subscribed to a topic in the Google Groups Google Web Toolkit group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/5h6FeUdIh88/unsubscribe . To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: Performance impact of Focus panel with no handlers?
Ah, thanks. Good to know. What about all those little hidden input tags, also negligible? ~~~ Thomas Bertines online review show: http://randomreviewshow.com/index.html Try it! You might even feel ambivalent about it :) On 30 December 2014 at 17:03, Jens jens.nehlme...@gmail.com wrote: Generally I think they won't really cost you more performance than using a normal panel. FocusPanel just adds a bunch of (delegate) methods you can call and thats it. If your code never calls them then they are likely to be removed by the GWT compiler anyways. -- J. -- You received this message because you are subscribed to a topic in the Google Groups Google Web Toolkit group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/Nvy8OOBn8sE/unsubscribe . To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: ie10 permutation causing browser errors? (gwt 2.6.1) really baffled here.
Well, it WAS a real IE10 we were testing previously, although it silently upgraded itself so I now need to work out how to downgrade. Doesn't help though in either cases though - we need this working on IE11 anyway. So either a) How do we force it to use IE10 mode (not Edge which seems to be the default) b) Make JavaScript replace function work on IE11? The second is naturally preferred. My suspicion is still that regardless of IE10 or 11 somehow its being run in compatibility mode, which if thats IE8 would explain problems with Trim(). ~~~ Thomas Bertines online review show: http://randomreviewshow.com/index.html Try it! You might even feel ambivalent about it :) On 4 October 2014 17:32, Steve C st...@steveclaflin.com wrote: You should try to get your hands on a real IE10. My experience with IE11 is that its emulation of earlier versions is far from perfect, particularly with the JS engine. I've had GWT code that failed in IE11 emulating IE10, but worked fine in a real IE10. On Friday, October 3, 2014 1:49:10 PM UTC-4, darkflame wrote: Ok, it also works if its left as Edge, but the user agent is explicitly set to Internet Explorer 10 Whatever Ie10s default user agent is (ie, not touching the settings) does not work, however. IE is weird. It looks like my workaround is simple then; force it to use Ie10 mode and not compatibility? (although Edge would be better for future proofing wouldn't it?) ~~~ Thomas Bertines online review show: http://randomreviewshow.com/index.html Try it! You might even feel ambivalent about it :) On 3 October 2014 19:37, Thomas Wrobel dark...@gmail.com wrote: ah, ok...hmm. It crashes in EDGE which is selects by default. It works in 10 if its specifically set to that. It works in 9 (but other stuff is broken, which is expected) (This was tested using IE's emulation selector) Could my html markup be making IE select Edge wrongly? Isn't Edge supposed to be the newest it can manage? ~~~ Thomas Bertines online review show: http://randomreviewshow.com/index.html Try it! You might even feel ambivalent about it :) On 3 October 2014 19:28, Jens jens.ne...@gmail.com wrote: Could it be that your IE 10 runs in compatibility mode? In that case it might not support JavaScript String.replace(). -- J. -- -- You received this message because you are subscribed to a topic in the Google Groups Google Web Toolkit group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/UoWCYwOCaVQ/unsubscribe . To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: ie10 permutation causing browser errors? (gwt 2.6.1) really baffled here.
Ok, heres where its crashing: function java_lang_String_$trim__Ljava_lang_String_2Ljava_lang_ String_2(this$static){ if (this$static.length == 0 || this$static[0] $intern_60 this$static[this$static.length - 1] $intern_60) { return this$static; } var r1 = this$static.replace(/^(\s*)/, $intern_8); var r2 = r1.replace(/\s*$/, $intern_8); return r2; } Specifically the; var r1 = this$static.replace(/^(\s*)/, $intern_8); ~~~ Thomas Bertines online review show: http://randomreviewshow.com/index.html Try it! You might even feel ambivalent about it :) On 3 October 2014 17:58, Joseph Lust lifeofl...@gmail.com wrote: Thomas, Have you tried looking at the PRETTY print version of this code to see exactly what output JS is causing the problem in IE10? -- You received this message because you are subscribed to a topic in the Google Groups Google Web Toolkit group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/UoWCYwOCaVQ/unsubscribe . To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: ie10 permutation causing browser errors? (gwt 2.6.1) really baffled here.
ah, ok...hmm. It crashes in EDGE which is selects by default. It works in 10 if its specifically set to that. It works in 9 (but other stuff is broken, which is expected) (This was tested using IE's emulation selector) Could my html markup be making IE select Edge wrongly? Isn't Edge supposed to be the newest it can manage? ~~~ Thomas Bertines online review show: http://randomreviewshow.com/index.html Try it! You might even feel ambivalent about it :) On 3 October 2014 19:28, Jens jens.nehlme...@gmail.com wrote: Could it be that your IE 10 runs in compatibility mode? In that case it might not support JavaScript String.replace(). -- J. -- You received this message because you are subscribed to a topic in the Google Groups Google Web Toolkit group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/UoWCYwOCaVQ/unsubscribe . To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: ie10 permutation causing browser errors? (gwt 2.6.1) really baffled here.
Ok, it also works if its left as Edge, but the user agent is explicitly set to Internet Explorer 10 Whatever Ie10s default user agent is (ie, not touching the settings) does not work, however. IE is weird. It looks like my workaround is simple then; force it to use Ie10 mode and not compatibility? (although Edge would be better for future proofing wouldn't it?) ~~~ Thomas Bertines online review show: http://randomreviewshow.com/index.html Try it! You might even feel ambivalent about it :) On 3 October 2014 19:37, Thomas Wrobel darkfl...@gmail.com wrote: ah, ok...hmm. It crashes in EDGE which is selects by default. It works in 10 if its specifically set to that. It works in 9 (but other stuff is broken, which is expected) (This was tested using IE's emulation selector) Could my html markup be making IE select Edge wrongly? Isn't Edge supposed to be the newest it can manage? ~~~ Thomas Bertines online review show: http://randomreviewshow.com/index.html Try it! You might even feel ambivalent about it :) On 3 October 2014 19:28, Jens jens.nehlme...@gmail.com wrote: Could it be that your IE 10 runs in compatibility mode? In that case it might not support JavaScript String.replace(). -- J. -- You received this message because you are subscribed to a topic in the Google Groups Google Web Toolkit group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/UoWCYwOCaVQ/unsubscribe . To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: Gwt 2.6 + Opera(/presto) how to enable support?
Perfect, thanks. ~~~ Thomas Bertines online review show: http://randomreviewshow.com/index.html Try it! You might even feel ambivalent about it :) On 29 January 2014 16:47, Jens jens.nehlme...@gmail.com wrote: You can re-enabled opera by using: extend-property name=user.agent values=opera / set-property name=user.agent value=ie8,ie9,ie10,opera,gecko1_8,safari / Not sure right now if the set-property line is needed but I think so. Re-enabling ie6 permutation for IE6/7 works the same way. -- J. -- You received this message because you are subscribed to a topic in the Google Groups Google Web Toolkit group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/m6di9JQUaqU/unsubscribe . To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Gwt 2.6 + Opera(/presto) how to enable support?
ps. Really appreciate your fast responses - amazes me the time you put in for others here! ~~~ Thomas Bertines online review show: http://randomreviewshow.com/index.html Try it! You might even feel ambivalent about it :) On 29 January 2014 16:48, Thomas Wrobel darkfl...@gmail.com wrote: Perfect, thanks. ~~~ Thomas Bertines online review show: http://randomreviewshow.com/index.html Try it! You might even feel ambivalent about it :) On 29 January 2014 16:47, Jens jens.nehlme...@gmail.com wrote: You can re-enabled opera by using: extend-property name=user.agent values=opera / set-property name=user.agent value=ie8,ie9,ie10,opera,gecko1_8,safari / Not sure right now if the set-property line is needed but I think so. Re-enabling ie6 permutation for IE6/7 works the same way. -- J. -- You received this message because you are subscribed to a topic in the Google Groups Google Web Toolkit group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/m6di9JQUaqU/unsubscribe . To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Switch on String shouldn't this work in GWT 2.6 / Java 7 ?
Ah, Bingo...it was either down to not clearing the cache's, or the fact a non-GWT 2.6 project was being inherited in. Fixing both of those and it works. *goes of to enjoy Java7* ~~~ Thomas Bertines online review show: http://randomreviewshow.com/index.html Try it! You might even feel ambivalent about it :) On 28 January 2014 20:23, Jens jens.nehlme...@gmail.com wrote: Have I somehow setup GWT 2.6 wrongly? Using switch() with strings works in GWT 2.6. I guess you have to double check your setup. Maybe you have used an old run configuration that is not up-to-date? -- J. -- You received this message because you are subscribed to a topic in the Google Groups Google Web Toolkit group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/pHHK4a2KuWc/unsubscribe . To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Get font-family from external css?
Actually another related query. Looking at the computed style of some fonts (supplied by the google font API) I get this; font-family:'Sorts Mill Goudy', serif; font-family:'Rouge Script', cursive; font-family:'Gloria Hallelujah', cursive; font-family:Tangerine, cursive; Notice the last one doesn't have single quote marks around the name.and also doesn't work in canvas. The first 3 work just fine. The css for all the fonts is very similar; .StoryStyleThree { font-family: 'Gloria Hallelujah', cursive; font-weight: normal; font-size: 15px; } .StoryStyleFour { font-family: 'Tangerine', cursive; font-weight: normal; font-size: 33px; } Any ideas why Tangerine is behaving differently? I am assuming the lose of the quotes is whats preventing it working on the canvas element. But given they are defined the same way, I cant work out why its being treated differently. ~~~ Thomas Bertines online review show: http://randomreviewshow.com/index.html Try it! You might even feel ambivalent about it :) On 23 November 2013 00:20, Thomas Wrobel darkfl...@gmail.com wrote: Bingo, that was far easier then expected. Thanks a bunch. ~~~ Thomas Bertines online review show: http://randomreviewshow.com/index.html Try it! You might even feel ambivalent about it :) On 22 November 2013 20:06, Jens jens.nehlme...@gmail.com wrote: I think you could read the computed style of an element by using a simple JSNI method. Here is an example: https://code.google.com/p/gwt-examples/source/browse/trunk/GoneVertical-Core/src/org/gonevertical/core/client/style/ComputedStyle.java?spec=svn3084amp;r=3084https://code.google.com/p/gwt-examples/source/browse/trunk/GoneVertical-Core/src/org/gonevertical/core/client/style/ComputedStyle.java?spec=svn3084r=3084 -- J. -- You received this message because you are subscribed to a topic in the Google Groups Google Web Toolkit group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/8Qja9HPsmEk/unsubscribe . To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Get font-family from external css?
So its probably just no spaces so no need to quote. That makes sense. I was looking completely the wrong place anyway. The reason that last font didnt appear on the canvas was I also has Sans-Serif specified, and that font is Serif-ed. Thanks again. Canvas is really fun to play with. ~~~ Thomas Bertines online review show: http://randomreviewshow.com/index.html Try it! You might even feel ambivalent about it :) On 23 November 2013 14:53, Jens jens.nehlme...@gmail.com wrote: Probably depends on the browser. Technically the font name must be a CSS identifier and if the font name contains any character that is not allowed inside an CSS identifier you must escape that character or quote the whole font name. 'Tangerine' is a valid CSS identifier so it seems fine if the browser removes the quotes internally during CSS processing. http://www.w3.org/TR/CSS2/fonts.html#propdef-font-family also has some short info about quoting -- J. -- You received this message because you are subscribed to a topic in the Google Groups Google Web Toolkit group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/8Qja9HPsmEk/unsubscribe . To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Get font-family from external css?
Bingo, that was far easier then expected. Thanks a bunch. ~~~ Thomas Bertines online review show: http://randomreviewshow.com/index.html Try it! You might even feel ambivalent about it :) On 22 November 2013 20:06, Jens jens.nehlme...@gmail.com wrote: I think you could read the computed style of an element by using a simple JSNI method. Here is an example: https://code.google.com/p/gwt-examples/source/browse/trunk/GoneVertical-Core/src/org/gonevertical/core/client/style/ComputedStyle.java?spec=svn3084amp;r=3084https://code.google.com/p/gwt-examples/source/browse/trunk/GoneVertical-Core/src/org/gonevertical/core/client/style/ComputedStyle.java?spec=svn3084r=3084 -- J. -- You received this message because you are subscribed to a topic in the Google Groups Google Web Toolkit group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/8Qja9HPsmEk/unsubscribe . To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to change gwt.imageResource.maxBundleSize ?
Sorry, can you spell it out for me? I assumed it was set the same way enable Inlining was. I have set-property name=ClientBundle.enableInlining value=false / and that works just fine. So where/how do I set this property property? ~~~ Thomas Bertines online review show: http://randomreviewshow.com/index.html Try it! You might even feel ambivalent about it :) On 31 October 2013 08:58, Jens jens.nehlme...@gmail.com wrote: Its a system property. You have to use java -Dproperty -- J. -- You received this message because you are subscribed to a topic in the Google Groups Google Web Toolkit group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/CDPqaQXfNHE/unsubscribe . To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to change gwt.imageResource.maxBundleSize ?
Someone else suggested to me its probably used as a flag somewhere I tried gwt.imageResource.maxBundleSize=1000 in the GWT Additional Compile Arguments. (using eclipsegwt compile) But I am clearly formatting it wrongly. (or its still the wrong place) Is there an example of this anywhere? Or a similar setting? I have only ever set options using gwt.xml before. ~~~ Thomas Bertines online review show: http://randomreviewshow.com/index.html Try it! You might even feel ambivalent about it :) On 31 October 2013 12:38, Thomas Wrobel darkfl...@gmail.com wrote: Sorry, can you spell it out for me? I assumed it was set the same way enable Inlining was. I have set-property name=ClientBundle.enableInlining value=false / and that works just fine. So where/how do I set this property property? ~~~ Thomas Bertines online review show: http://randomreviewshow.com/index.html Try it! You might even feel ambivalent about it :) On 31 October 2013 08:58, Jens jens.nehlme...@gmail.com wrote: Its a system property. You have to use java -Dproperty -- J. -- You received this message because you are subscribed to a topic in the Google Groups Google Web Toolkit group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/CDPqaQXfNHE/unsubscribe . To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to change gwt.imageResource.maxBundleSize ?
Thanks, that seems to have done the trick. It took me awhile to spot it had to go in VM Arguments dialogue box, rather then Compiler Arguments dialogue box. May I ask why this compile option goes here, rather then in the xml where the rest of the options seem to go? ~~~ Thomas Bertines online review show: http://randomreviewshow.com/index.html Try it! You might even feel ambivalent about it :) On 31 October 2013 13:24, Jens jens.nehlme...@gmail.com wrote: You have to configure a system property using a JVM parameter not a GWT compiler parameter. The JVM parameter should be -Dgwt.imageResource.** maxBundleSize=1000. -- J. -- You received this message because you are subscribed to a topic in the Google Groups Google Web Toolkit group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/CDPqaQXfNHE/unsubscribe . To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Some of my images arnt being turned into image strips :?
Thanks, but that seems to be a dimension size limit, not a file size limit: ... if (lossy || toReturn.getHeight() IMAGE_MAX_SIZE || toReturn.getWidth() IMAGE_MAX_SIZE) { ... Is there a filesize limit too? On 20 January 2013 18:05, Thomas Broyer t.bro...@gmail.com wrote: On Sunday, January 20, 2013 5:27:09 PM UTC+1, darkflame wrote: Thanks I already disabled inlining with : set-property name=ClientBundle.enableInlining value=false / In my gwt.xml, which disables DataURLs, but still doesn't make everything image strips - some are image strips but many are still just separate PNGs images. I'll try your method as well, but I suspect that also just prevents the DataURLs. I *think* my problem might be something to do with the filesize of the images, as the ones not being put into strips seem a bit bigger then the rest. I'm currently trying to trim them down, but it would be helpful if there was a specific limit specified in the docs somewhere. See https://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/resources/rg/ImageBundleBuilder.java#780 The size defaults to 256 pixels but can be configured with a system property: https://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/resources/rg/ImageBundleBuilder.java#471 AFAICT it has always been the case (except for the configurability of the threshold, added later). Feel free to send a patch to improve the documentation. -- 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/-/qBQDwFz0tmIJ. 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. -- 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: List all the strings and ints in a class?
Thanks for the link, seems a bit overkill for what I need though. I'll have a go at brewing my own. I see methods like get declared fields which seems a good start. On 19 October 2012 22:54, KevMo kevinps...@gmail.com wrote: I've never used it, but you might give GWT Reflection a try. http://gwtreflection.sourceforge.net/ On Friday, October 19, 2012 12:58:40 PM UTC-7, darkflame wrote: I am looking to make a little debugging widget for my (rather complex) app. It would be helpfull if I could construct something that would look at a class and display all its data. I can handle the GUI side of it easily enough..but Java wise I don't know where to start or if its even possible to navigate a arbitrary class in this way. Ideally Id want to get a list of variable names and their values. I assume Id need to compile as pretty or detailed for the variable names to even be there - thats fine. Thanks for any pointers, -Thomas -- 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/-/BexDoKsQIEAJ. 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. -- 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: SuggestBox popup Z-Index issue (appears behind everything)
Yes, CSS seemed the best option and worked. Cheers. Still, its a strange issue to still be hanging around. ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) On 15 August 2011 23:51, Ben Imp benlee...@gmail.com wrote: I suppose you could also use CSS, too. That would seem to be a bit less hacky. -Ben -- 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/-/0xAyuDytVzkJ. 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. -- 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: After using Context menu, how to trigger the browsers default one? (on, say, an image)
Thanks. I was removing the handler, but it seems I was managing to apply two identical handlers and only remove one of them. I also ran into this issue; http://code.google.com/p/google-web-toolkit/issues/detail?id=5700 But got around it by just explicitly setting my handler variable to null after its removed and testing for null before removing/adding again. All seems to work nicely now. Cheers, Thomas ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) On 27 July 2011 22:43, Tomasz Gawel tomaszga...@op.pl wrote: unregistering the ContextMenuHandler does not work? I assume you have sth like this: class YourWidget extends Composite implements ContextMenuHandler { HandlerRegistration registration; public YourWidget(){ final HTML html = new HTML(divRight-click here please ;)/div); Button setCustomMenuButton = new Button(Set Custom Menu); Button setNativeMenuButton = new Button(Set Native Menu); setCustomMenuButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { registration = addDomHandler(YourWidget.this, ContextMenuEvent.getType()); } }); setNativeMenuButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { registration.removeHandler(); } }); FlowPanel mainPanel = new FlowPanel(); initWidget(mainPanel); mainPanel.add(html); mainPanel.add(setCustomMenuButton); mainPanel.add(setNativeMenuButton); } @Override public void onContextMenu(ContextMenuEvent event) { final int x = event.getNativeEvent().getClientX() + Window.getScrollLeft(); final int y = event.getNativeEvent().getClientY() + Window.getScrollTop(); final PopupPanel popup = new PopupPanel(true, true); popup.add(new HTML(my context menu)); popup.setPopupPositionAndShow(new PositionCallback() { @Override public void setPosition(int offsetWidth, int offsetHeight) { popup.setPopupPosition(x, y); } }); } } -- 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. -- 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: Difference's in Client Bundle behavior? (much slower? produces lots of jpg's as well on compile?)
Ok, thanks this clears up a lot of my confusion. I'm actually learning a lot here. Till I tried playing with ClientBundle, I wasn't even aware of the data method of injecting images inline into html. But it does sound like I want to turn on that flag to disable the data method for now though. I just switched it back and everything is smooth again. All my images come from png's, and are all less then 256 so it should be ok. Define @sprite styles in a CssResource and switch style name. The same CSS would be used as with AbstractImagePrototype but you could expect the browser to somehow cache the image and decode it once only (with AbstractImagePrototype, there's no sharing, so it probably decodes the data: URL each time it changes) That sounds a neat solution, but probably unsuitable for my current code. I have made my own class for an animated sprite, that gets fed a set of frames in the form of a AbstractImagePrototype. This is used extensively many times in the app and is designed for new images to be able to be added easily. I wouldn't want to have to have styles for each sprite in each icon set. I'll keep it in mind for next time though, perhaps if I can think of a more suitable system for this new methodology. -- 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-tool...@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: Anyone know of any Android History token problems?
Ok, glade to know I'm not alone. Although its a shame it seems a bit hard to identify the cause. Thanks for your feedback, perhaps other people have experienced similar things and we can hopefully pin down the cause. -Thomas On 7 August 2010 04:35, Shawn Brown big.coffee.lo...@gmail.com wrote: I've noticed the browser on my Android phone doesn't seem to fire some history events for my little online game; I wondered if this was a Android issue, or something with my code that only shows up on Android. I've seen it too but haven't gotten to the bottom of it. Sometimes it works especially if the address bar has focus and I manually enter it and press go. although, have you ever entered in your url#history_marker and pressed go only to see the page load without the #history_marker? I have. Another thing I notice is that when I manually enter a new address and press go to well load that page, the url displayed in the browser reverts back to the previous url for a second and then finally resolved and displays the page I request. So yeah I think Android loses the #history token sometimes but I don't understand at all when or why consistently. A bookmark with a history token seems to load consistently in a new tab. That is about all I know. -- 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-tool...@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. -- 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-tool...@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: Another Ajax Crawling question, is #! acceptable rather then just #! ?
Thanks for the clarification. The problem is, to my knowledge, you can't use the built in parser in PHP to parse your own strings, it only reads from the URL. So while you can get the original query string by doing; $_GET['_escaped_fragment_'], if you got multiple parameters you then have to parse over it yourself. And thanks for the unescape reminder! On 27 July 2010 14:35, Katharina Probst kpro...@google.com wrote: On Mon, Jul 26, 2010 at 8:31 PM, Thomas Wrobel darkfl...@gmail.com wrote: Sorry for my late reply. Lets say I have a url like this; http://www.rateoholic.co.uk/main/Rateoholic_Frame.html#!SEARCHFOR=star%20warsTYPE=videogame Google Bot will turn it to this; http://www.rateoholic.co.uk/main/Rateoholic_Frame.html?_escaped_fragment_SEARCHFOR=star%20warsTYPE=videogame It should be: http://www.rateoholic.co.uk/main/Rateoholic_Frame.html?_escaped_fragment_=SEARCHFOR=star%20warsTYPE=videogame (note the = after the _escaped_fragment_) What I thought you'd do in PhP is something like $_GET['_escaped_fragment_'], then take that string, unescape it, and you've got your query params back (your first workaround). But I do see the problem that it's slightly less convenient... With both of your suggested workarounds, just remember to unescape the keys and values afterwards. It *would* be nice to have a handy little parser for this. kathrin Correct? Now, in PHP you normally access the query string data by calls like $_GET[]. Only in this case if you call $_GET['SEARCHFOR'] you wont get the value star wars like you normally would, because google bot has added _escaped_fragment_ to the start of the key value. You could still get the other key/value pairs just fine following the sign, but the first one be visible in the normal way. See the problem? I've come up with some solutions, but they arn't that pretty. One way is to remove the _escaped_fragment_ from the start of the string and make my own parser for the key/value pairs. The other is to search for $_GET['_escaped_fragment_SEARCHFOR'] instead of SEARCHFOR. However, this results in the query string needing to be in a fixed order. (or testing for both _escaped_fragment_** and ** for every key I'm looking for). Its not a critical problem, as the first workaround works and am currently using it. But it does seem like there should be some nice method to be able to use PHP's query-string functions as intended. === Finally, one last thing; I cant work out any way to tell when my system is working or not. After a few days my #! results dont seem googlable...so can I assume it isn't working yet for some reason? (Ive submitted a sitemap thats parsed over ok...so I expected something..hmm..) Thanks, Thomas Wrobel On 26 July 2010 14:45, Katharina Probst kpro...@google.com wrote: Sorry, I'm a little confused too. When googlebot sees www.example.com?mykey=myvalue#!myhistorytoken , it'll turn it into www.example.com?mykey=myvalue_escaped_fragment_=myhistorytoken . Can you give an example (complete fake URLs, like I did above) to illustrate the problem you're seeing? That would be helpful. Thanks, kathrin Short answer is I don't think you should use #!. On Sat, Jul 24, 2010 at 12:27 PM, darkflame darkfl...@gmail.com wrote: Thanks, Sorry if its not clear, but I am actually talking about all of those things. PHP is my back end which is generating the static pages. GWT is what my site is coded in. Its completely dynamic and makes extensive use of # tokens to store and retrieve its states. I'm attempting to get my side Ajax crawl-able using this guide; http://code.google.com/web/ajaxcrawling/docs/getting-started.html This guide states to replace the normal #anything style history tokens with #!anything tokens instead. Note the additional ! When google's crawler is requesting these pages it swaps the #! for ?_escapedfragment_=, allowing the server to generate a static page using the query string. This is all laid out in googles guide. However, the formating of this ?_escapedfragment_= does not allow php to process the key/value pairs in the query string as it normally could. PHP can normally read of key value pairs from the query string using its $_GET[] command. However, under this system ?_escapedfragment_= in the url requested prevents the first key value pair being read. (as the parser now sees _escapedfragment_ as its own key, and the first true key as its *value*). Thus, in order to use PHP with Google's system for making Ajax crawlable, I was querying if GWT user's should add to their new history token format, rather then just !. So the new tokens become #! rather then just #!. This is a little confusing, but I think it should be understandable for anyone who knows both PHP as well as GWT. (or at least, has used extensive historytokens/states in their web design). Finally, I
Re: Another Ajax Crawling question, is #! acceptable rather then just #! ?
Sorry for my late reply. Lets say I have a url like this; http://www.rateoholic.co.uk/main/Rateoholic_Frame.html#!SEARCHFOR=star%20warsTYPE=videogame Google Bot will turn it to this; http://www.rateoholic.co.uk/main/Rateoholic_Frame.html?_escaped_fragment_SEARCHFOR=star%20warsTYPE=videogame Correct? Now, in PHP you normally access the query string data by calls like $_GET[]. Only in this case if you call $_GET['SEARCHFOR'] you wont get the value star wars like you normally would, because google bot has added _escaped_fragment_ to the start of the key value. You could still get the other key/value pairs just fine following the sign, but the first one be visible in the normal way. See the problem? I've come up with some solutions, but they arn't that pretty. One way is to remove the _escaped_fragment_ from the start of the string and make my own parser for the key/value pairs. The other is to search for $_GET['_escaped_fragment_SEARCHFOR'] instead of SEARCHFOR. However, this results in the query string needing to be in a fixed order. (or testing for both _escaped_fragment_** and ** for every key I'm looking for). Its not a critical problem, as the first workaround works and am currently using it. But it does seem like there should be some nice method to be able to use PHP's query-string functions as intended. === Finally, one last thing; I cant work out any way to tell when my system is working or not. After a few days my #! results dont seem googlable...so can I assume it isn't working yet for some reason? (Ive submitted a sitemap thats parsed over ok...so I expected something..hmm..) Thanks, Thomas Wrobel On 26 July 2010 14:45, Katharina Probst kpro...@google.com wrote: Sorry, I'm a little confused too. When googlebot sees www.example.com?mykey=myvalue#!myhistorytoken , it'll turn it into www.example.com?mykey=myvalue_escaped_fragment_=myhistorytoken . Can you give an example (complete fake URLs, like I did above) to illustrate the problem you're seeing? That would be helpful. Thanks, kathrin Short answer is I don't think you should use #!. On Sat, Jul 24, 2010 at 12:27 PM, darkflame darkfl...@gmail.com wrote: Thanks, Sorry if its not clear, but I am actually talking about all of those things. PHP is my back end which is generating the static pages. GWT is what my site is coded in. Its completely dynamic and makes extensive use of # tokens to store and retrieve its states. I'm attempting to get my side Ajax crawl-able using this guide; http://code.google.com/web/ajaxcrawling/docs/getting-started.html This guide states to replace the normal #anything style history tokens with #!anything tokens instead. Note the additional ! When google's crawler is requesting these pages it swaps the #! for ?_escapedfragment_=, allowing the server to generate a static page using the query string. This is all laid out in googles guide. However, the formating of this ?_escapedfragment_= does not allow php to process the key/value pairs in the query string as it normally could. PHP can normally read of key value pairs from the query string using its $_GET[] command. However, under this system ?_escapedfragment_= in the url requested prevents the first key value pair being read. (as the parser now sees _escapedfragment_ as its own key, and the first true key as its *value*). Thus, in order to use PHP with Google's system for making Ajax crawlable, I was querying if GWT user's should add to their new history token format, rather then just !. So the new tokens become #! rather then just #!. This is a little confusing, but I think it should be understandable for anyone who knows both PHP as well as GWT. (or at least, has used extensive historytokens/states in their web design). Finally, I mentioned the Webmaster tools Fetch as Googlebot as thats what I'm using to test if my site is indeed browse-able by google's bot. Its not yet possible to use it to test completely for this sort of functionality, however. So some of this work is a little blind. On Jul 24, 6:08 pm, Stefan Bachert stefanbach...@yahoo.de wrote: Hi, when others are as confused as me than you will get no qualified answer You are talking about PHP, url, google and sometimes it sounds that you are talking about Google Webmaster Tools. ( != GWT = Google Webtool Kit) Stefan Bachert http::/gwtworld.de Inquiries for professional GWT support are welcome. I am sorry, I won't do free personal support. On 23 Jul., 15:59, darkflame darkfl...@gmail.com wrote: (of course, Id have to code my gwt java to remove the from the history string before processing) On Jul 23, 3:54 pm, darkflame darkfl...@gmail.com wrote: Ive noticed that if I change my links to just #! google interprets them as; _escaped_fragment_= Which is how its documented. However, this means a php $_GET command cant read the first key/value
Re: Is it possible to detect if a popup (opened by Window.open(..) ) has been closed?
I think that only monitors the current window :-/ On 1 February 2010 14:39, mariyan nenchev nenchev.mari...@gmail.com wrote: Hi, what about Window.addCloseHandler(...);? -- 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-tool...@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. -- 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-tool...@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: PHP Javascript friendly bookmarks/query strings... ?#?#?#?
-sigh- Well, at least thats a clear cut answer ;) Pitty. Guess I'll have to use a click here to get url button and try to restructure any outgoing links pointing back to use a ? query for the search engines sake. 2009/6/29 Ian Bambury ianbamb...@gmail.com: You can't do it. The server doesn't get sent the stuff from the # onwards. Ian http://examples.roughian.com 2009/6/28 darkflame darkfl...@gmail.com Ive been building a dynamic website, with the content displayed chosen by the current contents of the history/bookmark token at the end of the url. eg. /main.html#DisplayReview=220 This works great, as the whole site doesn't have to be refreshed, hugely reducing bandwidth for me and speeding up the site for the users. This is, of course,whats recommended to do. My site is also, so far, completely bookmarkable this way. URLs link directly to the current state of the appas it should. My users should be able to swap links just like any other site. Problem is, I want the site to happly work when javascript is disabled as well. If nothing else, this is needed for search-engines to index it correctly. So I needed a way for php to display the same content from the same links ...only to find, to my horror, php cant seem to access anything past the #...its as good as invisible! HELP!!! Even hiding it in a query string dosnt work ( /main?blah#DisplayReview=220.only the blah is detected). Now, I cant change my #'s links to ?'s...as dynamic query string changes make the page reload, and it would completely break my history- support. So I'm left a bit puzzled as to what I can do. How can I keep the sites states bookmarkable, but also have those same URLs readable by php? I really dont want to resort to an extra click to get url unless I absolutely have too. (and besides, wouldnt that also mess up search engine indexing? ) Ive got a vague idea that .htaccess voodoo might help me out. Maybe htaccess can itself see the # data when the user requests the url, and dynamically change it to a ?. (?) I'm not hot with htaccess at all, so it might not be able to do either, then I really am stuck. I know htaccess stuff isnt strictly ontopic, but I'm asking here because it seems like a common problem people building gwt sites would have. Unfortunately googleing this stuff is useless(# and ? arnt exactly mySQL-based search engine friendly querys...google dosnt seem to support escaping your searchs). ..so I hope someone here can help. I also hope I made myself clear. --~--~-~--~~~---~--~~ 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: PHP Javascript friendly bookmarks/query strings... ?#?#?#?
Thats actualy really interesting (hijax) I never thought about a site constructed like that. I think that could work for me, unfortuntely its far too late in the game for me to take that approach, not just the re-writing but the mental shift is a bit much at this stage. But I'll bare it in mind for future because that seems a rather elegant way to write ajax/php sites. ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) 2009/6/29 Ian Petersen ispet...@gmail.com: I don't know if this will help you, but maybe you're thinking about the problem backwards. Javascript-enabled is a pretty flexible environment--at least more flexible than Javascript-disabled. Maybe the canonical URLs should be PHP-visible, and the Javascript-enabled version should somehow munge the URLs on the client side to avoid reloads. Search for hijax and see if it helps you come at the problem from a different angle. Ian On Sun, Jun 28, 2009 at 11:32 AM, Thomas Wrobeldarkfl...@gmail.com wrote: -sigh- Well, at least thats a clear cut answer ;) Pitty. Guess I'll have to use a click here to get url button and try to restructure any outgoing links pointing back to use a ? query for the search engines sake. 2009/6/29 Ian Bambury ianbamb...@gmail.com: You can't do it. The server doesn't get sent the stuff from the # onwards. Ian http://examples.roughian.com 2009/6/28 darkflame darkfl...@gmail.com Ive been building a dynamic website, with the content displayed chosen by the current contents of the history/bookmark token at the end of the url. eg. /main.html#DisplayReview=220 This works great, as the whole site doesn't have to be refreshed, hugely reducing bandwidth for me and speeding up the site for the users. This is, of course,whats recommended to do. My site is also, so far, completely bookmarkable this way. URLs link directly to the current state of the appas it should. My users should be able to swap links just like any other site. Problem is, I want the site to happly work when javascript is disabled as well. If nothing else, this is needed for search-engines to index it correctly. So I needed a way for php to display the same content from the same links ...only to find, to my horror, php cant seem to access anything past the #...its as good as invisible! HELP!!! Even hiding it in a query string dosnt work ( /main?blah#DisplayReview=220.only the blah is detected). Now, I cant change my #'s links to ?'s...as dynamic query string changes make the page reload, and it would completely break my history- support. So I'm left a bit puzzled as to what I can do. How can I keep the sites states bookmarkable, but also have those same URLs readable by php? I really dont want to resort to an extra click to get url unless I absolutely have too. (and besides, wouldnt that also mess up search engine indexing? ) Ive got a vague idea that .htaccess voodoo might help me out. Maybe htaccess can itself see the # data when the user requests the url, and dynamically change it to a ?. (?) I'm not hot with htaccess at all, so it might not be able to do either, then I really am stuck. I know htaccess stuff isnt strictly ontopic, but I'm asking here because it seems like a common problem people building gwt sites would have. Unfortunately googleing this stuff is useless(# and ? arnt exactly mySQL-based search engine friendly querys...google dosnt seem to support escaping your searchs). ..so I hope someone here can help. I also hope I made myself clear. --~--~-~--~~~---~--~~ 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: PHP Javascript friendly bookmarks/query strings... ?#?#?#?
That seems a fairly good approach to take. I think that will work for me. Not perfect, but it will do. My site probably needs just two php scripts..one to display a set of search results, and one to display a specific result. (+the homepage which is already a purely php-thing, Gwt parsers its html on loading). So it shouldn't take too much adjustment. I'll try to make the adjustments myself over the next few days. I'll let you know how I get on :) 2009/6/29 Ian Bambury ianbamb...@gmail.com: What you need is a non-js site structure which matches your gwt structure except for the ? and # Without the #stuff, the search engines will go to the index page and just recursively find all your non-js structure. The search engines display site.com/?thing=220 etc and that will be the link in the serps. Non-js users will get that non-js page. But...js users get to execute a little script which replaces the ? with a # and redirects them to the gwt site but with the right bookmark to see the right gwt page. Not absolutely ideal because visitors from the serps get an initial (albeit invisible) redirect, and any sites that cut and paste from the address bar will point search engines to the index page, and you need to structure your site in the right way to make the non-js site trivial (mine is just 3 PHP pages). But it's better than not doing it IMO. Contact me off-list if you want to see if my way of doing it could work for you Cheers, Ian http://examples.roughian.com 2009/6/28 Thomas Wrobel darkfl...@gmail.com -sigh- Well, at least thats a clear cut answer ;) Pitty. Guess I'll have to use a click here to get url button and try to restructure any outgoing links pointing back to use a ? query for the search engines sake. 2009/6/29 Ian Bambury ianbamb...@gmail.com: You can't do it. The server doesn't get sent the stuff from the # onwards. Ian http://examples.roughian.com 2009/6/28 darkflame darkfl...@gmail.com Ive been building a dynamic website, with the content displayed chosen by the current contents of the history/bookmark token at the end of the url. eg. /main.html#DisplayReview=220 This works great, as the whole site doesn't have to be refreshed, hugely reducing bandwidth for me and speeding up the site for the users. This is, of course,whats recommended to do. My site is also, so far, completely bookmarkable this way. URLs link directly to the current state of the appas it should. My users should be able to swap links just like any other site. Problem is, I want the site to happly work when javascript is disabled as well. If nothing else, this is needed for search-engines to index it correctly. So I needed a way for php to display the same content from the same links ...only to find, to my horror, php cant seem to access anything past the #...its as good as invisible! HELP!!! Even hiding it in a query string dosnt work ( /main?blah#DisplayReview=220.only the blah is detected). Now, I cant change my #'s links to ?'s...as dynamic query string changes make the page reload, and it would completely break my history- support. So I'm left a bit puzzled as to what I can do. How can I keep the sites states bookmarkable, but also have those same URLs readable by php? I really dont want to resort to an extra click to get url unless I absolutely have too. (and besides, wouldnt that also mess up search engine indexing? ) Ive got a vague idea that .htaccess voodoo might help me out. Maybe htaccess can itself see the # data when the user requests the url, and dynamically change it to a ?. (?) I'm not hot with htaccess at all, so it might not be able to do either, then I really am stuck. I know htaccess stuff isnt strictly ontopic, but I'm asking here because it seems like a common problem people building gwt sites would have. Unfortunately googleing this stuff is useless(# and ? arnt exactly mySQL-based search engine friendly querys...google dosnt seem to support escaping your searchs). ..so I hope someone here can help. I also hope I made myself clear. --~--~-~--~~~---~--~~ 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: Is it possible to extend a Popup or DialogBox to detect when its moved?
Thanks :) I had to change the MouseDownEvents to MouseMove and MouseUp, but it worked a charm, cheers :) ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) 2009/4/16 Vitali Lovich vlov...@gmail.com: Sorry, was looking at the 1.5 doc. protected void beginDragging(MouseDownEvent event) { super.beginDragging(event); // my code goes here } protected void continueDragging(MouseDownEvent event) { super.continueDragging(event); // my code goes here } protected void endDragging(MouseDownEvent event) { super.endDragging(event); // my code goes here } On Wed, Apr 15, 2009 at 4:32 PM, Darkflame darkfl...@gmail.com wrote: I'm not sure precisely how to override in this case though. I see the onMouseUp event in the class, and I try putting this into my widget (which extends DialogBox). �...@override public void onMouseUp(Widget sender, int x, int y) { dragging = false; DOM.releaseCapture(getElement()); } (basicaly an exact copy of whats in the class's over mouseup event). However; a) dragging is not visible error b) It says onMouseUp is depreciated anyway and to use endDragging. (Looking at enddragging; protected void endDragging(MouseUpEvent event) { onMouseUp(caption, event.getX(), event.getY()); } ) On Apr 15, 10:19 pm, Vitali Lovich vlov...@gmail.com wrote: id *onMouseDownhttp://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g... *(Widgethttp://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g... sender, int x, int y) Fired when the user depresses the mouse button over a widget. void *onMouseEnterhttp://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g... *(Widgethttp://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g... sender) Fired when the mouse enters a widget's area. void *onMouseLeavehttp://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g... *(Widgethttp://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g... sender) Fired when the mouse leaves a widget's area. void *onMouseMovehttp://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g... *(Widgethttp://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g... sender, int x, int y) Fired when the user moves the mouse over a widget. You have to override them yourself seeing as how it doesn't have support for this. On Wed, Apr 15, 2009 at 4:08 PM, darkflame darkfl...@gmail.com wrote: umm..what the title says ;) I just want to trigger some realignment of stuff when the user stops dragging. --~--~-~--~~~---~--~~ 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: Whats the GWT equivalent of urlencode?
That was the one I tried already, it dosnt decode backslash's correctly. (that is +%2F isnt decoded) Thanks anyway. ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) 2009/3/27 mel mpedzi...@stuart.iit.edu: Its URL.encode(String) from the com.google.gwt.http.client package. --~--~-~--~~~---~--~~ 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: Whats the GWT equivalent of urlencode?
Well, something is being encoded as 2F by php, and not being decoded. (along with a lot of other random changes) I'm most certainly not getting the same strings in/out with urlencode(String) on the php side and URL.decode(string) on the java side. My tests where just with random generated strings, I expected just to confirm it was the same, but it dosnt seem to be. I just want a guarantied way to communicate between php and gwt with preservation of *all* characters frankly. (as I may want to send encrypted strings, I dont want to worry about what characters I can use/not use in the encyption). ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) 2009/3/27 Ian Bambury ianbamb...@gmail.com: 2F is a forward slash which doesn't get encoded therefore doesn't need decoding 5C is the backslash which works OK for me Ian http://examples.roughian.com 2009/3/27 Thomas Wrobel darkfl...@gmail.com That was the one I tried already, it dosnt decode backslash's correctly. (that is +%2F isnt decoded) Thanks anyway. ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) 2009/3/27 mel mpedzi...@stuart.iit.edu: Its URL.encode(String) from the com.google.gwt.http.client package. --~--~-~--~~~---~--~~ 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: Extending Image to flip between multiple images?
Ah, yes, that should work :) Cheers for your help. 2009/3/9 Thomas Broyer t.bro...@gmail.com: On 9 mar, 00:28, Darkflame darkfl...@gmail.com wrote: That seems like what I need thanks :) Dont suppose its possible to create an AbstractImagePrototype at run time? (say from an existing image or url) The widget I'm making needs to be updatable, and it would be handy if I could add to that ListAbstractImagePrototype array. (rather then setting up a seperate array for runtime added images then using setURL with them). Nothing precludes making your own image-prototype concrete class extending AbstractImagePrototype. Or if you don't want to implement the whole AbstractImagePrototype and don't want to just throw new NotImplementedException()), create an interface with, say, an applyTo(Image):void method, a class implementing this interface and deferring to an AbstractImagePrototype's applyTo(Image):void, and another one just calling Image::setUrl or Image::setUrlAndVisibleRect. --~--~-~--~~~---~--~~ 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: Best image preloading practice?
I did think of that, but I wasnt sure IE would handel it correctly. I remember theres a few issues with getting IE to fire load-listeners with data that might already be cached. The workaround was to use getOffsetWidth to check for the load. Incidently, I'm already seeing *massive* improvement in the loading system using this one-at-a-time method, and this is before I implemented the maze techique. Combined they should reduce the app's apparently loading time a lot. 2009/2/11 lukehashj bobwazn...@gmail.com: You don't necessarily even need the image to be hidden off screen in that way. You could always just set it's display:none and have it exist anywhere on the DOM - the user won't see it but the browser will still go to fetch the image. --~--~-~--~~~---~--~~ 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: Easiest way to open a new window with some text in it?
thanks for your help, thats better, but still no luck. This time it gives me a ; com_darkflame_client_MessageHistory_$popupWindowWithString__Lcom_darkflame_client_MessageHistory_2Ljava_lang_String_2_popup_0.document.getElementById($intern_324) is null error when run ver gwt. (my gwt line is now; popup.document.getElementById('idShowText').innerHTML=someText; ) When typed directly at the console using firebug I get; [Exception... Cannot modify properties of a WrappedNative nsresult: 0x80570034 (NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN) location: JS frame :: http://www.cuyperscode.com/CuypersCode2_WIP/CuypersCode2.html :: anonymous :: line 91 data: no] Any ideas? Bit out of my depth here, I foolishly thought this would be simple ;) 2008/12/4 alex.d [EMAIL PROTECTED]: Sorry - it was a long day yesterday ;-) popup is actually your new Window and getElementById() is the Function that belongs to the Document object - not the Window object. So it should be popup.document.getElementById()... And from your popup- Window you can call window.opener.document.getElementById() to access the parent window. On 3 Dez., 17:45, Thomas Wrobel [EMAIL PROTECTED] wrote: If I type; var popup = document.open('scripts/display.php', '_blank', null); into the console of my gwt the new window pops up. Then typeing; popup.getElementById('idShowText') Results in; TypeError: popup.getElementById is not a function (I also tried with .innerHTML(teststrng) at the end, but that gave the same result) Its worth noteing that ; document.write(popup.title); or document.write(popup.url); both return undefined. (despite that a title is set). It seems popup just isnt refering to the newly created window. ~~ Reviews of anything, by anyone;www.rateoholic.co.uk Please try out my new site and give feedback :) 2008/12/3 alex.d [EMAIL PROTECTED]: Not quite sure why this doesn't work - try to play with it in FireBug (you can open your window from the console and use popup-variable to get it's elements). Does popup.getElementById('idShowText') give en element back? On 3 Dez., 16:12, Thomas Wrobel [EMAIL PROTECTED] wrote: Must admit, I wasnt aware you could set text in another window from a script running in the current one. Still, dosnt seem to work for me display.php has the following html; html body div id=idShowTexttest/div /body /html And my native javascript being triggered is; var popup = $wnd.open('scripts/printthis.php', '_blank', null); popup.getElementById('idShowText').innerHTML=someText; return; The window pops up ok, but the text remains just test, and dosnt change to someText. 2008/12/3 alex.d [EMAIL PROTECTED]: In good old javascript time i've done this like: var popup = $wnd.open('scripts/display.php', '_blank', null); popup.getElementById('idShowText')... // Hier get a div or smth. and show/insert your text On 2 Dez., 19:48, darkflame [EMAIL PROTECTED] wrote: nope..apperently I cant use a form panel to post data to a new window :-/ I'm happy to use any combination of php and gwt, but I cant seem to find a neat way to get a string (of decent length) into a new window. I could save to cookie or something, but that seems a very messy method to use :-/ On Nov 21, 8:10 pm, darkflame [EMAIL PROTECTED] wrote: Just thinking outloud here...it could be done with a form right? Just hidden somewhere. dosnt seem very neat though. On Nov 21, 1:50 pm, darkflame [EMAIL PROTECTED] wrote: Thats still using the string by the URL though/get method, which limits the charecfters to about 100 :-/ Is it possible to do the same thing but not have the data in the url, so it could be picked up by the php'spostvariable instead? (which you can do with RequestBuilder by using new RequestBuilder (RequestBuilder.POST) but that dosnt open a newwindow.) On Nov 21, 8:13 am, Danny Schimke [EMAIL PROTECTED] wrote: You could try to use JSNI to open a newwindowas you've already done: It should look something like this: native JavaScriptObject openWindow(String param) /*-{ $wnd.open('scripts/display.php' + '?text=' + messageslist.getText(), '_blank', null); return true;}-*/; I hpe it's what you searched for... Danny 2008/11/20 darkflame [EMAIL PROTECTED] Any ideas? The text is dynamic, so I thought at first I'd just use; Window.open(scripts/display.php+?text=+messageslist.getText(), _blank, null); Where display.php simply gets the text variable in the url and echo's it back. However, this has a very short limit on the text that can be displayed. Is it possible to do a simerla function with RequestBuilder? SoPost can be used correctly? I have no idea if its
Re: Easiest way to open a new window with some text in it?
Must admit, I wasnt aware you could set text in another window from a script running in the current one. Still, dosnt seem to work for me display.php has the following html; html body div id=idShowTexttest/div /body /html And my native javascript being triggered is; var popup = $wnd.open('scripts/printthis.php', '_blank', null); popup.getElementById('idShowText').innerHTML=someText; return; The window pops up ok, but the text remains just test, and dosnt change to someText. 2008/12/3 alex.d [EMAIL PROTECTED]: In good old javascript time i've done this like: var popup = $wnd.open('scripts/display.php', '_blank', null); popup.getElementById('idShowText')... // Hier get a div or smth. and show/insert your text On 2 Dez., 19:48, darkflame [EMAIL PROTECTED] wrote: nope..apperently I cant use a form panel to post data to a new window :-/ I'm happy to use any combination of php and gwt, but I cant seem to find a neat way to get a string (of decent length) into a new window. I could save to cookie or something, but that seems a very messy method to use :-/ On Nov 21, 8:10 pm, darkflame [EMAIL PROTECTED] wrote: Just thinking outloud here...it could be done with a form right? Just hidden somewhere. dosnt seem very neat though. On Nov 21, 1:50 pm, darkflame [EMAIL PROTECTED] wrote: Thats still using the string by the URL though/get method, which limits the charecfters to about 100 :-/ Is it possible to do the same thing but not have the data in the url, so it could be picked up by the php'spostvariable instead? (which you can do with RequestBuilder by using new RequestBuilder (RequestBuilder.POST) but that dosnt open a newwindow.) On Nov 21, 8:13 am, Danny Schimke [EMAIL PROTECTED] wrote: You could try to use JSNI to open a newwindowas you've already done: It should look something like this: native JavaScriptObject openWindow(String param) /*-{ $wnd.open('scripts/display.php' + '?text=' + messageslist.getText(), '_blank', null); return true;}-*/; I hpe it's what you searched for... Danny 2008/11/20 darkflame [EMAIL PROTECTED] Any ideas? The text is dynamic, so I thought at first I'd just use; Window.open(scripts/display.php+?text=+messageslist.getText(), _blank, null); Where display.php simply gets the text variable in the url and echo's it back. However, this has a very short limit on the text that can be displayed. Is it possible to do a simerla function with RequestBuilder? SoPost can be used correctly? I have no idea if its possible to use RequestBuilder to open a php in a newwindow, so if it isn't I would welcome workarounds if its not. Cheers, --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Easiest way to open a new window with some text in it?
If I type; var popup = document.open('scripts/display.php', '_blank', null); into the console of my gwt the new window pops up. Then typeing; popup.getElementById('idShowText') Results in; TypeError: popup.getElementById is not a function (I also tried with .innerHTML(teststrng) at the end, but that gave the same result) Its worth noteing that ; document.write(popup.title); or document.write(popup.url); both return undefined. (despite that a title is set). It seems popup just isnt refering to the newly created window. ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) 2008/12/3 alex.d [EMAIL PROTECTED]: Not quite sure why this doesn't work - try to play with it in FireBug (you can open your window from the console and use popup-variable to get it's elements). Does popup.getElementById('idShowText') give en element back? On 3 Dez., 16:12, Thomas Wrobel [EMAIL PROTECTED] wrote: Must admit, I wasnt aware you could set text in another window from a script running in the current one. Still, dosnt seem to work for me display.php has the following html; html body div id=idShowTexttest/div /body /html And my native javascript being triggered is; var popup = $wnd.open('scripts/printthis.php', '_blank', null); popup.getElementById('idShowText').innerHTML=someText; return; The window pops up ok, but the text remains just test, and dosnt change to someText. 2008/12/3 alex.d [EMAIL PROTECTED]: In good old javascript time i've done this like: var popup = $wnd.open('scripts/display.php', '_blank', null); popup.getElementById('idShowText')... // Hier get a div or smth. and show/insert your text On 2 Dez., 19:48, darkflame [EMAIL PROTECTED] wrote: nope..apperently I cant use a form panel to post data to a new window :-/ I'm happy to use any combination of php and gwt, but I cant seem to find a neat way to get a string (of decent length) into a new window. I could save to cookie or something, but that seems a very messy method to use :-/ On Nov 21, 8:10 pm, darkflame [EMAIL PROTECTED] wrote: Just thinking outloud here...it could be done with a form right? Just hidden somewhere. dosnt seem very neat though. On Nov 21, 1:50 pm, darkflame [EMAIL PROTECTED] wrote: Thats still using the string by the URL though/get method, which limits the charecfters to about 100 :-/ Is it possible to do the same thing but not have the data in the url, so it could be picked up by the php'spostvariable instead? (which you can do with RequestBuilder by using new RequestBuilder (RequestBuilder.POST) but that dosnt open a newwindow.) On Nov 21, 8:13 am, Danny Schimke [EMAIL PROTECTED] wrote: You could try to use JSNI to open a newwindowas you've already done: It should look something like this: native JavaScriptObject openWindow(String param) /*-{ $wnd.open('scripts/display.php' + '?text=' + messageslist.getText(), '_blank', null); return true;}-*/; I hpe it's what you searched for... Danny 2008/11/20 darkflame [EMAIL PROTECTED] Any ideas? The text is dynamic, so I thought at first I'd just use; Window.open(scripts/display.php+?text=+messageslist.getText(), _blank, null); Where display.php simply gets the text variable in the url and echo's it back. However, this has a very short limit on the text that can be displayed. Is it possible to do a simerla function with RequestBuilder? SoPost can be used correctly? I have no idea if its possible to use RequestBuilder to open a php in a newwindow, so if it isn't I would welcome workarounds if its not. Cheers, --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Possible to get an element's propertys from a container iframe?
Bingo! that worked fine! Sometimes I feel like I'll never get the hang of these browser differences... 2008/11/1 Ian Bambury [EMAIL PROTECTED]: Sorry, my mistake. firefox uses textContent Can you get away with innerHTML which is available in both? Ian http://examples.roughian.com 2008/11/1 darkflame [EMAIL PROTECTED] innerText -- ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Possibly for GWT, when in an iFrame, to retrieve a flag from the parent?
Thanks for your reply. I'm still struggling over this, allthough I'm not sure your techique would be helpfull to me. In order to do the equilivent, I'll probably have to be calling to Facebooks API, which involves importing it on my php pages, or calling a php on every single page just to test on the offchance the code is in an iFrame. I think I know enough to do this myself, but I'd rather avoid it as it will slow the app down for people not using it in facebook unnesscerly. Thats why I hoped there was a way for GWT to just check, say, a style from the parent page. Or maybe even pick up a varible from it, as then the sever wouldnt be involved at all. Thanks for your suggestion though, I'll keep it in mind if nothing else. Cheero, Thomas 2008/10/15 Amit Dhingra [EMAIL PROTECTED]: hi darkflame, I recently used my GWT widget inside an iframe in an joomla article, which required me to access the current user information, for which I make a few calls to php files, which accessed the jfactory to get user information and the same was returned to the GWT widget. If you want more information on this, I can help you over it. Thanks Regards, Amit On Wed, Oct 15, 2008 at 1:48 PM, darkflame [EMAIL PROTECTED] wrote: I'm looking for a way for my app to know when its in an iFrame, specifically for adaption for use with Facebook. I can alter the host frame's page to contain what I like (php/html), and would like to pass just one string varible to the gwt app in the frame. However, I cant use history-style links ?= etc, because the app is many pages, and it would only pass the variable on the first load, not once the user starts clicking about within it. (Aside from that, I make extensive use of History tokens anyway, so it would get messy). So I wondered if its possible for GWT to look upward and retrieve some sort of flag from its parent? Can I get the parent of Root? Or navigate the dom up the tree? I vaguely think it should be possible, but I'm not quite sure on the specifics. Any help/pointers would be nice, chears :) -- Warm Regards, Amit Dhingra -- ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: setting an image to have a transparent background? (.getElement().setAttribute(style, .....)
No, because the goal is to make something fade in an out :) I already got it working on IE/Firefox and Opera now, havnt tested Safari yet. Opera/Firefox both seem to work very smoothly with it, in fact. IE works but a little slower to update. I do use PNG images a lot though..lovely format. Not to hard to fix it to work with IE6 either. I only wish I could work out how to set the fallback colour for when the transparancy dosnt work. 2008/10/13 Ponthiaux Eric [EMAIL PROTECTED]: Could you use png images instead ? Playing with specials browser attributes is a tricky thing . Basically it will multiply your work at least by 4 ( IE , Firefox , Safari , Opera ). regards. Thomas Wrobel a écrit : Cheers for the advice, I'll use those methods in future. :) 2008/10/13 Jason Morris [EMAIL PROTECTED]: As a rule of thumb, never setAttribute, when there is a property for that element that does the same job. For example, use setClassName() instead of setAttribute(class, ...), and getStyle().setProperty() instead of setAttribute(style). IE has problems handing setAttribute with any special values. So even when it comes to setting the URL for an image, rather use the setSrc() method in ImageElement. I wish someone had told me this earlier when I started coding JavaScript :P darkflame wrote: That method worked, I wasnt aware of that method of doing it. Cheers! :) My own method, incidently, always worked in Firefox, and firebug simply showed opacity: 0.65; for the style, without the alpha(opacity=65); for IE present at all. On Oct 13, 2:10 am, Paul Robinson [EMAIL PROTECTED] wrote: What happens if you try: Style style = temp.getElement().getStyle(); style.setProperty(filter, alpha(opacity=65)); style.setProperty(opacity, 0.65); firebug will tell you what style is in force for each element HTH Paul darkflame wrote: I'm trying to make a standard image have a code-dependant uniform transparency background, and for it to work across all browsers. Doing this in css is easy, and works, but GWT seems to not be having it. I'm using simply; temp.getElement().setAttribute(style, filter: alpha(opacity=65); opacity: 0.65); Where temp is just an image. This doesn't seem to have any effect, but I'm not sure why. The same style code in CSS works, does it have to be different when applied this way? And what referance do I look at to see the changes made? -- ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: setting an image to have a transparent background? (.getElement().setAttribute(style, .....)
Cheers for the advice, I'll use those methods in future. :) 2008/10/13 Jason Morris [EMAIL PROTECTED]: As a rule of thumb, never setAttribute, when there is a property for that element that does the same job. For example, use setClassName() instead of setAttribute(class, ...), and getStyle().setProperty() instead of setAttribute(style). IE has problems handing setAttribute with any special values. So even when it comes to setting the URL for an image, rather use the setSrc() method in ImageElement. I wish someone had told me this earlier when I started coding JavaScript :P darkflame wrote: That method worked, I wasnt aware of that method of doing it. Cheers! :) My own method, incidently, always worked in Firefox, and firebug simply showed opacity: 0.65; for the style, without the alpha(opacity=65); for IE present at all. On Oct 13, 2:10 am, Paul Robinson [EMAIL PROTECTED] wrote: What happens if you try: Style style = temp.getElement().getStyle(); style.setProperty(filter, alpha(opacity=65)); style.setProperty(opacity, 0.65); firebug will tell you what style is in force for each element HTH Paul darkflame wrote: I'm trying to make a standard image have a code-dependant uniform transparency background, and for it to work across all browsers. Doing this in css is easy, and works, but GWT seems to not be having it. I'm using simply; temp.getElement().setAttribute(style, filter: alpha(opacity=65); opacity: 0.65); Where temp is just an image. This doesn't seem to have any effect, but I'm not sure why. The same style code in CSS works, does it have to be different when applied this way? And what referance do I look at to see the changes made? -- ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Possible bug with GWT or Java, but dont have the expirence to be sure myself :x
Thats strange, as thats what Command.com said when I type java -version I have just updated anyway to this version; http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jdk-6u7-windows-i586-p.exe?BundledLineItemUUID=n_NIBe.lq1EcxyhtpvbwOrderID=YTNIBe.lIIcAAAEcvChtpvbwProductID=LxJIBe.ovSEAAAEaVZcGcbZWFileName=/jdk-6u7-windows-i586-p.exe (which the release notes says is _07) But I it still dosnt work, and is still seems to be confused over the versions; http://www.cuyperscode.com/CuypersCode2_WIP/test%20folder/dual.jpg Is it possible I somehow have two versions installed :? Maybe the route of the problem is something really weird with my java installation. 2008/10/13 Paul Robinson [EMAIL PROTECTED]: Your error message indicates you were using 1.6.0_03 darkflame wrote: I have heard from someone using Java 1.6.0_05 that it works fine. It seems the _07 update (which I was on) is causing the problems. On Oct 13, 5:00 pm, darkflame [EMAIL PROTECTED] wrote: Yes, try this in IE;http://www.cuyperscode.com/CuypersCode2_WIP/test%20folder/TestProject... Press Button2 to test the simple fade, Button1 to start the by-section fade out. crash's IE6 at the same point the crash happens in hosted. (the by-section fade out dosnt work at all in Firefox or Opera...but that might be my code) On Oct 13, 4:53 pm, alex.d [EMAIL PROTECTED] wrote: What about Web-mode? Any problems there? On 13 Okt., 16:44, darkflame [EMAIL PROTECTED] wrote: I have been expirementing developing a transition effect in GWT, that is made by fadeing out a 10x10 array of images in sequence. The fade's, individualy, work ok. But if more then one is attempted at a time I get this; # # An unexpected error has been detected by Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x77f9d45a, pid=2388, tid=2212 # # Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode, sharing) # Problematic frame: # C [ntdll.dll+0x1d45a] # # An error report file with more information is saved as hs_err_pid2388.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # In my eclipse window. This is the first time have had this sort of problem, and it seems to point to a problem with Java itself no? My code is relatively simple, using the Style style = ThisImage.getElement().getStyle(); style.setProperty(filter, alpha(opacity=+opacity+)); style.setProperty(opacity, +(opacity/100)); Techique in a timer on an extended image object to trigger the fade, and then a loop triggering the fades in sequence. If I just detach rather then fade, it works. (and also makes a nice transition...), but as soon as the fader is used, I get the above crash notice. I have logged at the log file and cant make that much sense of it myself. Any advice for proceeding? Should I report to Sun? or is it likely a bug in Google? Or is it my fault in some way ;) -- ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Help with GWT FX (Cant get MorphStyle/Selector to work)
If your still interested, you could try out the website now ;) Should all be working on my new sever. Still very beta. 2008/8/21 Ian Bambury [EMAIL PROTECTED]: 2008/8/21 Thomas Wrobel [EMAIL PROTECTED] www.rateoholic.co.uk Please try out my new site and give feedback :) It gives an error (Object doesn't supports this property ot method) and then produces Darkflames Domain ... (c)2007 Thomas wrobel 'Darkflames' needs an apostrophe, and 'wrobel' needs a capital letter. Apart from those three things it seems fine. As far as it goes. :-) Ian -- ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Any ideas on how to make a popup stay on top?
Ok, I tracked down my problem, and I'm noting it here for reference; It seems when setting the z-depth from within gwt, I have to use zIndex rather then z-index Absolutely no idea why this works, as z-index is the correct css as far as I know, but I noticed this form in other bits of code too (http://markmail.org/message/ajny4glg33vaiwsb, http://code.google.com/p/google-web-toolkit/issues/detail?id=1279 ) and it seems to work. So, in my code this didnt work; DOM.setStyleAttribute(this.getElement(), z-index, +(1000)); but this did; DOM.setStyleAttribute(this.getElement(), zIndex, +(1000)); Hope this helps anyone else googling and finding this thread ;) 2008/9/16 Thomas Wrobel [EMAIL PROTECTED]: This is odd, I just tried this at my end and it dosnt seem to work. Heres a screenshot of what I get: http://www.darkflame.co.uk/PopUpOrderingProblem.jpg Heres a 7zip of the whole test project: http://www.darkflame.co.uk/testproject.7z 2008/9/12 Thomas Broyer [EMAIL PROTECTED]: On 11 sep, 16:14, Thomas Wrobel [EMAIL PROTECTED] wrote: Ok,thanks, I upload an example zip of what I'm trying to do here; www.darkflame.co.uk/client.zip It would have been far better with the appropriate directory structure and .gwt.xml (and even TestProject-shell.cmd...) Basically, I want it if the user clicks on popup1, then popup2, popup1 stays ontop. I've removed your workaround, added a this.addStyleName(darkflame- OverlayPopUp) in the OverlayPopUp constructor, and added the following CSS rule in the TestProject.html: .darkflame-OverlayPopUp { z-index: 1000; } ...and the draggable popup stays on top (tested both in hosted mode – IE7– and an IE6 within a Virtual PC). -- ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) -- ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Any ideas on how to make a popup stay on top?
This is odd, I just tried this at my end and it dosnt seem to work. Heres a screenshot of what I get: http://www.darkflame.co.uk/PopUpOrderingProblem.jpg Heres a 7zip of the whole test project: http://www.darkflame.co.uk/testproject.7z 2008/9/12 Thomas Broyer [EMAIL PROTECTED]: On 11 sep, 16:14, Thomas Wrobel [EMAIL PROTECTED] wrote: Ok,thanks, I upload an example zip of what I'm trying to do here; www.darkflame.co.uk/client.zip It would have been far better with the appropriate directory structure and .gwt.xml (and even TestProject-shell.cmd...) Basically, I want it if the user clicks on popup1, then popup2, popup1 stays ontop. I've removed your workaround, added a this.addStyleName(darkflame- OverlayPopUp) in the OverlayPopUp constructor, and added the following CSS rule in the TestProject.html: .darkflame-OverlayPopUp { z-index: 1000; } ...and the draggable popup stays on top (tested both in hosted mode – IE7– and an IE6 within a Virtual PC). -- ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Any ideas on how to make a popup stay on top?
Sorry about the lack of xml files, that was sloopy of me. I should have just ziped the whole project directory, but I was in a bit of a rush. Its really odd that the Z-indexing worked, as that was the first thing I tried I'll have a few experiments in the full app and see if it acts the same as the cut-down one I sent out. Thanks, Thomaas 2008/9/12 Thomas Broyer [EMAIL PROTECTED]: On 11 sep, 16:14, Thomas Wrobel [EMAIL PROTECTED] wrote: Ok,thanks, I upload an example zip of what I'm trying to do here; www.darkflame.co.uk/client.zip It would have been far better with the appropriate directory structure and .gwt.xml (and even TestProject-shell.cmd...) Basically, I want it if the user clicks on popup1, then popup2, popup1 stays ontop. I've removed your workaround, added a this.addStyleName(darkflame- OverlayPopUp) in the OverlayPopUp constructor, and added the following CSS rule in the TestProject.html: .darkflame-OverlayPopUp { z-index: 1000; } ...and the draggable popup stays on top (tested both in hosted mode – IE7– and an IE6 within a Virtual PC). --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Any ideas on how to make a popup stay on top?
Ok,thanks, I upload an example zip of what I'm trying to do here; www.darkflame.co.uk/client.zip Basically, I want it if the user clicks on popup1, then popup2, popup1 stays ontop. (TestProject is the entry point) 2008/9/11 Ian Bambury [EMAIL PROTECTED]: I can't get it *not* to stay on top -- ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Any ideas on how to make a popup stay on top?
Ok, I'm not too good at explaining stuff, so I'll try to break it down as simple as I can. I wish to have a popup that is persistent and always ontop of everything else. This overlay popup (as in the example I gave) can be moved about and repositioned. The user can drag this popup to one side, and continue working on other stuff under it. The user may then trigger other things that popup (in the example given, this was a picture, with a fader behind it). The original overlay popup must say ontop of everything else, including the new popup under it. (in the example, this would be the image and fadder). To give the real use of what I'm trying to do; I am currently developing a sort of adventure game engine, in which the player progress's by solving puzzles. Some of these puzzles might rely on comparing images, text and other information. In this specific case, it must be possible for the user to overlay this popup ontop of other information they can pull up. So, for example, one puzzle might involve aligning a PNG with holes over a bit of existing text to get a secret message showing though the holes. Or comparing a two figureprints to see if they match. (the half/half method). Or... Basically a lot of puzzles might require comparing some sort of reference image (the popup that stays ontop and is dragable) against existing inventory items that the user can select. I hope this is clear. In the example code the dragable box I want to stay ontop even after the other button is pressed. (which I assumed would meant reattaching it...only that doesn't work) Thomas -- ps. Thanks for the insite into the origins of hiccups. I apologies for my bad spelling, especially in my code. I can assure you, however, I at least never believed McDonalds was a restaurant. 2008/9/11 Ian Bambury [EMAIL PROTECTED]: Just to save me an amount of investigation: You want a normal page, with a popup over it covering the whole screen, and another small popup over that. Then you want the small popup to stay over the full-screen popup, and you want to be able to work on the normal page through the full-screen popup, but not through the small popup. Yeah? If so (and even if not) can I ask: what is the *functional* specification (i.e. what would a non-technical user manual tell the kind of user who has trouble with Word?) Ian BTW 'hickups' is spelt 'hiccups' which is really just a new spelling for 'hiccoughs' which is the proper one. 'Hiccups' is for people who spell 'through' as 'thru' and 'night ' as 'nite' and believe that a McDonalds Restaurant actually is a restaurant. :-) 2008/9/11 Thomas Wrobel [EMAIL PROTECTED] sorry, updated the zip, forgot to include the html and pic. www.darkflame.co.uk/client.zip 2008/9/11 Thomas Wrobel [EMAIL PROTECTED]: Ok,thanks, I upload an example zip of what I'm trying to do here; www.darkflame.co.uk/client.zip Basically, I want it if the user clicks on popup1, then popup2, popup1 stays ontop. (TestProject is the entry point) 2008/9/11 Ian Bambury [EMAIL PROTECTED]: I can't get it *not* to stay on top -- ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) -- ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) that is FF = Internet communications are not secure and therefore I will not accept legal responsibility for the contents of this message. Any views or opinions do not necessarily represent what I really think unless otherwise specifically stated, and even then, I might still be lying. This message may contain confidential privileged information, but if it does, I've nicked it from someone else. If you have received this email in error then tough, hit delete, and don't bother me about it, I really don't care. Batteries not included. Contents can go up as well as down. Shares can vary in size. May cause drowsiness, if affected, go to sleep. = -- ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Need to get images original dimensions before displaying.
Thanks for your help, that worked a treat! 2008/9/3 Reinier Zwitserloot [EMAIL PROTECTED]: Use onLoad, but also start a timer, and check after 10 seconds. If the image has dimensions that aren't 0x0, remove the onload trigger, and do the resize. On Sep 2, 4:00 pm, darkflame [EMAIL PROTECTED] wrote: Dosnt really help me. I cant even show them at the correct size without knowing what size they are originaly. (nor can I easily center them). I only wish to have a maximum limit in place as well in the case the supplied image is too large. The fact IE has a horrible resize is just another point to add to its many faults rather then relivent to my code at the moment. I dont want to burden my limited server with having to send individualy made images and size specs to absolutely each client using the app. (if its possible at all, I dont want this app to need any specific sever requirements, it will have php as an option for some added security, but I am also making it happly work offline. So no sever-side requirements are part of my spec ). On Sep 2, 3:50 pm, ReinierZwitserloot[EMAIL PROTECTED] wrote: You can't resize images in the browser. They'll look really -really- bad (nearest point resizing in at least IE6). Resize them on the server. When requesting them, send the size of the current window along. On Sep 2, 1:59 pm, darkflame [EMAIL PROTECTED] wrote: What I'm trying to do; Display an image, which is either its original width, or 80% of the browsers width. Whichever is smallest. Height is scaled preportionaly so the correct ratio is maintained. Now, I know I cant get the image size untill its loaded, so I added an onLoad listener. But I then ran up against this issue;http://code.google.com/p/google-web-toolkit/issues/detail?id=863 I cant rely on onLoad to work in IE. So whats the easiest way to achieve what I need? Cheers :) -- ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---