Name a function that will not get changed when compliling?

2009-06-11 Thread Shedokan
Hello, How can I name a function like start() and it will not change while compliling so that other javascript can call it? thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post

Re: Name a function that will not get changed when compliling?

2009-06-12 Thread Shedokan
Thanks, I now realize what was that strange comments in GQuery and that's what JSNI means. I will check later the GWT exporter. thanks. On 11 יוני, 23:41, Alex Rudnick a...@google.com wrote: Hey Shedokan, The approach I've used for that is to attach a GWT function to the window object ($wnd

How can I change the body's background without using external style sheets?

2010-03-24 Thread Shedokan
How can I do in GWT this: document.body.style.background = red; I'm trying to change the background color of the body element without adding a special class to the body or any of that external css. Thanks. -- You received this message because you are subscribed to the Google Groups Google Web

Re: How can I change the body's background without using external style sheets?

2010-03-25 Thread Shedokan
Document is com.google.gwt.dom.client.Document. Olivier On 24 mar, 20:48, Shedokan shedok...@gmail.com wrote: How can I do in GWT this: document.body.style.background = red; I'm trying to change the background color of the body element without adding a special class to the body or any

Does a private variable in Java stays private when compiled to javascript?

2010-06-16 Thread Shedokan
Hello, I am looking at GWT's features and can't figure out weather a variable declared in java as private will stay private once compiled in GWT. By private I mean unaccessible to anyone except for the constructor or the construtors functions. Thanks. -- You received this message because you

Re: Does a private variable in Java stays private when compiled to javascript?

2010-06-18 Thread Shedokan
debugger. When your question is about security, never ever dream about that anything is secure in your browser code. Anything you give to a browser is open, at least for a professional. Stefan Bacherthttp://gwtworld.de On Jun 16, 11:23 am, Shedokan shedok...@gmail.com wrote: Hello, I am

Re: Does a private variable in Java stays private when compiled to javascript?

2010-06-19 Thread Shedokan
sripathi.krish...@gmail.com wrote: I think you missed Thomas' post. You *CAN* keep your variables private, its just you have to use a different linker. Its just a minor change to your gwt.xml, and with that your entire script will be private. -Sri On 18 June 2010 20:04, Shedokan shedok...@gmail.com

Why do I get Native methods do not specify a body when I try to use JSNI?

2010-06-20 Thread Shedokan
I have this Class: package com.testproject.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; /** * Entry point classes define codeonModuleLoad()/code. */ public class Test implements EntryPoint { /** * This is the entry point

Re: Why do I get Native methods do not specify a body when I try to use JSNI?

2010-06-21 Thread Shedokan
getUserAgent() /*-{                 return navigator.userAgent.toLowerCase()         }-*/; Olivier On 20 juin, 17:55, Shedokan shedok...@gmail.com wrote: I have this Class: package com.testproject.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT

Re: GWT and javascript php websites

2010-06-21 Thread Shedokan
I was just yesterday going after the same thing, untill I did some testing and found that you can use JSNI to set objects on the window without having to worry about their name: package com.testproject.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT;

Re: Does a private variable in Java stays private when compiled to javascript?

2010-06-22 Thread Shedokan
code, the object does no more know about private, protected or public. (I am NOT referencing Java since the concepts are not so separated in this language) Stefan Bacherthttp://gwtworld.de On Jun 19, 3:34 pm, Shedokan shedok...@gmail.com wrote: I didn't miss his post I just didn't

Re: Does a private variable in Java stays private when compiled to javascript?

2010-06-24 Thread Shedokan
://code.google.com/p/gwt-exporter/http://timepedia.blogspot.com/ On Tue, Jun 22, 2010 at 12:41 AM, Shedokan shedok...@gmail.com wrote: I want to allow people to add javascript extensions to my app using an API I'll make with GWT, so I don't want them to be able to be able to access private

Re: Passing PHP variables to my GWT application

2010-06-26 Thread Shedokan
You can try to put al your addTreeItems calls inside a function like onModuleLoad and then once you declare the addTreeItems function in your GWT function call it and all the addTreeItems calls will be called after your module loads. On 25 יוני, 04:25, barbe...@muohio.edu barbe...@muohio.edu

Re: Does a private variable in Java stays private when compiled to javascript?

2010-06-26 Thread Shedokan
: On 25 juin, 19:40, Stefan Bachert stefanbach...@yahoo.de wrote: Hi Shedokan, I think this approach will fail. a) you can't give you code away. Because GWT needs the source. b) to use GWT code as JavaScript-lib fails. GWT compiles only what is needed. So how could you be sure, that ALL

Re: GWT and javascript php websites

2010-06-26 Thread Shedokan
? On 21 jun, 16:57, Shedokan shedok...@gmail.com wrote: I was just yesterday going after the same thing, untill I did some testing and found that you can use JSNI to set objects on the window without having to worry about their name: package com.testproject.client; import

Re: How t compile and run gwt app in eclipse and normally

2010-07-01 Thread Shedokan
It's all in the docs: http://code.google.com/intl/iw/webtoolkit/doc/latest/tutorial/gettingstarted.html If you'll have further questions after reading that you are free to ask in these forums. On 30 יוני, 09:55, kondal rao kondalraotirum...@gmail.com wrote: please help me out in this issue i m

Why do I get Cannot make a qualified reference to the static method ... when that method is being only called in JSNI?

2010-08-04 Thread Shedokan
I have something like this: package com.project; public class Events { static final native void bindEvents() /*-{ $wnd.onresize = th...@com.project.events::resize(); }-*/; private static final void resize() { ... } } the

How can I develop GWT apps with GAE Python?

2010-09-02 Thread Shedokan
Hello, I am developing an app which is mainly based on ajax and has a backend of GAE Python. Currently I'm just compiling the App and copying it to the GAE directory, but it's just too much hassle waiting 20seconds to compile it each time instead of the live development mode. Is there any way of

How can I get a class by it's name and then construct it?

2010-09-03 Thread Shedokan
Hello, I am trying to split my code and load classes by a name I get from the server. I tried using Class.forName(com.app.classes.+className) but GWT doesn't support it. How can I get a class and then construct it like this: new (getClass(com.app.classes.+className))(Param1, param2); Thanks. --

Re: Can I copy an image to avoid re-requesting from url?

2010-09-03 Thread Shedokan
Maybe try asking the server for a base64 encoded image and then save the string, and once you need to display your image you can do: data:image/png;base64,BASE64_ENCODED_IMAGE_HERE in the src value of an image tag. On 3 ספטמבר, 16:59, dduck anders.johansen.a...@gmail.com wrote: On 3 Sep., 14:37,

Re: How can I get a class by it's name and then construct it?

2010-09-03 Thread Shedokan
... Search in google for GWT Generators 2010/9/3 Shedokan shedok...@gmail.com Hello, I am trying to split my code and load classes by a name I get from the server. I tried using Class.forName(com.app.classes.+className) but GWT doesn't support it. How can I get a class and then construct

Re: Upload 1mb to gae (using php scripts to upload to gae)

2010-09-03 Thread Shedokan
Dude, wrong group. but if you really want an answer try the BlobStore: http://code.google.com/intl/iw/appengine/docs/python/blobstore/ It allows you to upload files and then serve them, you can upload a file of a maximum 2gb, but you can only serve files that are less than 1mb On 3 ספטמבר,

Re: How can I get a class by it's name and then construct it?

2010-09-08 Thread Shedokan
wrote: Hi Shedokan, you can do this on the server, not on the client. A few weeks ago, I ran into the same problem. Here is my solution: - send the string with the classname to the srever. - then do the following:        myClass = Class.forName(className);        Constructor myConstr

Who is the owner of gwtnews.blogspot.com?

2010-09-29 Thread Shedokan
Hello, I am getting tons of spam lately, and I found out spam bots can find me by a simple google search because these two blogs archive GWT conversaions and keep full emails intact: gwtnews.blogspot.com gwtletter.blogspot.com So whoever is the owners of these blogs, I would like to kindley ask

Re: AppEngine Users Service with GWT will always reload page/module upon login

2010-10-05 Thread Shedokan
Maybe instead try asking the person to login before enabling him the option to write a message? On Oct 3, 12:31 pm, Haris harishas...@gmail.com wrote: Using Users Service, after filling up login and password and press OK, onModuleLoad is executed. Basically the gwt module is reloaded. I am

Re: GWT for client-only web-application

2010-10-05 Thread Shedokan
I had the same question, when I started using GWT I knew javascript very good and I was just starting with java. I found that when writing in java you can have classes and classes that inherit from other classes which is a must in all modern apps, this makes your life a whole lot easier. You do

Re: Who is the owner of gwtnews.blogspot.com?

2010-10-05 Thread Shedokan
://googlewebtoolkit.blogspot.com On Sep 29, 7:17 am, Shedokan shedok...@gmail.com wrote: Hello, I am getting tons of spam lately, and I found out spam bots can find me by a simple google search because these two blogs archive GWT conversaions and keep full emails intact: gwtnews.blogspot.com

Re: AppEngine Users Service with GWT will always reload page/module upon login

2010-10-12 Thread Shedokan
type very long message and time out. On Oct 5, 7:56 pm, Shedokan shedok...@gmail.com wrote: Maybe instead try asking the person to login before enabling him the option to write a message? On Oct 3, 12:31 pm,Harisharishas...@gmail.com wrote: Using Users Service, after filling up login