Re: Stick a widget on a just opened new blank page

2010-02-17 Thread Dogan Narinc
Hi Mirco,

I'm trying to achieve something very similar. Would appreciate any
update on how it went for you.

Cheers,

Dogan

On Jan 28, 11:12 am, Mirco Dotta mirco.li...@gmail.com wrote:
 Ehehehe... that's exactly what I'm trying to achieve :) Thanks for the
 pointer, I'll do my best to get something out of it

 -- Mirco

 On Thu, Jan 28, 2010 at 12:03 PM, Joe Cole 
 profilercorporat...@gmail.comwrote:

  I've never tried to do anything with the window object, so it might
  not work... but I use this to detect if popups aren't working:

         public static native boolean open(String url, String name, String
  features) /*-{
             var newWindow = $wnd.open(url, name, features);
             if( newWindow ) return true;
             return false;
           }-*/;

  I'm sure you could change it to return the new window as an Element
  and use DOM.* to manipulate it.

  Let us know how you get on - this could be useful for creating print
  pages without a server roundtrip.

  On Jan 28, 11:39 pm, Mirco Dotta mirco.li...@gmail.com wrote:
   Hi folks,

   I'm wondering if there exist a way to stick a widget into a new page.

   What I'd like to do would be some sort of  Window.open(myWidget,
  _blank,
   width=650,height=700)

   But this can't be done because the interface of the Window.open method
   expects an URL and not a widget.

   Is there any trick to get this working. I was thinking that maybe I could
   call a native JS method and just pass the Widget as a DOM Element, but
   considering I'm not at all a JS expert I would prefer not to waste time
  on
   something that is simply not possible :)

   If there is someone out there with a good idea and has time to give me
  some
   direction I would greatly appreciate it.

   Cheers,
     Mirco

  --
  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.comgoogle-web-toolkit%2bunsubscr...@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.



Stick a widget on a just opened new blank page

2010-01-28 Thread Mirco Dotta
Hi folks,

I'm wondering if there exist a way to stick a widget into a new page.

What I'd like to do would be some sort of  Window.open(myWidget, _blank,
width=650,height=700)

But this can't be done because the interface of the Window.open method
expects an URL and not a widget.

Is there any trick to get this working. I was thinking that maybe I could
call a native JS method and just pass the Widget as a DOM Element, but
considering I'm not at all a JS expert I would prefer not to waste time on
something that is simply not possible :)

If there is someone out there with a good idea and has time to give me some
direction I would greatly appreciate it.


Cheers,
  Mirco

-- 
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: Stick a widget on a just opened new blank page

2010-01-28 Thread Abdullah Shaikh
I don't know if you really need to open a new window, but if not then you
can easily use a PopupPanel or DialogBox.

If you want new window then I think you need to pass url which should just
display the widget you want based on the parameter passed in the url.

For eg. http://yoursite/yourapp/#widgettoshow

I am new to gwt, but I guess this should work, if you already have history
management in you application.

- Abdullah

On Thu, Jan 28, 2010 at 4:09 PM, Mirco Dotta mirco.li...@gmail.com wrote:

 Hi folks,

 I'm wondering if there exist a way to stick a widget into a new page.

 What I'd like to do would be some sort of  Window.open(myWidget, _blank,
 width=650,height=700)

 But this can't be done because the interface of the Window.open method
 expects an URL and not a widget.

 Is there any trick to get this working. I was thinking that maybe I could
 call a native JS method and just pass the Widget as a DOM Element, but
 considering I'm not at all a JS expert I would prefer not to waste time on
 something that is simply not possible :)

 If there is someone out there with a good idea and has time to give me some
 direction I would greatly appreciate it.


 Cheers,
   Mirco

 --
 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.comgoogle-web-toolkit%2bunsubscr...@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: Stick a widget on a just opened new blank page

2010-01-28 Thread Joe Cole
I've never tried to do anything with the window object, so it might
not work... but I use this to detect if popups aren't working:

public static native boolean open(String url, String name, String
features) /*-{
var newWindow = $wnd.open(url, name, features);
if( newWindow ) return true;
return false;
  }-*/;

I'm sure you could change it to return the new window as an Element
and use DOM.* to manipulate it.

Let us know how you get on - this could be useful for creating print
pages without a server roundtrip.

On Jan 28, 11:39 pm, Mirco Dotta mirco.li...@gmail.com wrote:
 Hi folks,

 I'm wondering if there exist a way to stick a widget into a new page.

 What I'd like to do would be some sort of  Window.open(myWidget, _blank,
 width=650,height=700)

 But this can't be done because the interface of the Window.open method
 expects an URL and not a widget.

 Is there any trick to get this working. I was thinking that maybe I could
 call a native JS method and just pass the Widget as a DOM Element, but
 considering I'm not at all a JS expert I would prefer not to waste time on
 something that is simply not possible :)

 If there is someone out there with a good idea and has time to give me some
 direction I would greatly appreciate it.

 Cheers,
   Mirco

-- 
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: Stick a widget on a just opened new blank page

2010-01-28 Thread Mirco Dotta
Hi Abdullah, thanks for your opinion, really appreciate it!

Your suggestions are good but for what I'm doing I really need to open a new
page and I would like to avoid to have the History manager handling it...
mostly because I don't want the user to save the page and come back at a
later time.

This window I'm creating is meant to be transient. It's purpose is to have
inside a summary of an order that the user can print. As I have built the
order as a widget, I'd really love to stick that widget on this blank page
and that's it. This is why I was thinking that I may need to go through JS
and do it myself... but I'm not very clear on how to achieve it, and most
importantly, if it can even be achieved.

-- Mirco

On Thu, Jan 28, 2010 at 12:03 PM, Joe Cole profilercorporat...@gmail.comwrote:

 I've never tried to do anything with the window object, so it might
 not work... but I use this to detect if popups aren't working:

public static native boolean open(String url, String name, String
 features) /*-{
var newWindow = $wnd.open(url, name, features);
if( newWindow ) return true;
return false;
  }-*/;

 I'm sure you could change it to return the new window as an Element
 and use DOM.* to manipulate it.

 Let us know how you get on - this could be useful for creating print
 pages without a server roundtrip.

 On Jan 28, 11:39 pm, Mirco Dotta mirco.li...@gmail.com wrote:
  Hi folks,
 
  I'm wondering if there exist a way to stick a widget into a new page.
 
  What I'd like to do would be some sort of  Window.open(myWidget,
 _blank,
  width=650,height=700)
 
  But this can't be done because the interface of the Window.open method
  expects an URL and not a widget.
 
  Is there any trick to get this working. I was thinking that maybe I could
  call a native JS method and just pass the Widget as a DOM Element, but
  considering I'm not at all a JS expert I would prefer not to waste time
 on
  something that is simply not possible :)
 
  If there is someone out there with a good idea and has time to give me
 some
  direction I would greatly appreciate it.
 
  Cheers,
Mirco

 --
 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.comgoogle-web-toolkit%2bunsubscr...@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: Stick a widget on a just opened new blank page

2010-01-28 Thread Mirco Dotta
Ehehehe... that's exactly what I'm trying to achieve :) Thanks for the
pointer, I'll do my best to get something out of it

-- Mirco

On Thu, Jan 28, 2010 at 12:03 PM, Joe Cole profilercorporat...@gmail.comwrote:

 I've never tried to do anything with the window object, so it might
 not work... but I use this to detect if popups aren't working:

public static native boolean open(String url, String name, String
 features) /*-{
var newWindow = $wnd.open(url, name, features);
if( newWindow ) return true;
return false;
  }-*/;

 I'm sure you could change it to return the new window as an Element
 and use DOM.* to manipulate it.

 Let us know how you get on - this could be useful for creating print
 pages without a server roundtrip.

 On Jan 28, 11:39 pm, Mirco Dotta mirco.li...@gmail.com wrote:
  Hi folks,
 
  I'm wondering if there exist a way to stick a widget into a new page.
 
  What I'd like to do would be some sort of  Window.open(myWidget,
 _blank,
  width=650,height=700)
 
  But this can't be done because the interface of the Window.open method
  expects an URL and not a widget.
 
  Is there any trick to get this working. I was thinking that maybe I could
  call a native JS method and just pass the Widget as a DOM Element, but
  considering I'm not at all a JS expert I would prefer not to waste time
 on
  something that is simply not possible :)
 
  If there is someone out there with a good idea and has time to give me
 some
  direction I would greatly appreciate it.
 
  Cheers,
Mirco

 --
 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.comgoogle-web-toolkit%2bunsubscr...@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.