Re: how to size Frame so no scrollbars?
I put this into the class that creates the Frame. A mouse event in the primary screen class (which extends AbsolutePanel and has this object placed on it) calls 'offerControls()' - which will someday. For now, it's just a quick re-use while I work this out. It has no effect - the scrollbars are still there. I do see the Window.Alert, so I know the call comes through: public class Underlay extends Frame implements ftWidget { private String address = null; private Underlay() {} public Underlay( String address ) { this.address = address; this.setUrl( address ); //this.setStylePrimaryName( .ft-underlay ); } public void offerControls() { Window.alert( Called offerControls ); newPageInFrame( this.getElement() ); } native void newPageInFrame( Element frame )/*-{ var FramePageHeight = framePage.scrollHeight + 10; frame.style.height=FramePageHeight; }-*/; } Any thoughts? If I make this Frame arbitrarily big, then there (usually) won't be scrollbars, but the outer panel would scroll off into space. I am bemused there is no way to tell this to size itself to fit it's contents (what else is it for?). I did some experiments with SmartGWT setAutoHeight() but couldn't get the scrollbars to leave that way either. If you're certain that would work, it's worth pursuing. Any help would be appreciated. Thanks, Bret On Jul 30, 3:22 am, Thomas Dvornik amp...@gmail.com wrote: An easy solution would be to use a 3rd party like SmartGWT. All their widgets have a method called setAutoHeight() which will do exactly what you want. However, I haven't tried this, but give it a shot. This might have to go in an class that extends Frame. link.addClickListener(new ClickListener() { public void onClick(ClickEvent event) { changeContentsOfFrame(); newPageInFrame(frame.getElement()); } }); native void newPageInFrame(Element frame) /*-{ //Remember, JavascriptObject, Element, and the //primitives are directly accessible in JSNI code. //Thus frame here should be -the-frame. var FramePageHeight = framePage.scrollHeight + 10; /* framePage is the ID of the framed page's BODY * tag. The added 10 pixels prevent an unnecessary * scrollbar. */ frame.style.height=FramePageHeight; }-*/; Tom On Jul 28, 10:28 pm, bcw bcw1...@gmail.com wrote: Hello, I've tried ideas in several posts, but none gets me what I need. If I assign a URL to a Frame, and also set a fixed size that is smaller than the resulting page, the Frame provides scroll bars. But my Frame is itself embedded in another page which provides the scroll bars. I want to set the Frame so it is large enough (and only large enough) to render the URL page without any scrollbars, and use the outer page's scroll bars to see it. I can't find any way to do this. I can't find anyway to get the size of the entire page contained within the Frame. Please let me know a way to do this. The Frame is positioned on an AbsolutePanel. -- 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.
how to size Frame so no scrollbars?
Hello, I've tried ideas in several posts, but none gets me what I need. If I assign a URL to a Frame, and also set a fixed size that is smaller than the resulting page, the Frame provides scroll bars. But my Frame is itself embedded in another page which provides the scroll bars. I want to set the Frame so it is large enough (and only large enough) to render the URL page without any scrollbars, and use the outer page's scroll bars to see it. I can't find any way to do this. I can't find anyway to get the size of the entire page contained within the Frame. Please let me know a way to do this. The Frame is positioned on an AbsolutePanel. -- 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.
Persisting web pages locally
The usual model is a source serving pages, and the source persists the data in various ways. I am writing a note-taking (and other uses) application using GWT. Properly, a lot of the smarts will reside on the server, but I must make choices about persisting the information the user enters. The primary entry is by handwriting. It would be useful if the user could save in a format that displays the writing even when opened on a machine that does not have the smart server, keeping the notes visible, and embedded in an HTML document. I am already experimenting with rendering the writing with PNG images. I'm expecting to save the handwriting data as InkML, and there may be other related information (such as the interpreted text). Are there any approaches using GWT to allow me to save PNG images along with a local copy of a page, so it's readable without the server to interpret it? I would need to fetch the images from the server and them write it all locally. I could have the server do this while connected, or the browser (if that's practical), but I would like a one-file format that could be opened in the browser on another machine and show the writing/PNG. Later I'm thinking of other content as well, so general pointers would be helpful. Thanks for any ideas, bcw -- 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: Persisting web pages locally
I understand Gears allows local storage of remotely sourced web data. I don't know of any way it solves the problem of embedding PNG in a locally saved html file so the file can be viewed on a machine which doesn't have my server installed, and which may not be connected to the network at the time. This is a note taking application at first, with the idea of making the notes 'smarter' in later versions. I'd like to have the notes always viewable just with a browser, just as with any locally saved html file. The notes would be read-only, and not smart, but accessible. So my question is more how to embed (PNG) data presented with a GWT Image widget into a saved html file so it can be displayed in a 'dumb' browser. The Image is how the handwriting is shown, with backing smarts in the full application. Thanks. On Jun 1, 5:17 am, kozura koz...@gmail.com wrote: Well this is the idea behind Google Gears, allowing you to locally persist data in a little lightweight db. Normal js won't allow this due to the myriad security issues; with gears the user installs it and allows client side code to access it. But the status of gears going forward is a little unclear, for instance I haven't seen some major issues that cause browsers to hang being addressed.. However the GWT- gears lib is up to date:http://code.google.com/p/gwt-google-apis/wiki/GearsGettingStarted On May 31, 2:46 am, bcw bcw1...@gmail.com wrote: The usual model is a source serving pages, and the source persists the data in various ways. I am writing a note-taking (and other uses) application using GWT. Properly, a lot of the smarts will reside on the server, but I must make choices about persisting the information the user enters. The primary entry is by handwriting. It would be useful if the user could save in a format that displays the writing even when opened on a machine that does not have the smart server, keeping the notes visible, and embedded in an HTML document. I am already experimenting with rendering the writing with PNG images. I'm expecting to save the handwriting data as InkML, and there may be other related information (such as the interpreted text). Are there any approaches using GWT to allow me to save PNG images along with a local copy of a page, so it's readable without the server to interpret it? I would need to fetch the images from the server and them write it all locally. I could have the server do this while connected, or the browser (if that's practical), but I would like a one-file format that could be opened in the browser on another machine and show the writing/PNG. Later I'm thinking of other content as well, so general pointers would be helpful. Thanks for any ideas, bcw -- 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.
Pass event through?
Hi, I'm not sure of the terms to search for yet, so if this is a well- asked question, please point me in the right direction. If I lay an AbsolutePanel with a listener over HTML, the panel gets the mouse events. After I consider, and perhaps act on the event, I may want to pass it on to the underlying HTML (whatever it is) so that it seems as if there were no panel overlaying it. How can I do this? I have the overlay and interception working, but can't find the right search terms to turn up information about passing an event on. Thanks in advance, bcw -- 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.
fast mouse copies?
Hi, I'm writing a note-taking app using GWT for a tablet computer, and when I write, I am moving the pointer much faster than when using the mouse. Periodically with the Chromium browser, but not with FireFox, a 'fist- and-page' icon will appear at the pointer, and the browser will behave as if I am holding the left button (which with a tablet means as if I'm still holding the stylus to the screen - which I'm not). There is an Absolute panel overlaying the browser window, and a GWTCanvas panel on that to give me control and a drawing surface. Why is Chromium doing this? It ruins Chromium as a note-taking platform. Thanks, bcw -- 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.
linux servers
Hello, I'm designing an app that will use a browser (FireFox or Chrome when it's available) to provide the UI, and GWT for the development, but it won't be connecting to a remote server - it will serve personal data off the user's own system. I'm targeting Linux (which I run) and maybe the Mac. Those browsers run javascript without help, but I also want to be able to access some shared system library functions on my linux box for computations. Is there a way to do that from a browser without an intervening server? If not (or if I find other reasons I need a server) there is a second layer... What if the user has already installed an application that has pulled in a server? I notice there are documentation systems that use one, and they might have installed Tomcat, Apache, whatever... how do I tell? how do I integrate the components I use to provide my required services with their server - including when they aren't server-aware and don't even know they've installed one? Is there a server registry to deal with such contention? thanks in advance, bcw --~--~-~--~~~---~--~~ 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: linux servers
On Sep 2, 4:08 am, Jeff Chimene jchim...@gmail.com wrote: On 08/31/2009 11:36 PM, bcw wrote: I'm designing an app that will use a browser (FireFox or Chrome when it's available) to provide the UI, and GWT for the development, but it won't be connecting to a remote server - it will serve personal data off the user's own system. Well, none of these questions are really GWT-related. Any further discussion of this topic should be done off-list. Ah... For all I know, GWT has some facility to support this. It was worth asking to find out. As well, there might be some other approach or work-around to support this, and I'd want to know about the interactions between that approach and GWT. It wasn't obvious from what I've read so far, but then I'm just getting into it. You can call shared libraries from Firefox JavaScript. I haven't read everything yet, but I haven't seen anything to suggest this. Instead, I've read the suggestion to use RPC, thus leading to the 'server collision' questions. Can you point me at a resource that talks about calling shared local system libraries (libCompute.so) from FireFox JavaScript? Is there a way to do that from a browser without an intervening server? Firefox will load an html file from a local source (via the file:// protocol); which file can reference and execute local scripts. If this is what you are referring to, I can read about that. I haven't seen anything addressing that a local script could call a local system library so much, but I am just starting to think about how to do this. If you can point to a resource that speaks to having local javascript access local system-level shared libraries, that would save me some time. Google hasn't come up with anything yet, but perhaps I don't know the correct terms to use. Thanks, bcw --~--~-~--~~~---~--~~ 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: linux servers
To answer your last question first, I want to learn. I write Java at work. I've done SOA and Swing. The world is moving to Web 2 (or already has) and I want to as well. So, I want a project that gets me into that heavily. With Google OS coming, I see the browser reinforced as the place to be. It already can host all the multimedia capability I could want, and I don't have to assemble it on top of my own custom framework - I just have to learn to use it. Why reinvent the wheel another time? I have a system library that does a simple computation. I send it a string, and it returns a computed string. That provide a good basis for figuring out how to deal with the issue of getting local facilities (such as Octave, Macsyma, or legacy AutoCAD running in WINE) into the browser space. Some local programs provide server solutions, and some don't. I'm looking at a simple example that doesn't, to learn how to deal with that. On Sep 2, 9:12 am, David Given d...@cowlark.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 bcw wrote: [...] Those browsers run javascript without help, but I also want to be able to access some shared system library functions on my linux box for computations. Is there a way to do that from a browser without an intervening server? [...] The longer answer is probably not. Most web browsers provide some feature where Javascript can call out to host services; for very good security reasons this is disabled most of the time. I have the thought that a FireFox plug-in might allow access. I'll want to learn about the security issues along the way. The other approach I've seen is RPC, which means a local server, which leads to the 'server collision' question. One well-meaning response I've received suggested forcing a Tomcat install and assigning a 'random port'. That doesn't mean there won't be a collision - everyone is going to be doing this in the near future. I was hoping a more definitive approach had been worked out by now... Most of Firefox, for example, is written in Javascript using these services. How precisely to get at these functions varies from browser to browser. The even longer answer is maybe, provided you're willing to use some third-party technology to provide the interface between Javascript and the system functions. For example, a Java applet, Flash plugin, Firefox extension, ActiveX control... of course, doing it this way rather negates any advantage to using GWT. I don't agree. GWT still allows me to write OO architecture, gives me easy access to layout facilities, etc. The browser itself gives me substantial support for multimedia and plugins for different data formats. Unless I don't understand something...? Ultimately, I'm writing a PIM (Personal Information Manager) that leverages all the online applications, since we're living our lives on- line. But I also want to be able to access selected local computing resources that a user may have invested in. Some people want to drag- and-drop statistical analysis streams their colleagues have published into their own PIM - and have them passed through their locally- assembled analysis tools for processing. Yes, it can be done unsafely. Can it be done safely? How do I do that? This first very simple example will get me started on learning and building. Thanks for the information. I would welcome any more pointers, thoughts, search phrases I haven't thought of yet, etc. Cheers, bcw --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---