Re: Refresh the browser with code? (Window.open((getLocation()),"_self", "");

756 views
Skip to first unread message
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Thomas Wrobel

unread,
Jan 15, 2008, 6:16:09 AM1/15/08
to Google-We...@googlegroups.com
thanks a bunch, I thought something like that was happening but didnt
know thats what the {} did.
Thats quite usefull, cheers,

-Thomas

On 15/01/2008, Ian Bambury <ianba...@gmail.com> wrote:
> Eclipse thinks anything with /* */ is a comment, but Eclipse is only an
> editor, so all that means is that you get certain styles when viewing it,
> and that Eclipse consider keywords as commented out. Fair enough.
>
> You can't mix two languages in plain code because compilers etc will get
> confused if you start throwing COBOL and Assembler, C, Forth, and SmallTalk
> statements in there.
>
> So if you want to put the odd bit of another language in, it needs to be
> within comments /* */ but you don't want the compiler to try to compile
> every comment into (in this case) JavaScript, so you need a certain syntax
> so the compiler can spot it /* { } */ and turn it into a JavaScript routine
>
>
> On 15/01/2008, darkflame <dark...@gmail.com> wrote:
> >
> > Yup that works fine :)
> >
> > When you have a moment, could you explain to little old me why it
> > works?
> > I mean, eclipse thinks anything with a /* is a comment to start
> > with....is their some comment override thing when gwt compiles?
> >
> > Also, I'm curious why my more crude technique didn't work.
> >
> > On Jan 14, 9:00pm, Darrell < darrellme...@gmail.com> wrote:
> > > This works for me:
> > >
> > > private native void reload() /*-{
> > > $wnd.location.reload();
> > > }-*/;
> > >
> > > Darrell
> > > MyGWT Libraryhttp://mygwt.net
> > >
> > > On Jan 14, 3:33pm, Peter Blazejewicz <peter.blazejew...@gmail.com>
> > > wrote:
> > >
> > > > hi,
> > >
> > >
> >http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
> > > > (it's about redirect in general, but isn't "refresh" special kind of
> > > > "redirect"?)
> > > > regards,
> > > > Peter
> > >
> > > > On Jan 14, 8:31 pm, darkflame <darkfl...@gmail.com> wrote:
> > >
> > > > > I simply needed a way code-wise to refresh the browser page.
> > >
> > > > > I thought this would work;
> > >
> > > > > // refresh page
> > > > > String linkURL = getLocation();
> > > > > Window.open(linkURL,"_self", "");
> > >
> > > > > But it dosnt seem to have an effect, any ideas?- Hide quoted text -
> > >
> > > > - Show quoted text -
> > >
> >
>


--
~~~~~~
"See Beyond The Realm of This Reality..." ~ Eternal Darkness

Reply all
Reply to author
Forward
0 new messages