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="idShowText">test</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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---