Hi Gal,

I am posting here full code,

Anchor helloTravelPlanner = new Anchor("Contact our tour planner");
helloTravelPlanner.addClickHandler(new ClickHandler() {
                      @Override
public void onClick(ClickEvent event) {
                             PopupPanel popUp = new PopupPanel(true);
popUp.setSize("40px", "30px");
                                              ScriptElement scriptForSrc =
popUp.getElement().getOwnerDocument().createScriptElement();
 scriptForSrc.setAttribute("type", "text/javascript");
scriptForSrc.setSrc("http://www.hellotravel.com/serveform/serveform.js";);

 popUp.getElement().appendChild(script);
popUp.getElement().appendChild(scriptForSrc);
                                          popUp.center();


}

}

The above code appears to be visible but it is blank. While it should
contain the UI(user interface) returned by the script.

I mean the script returns some thing which has to be shown popup.

If i execute this script adding it to main html document then it works fine
showing the UI on html.
But i need to show it in a popup rather than html page.

I hope it is now more clear.

Thanks


On Sun, Mar 13, 2011 at 2:18 AM, Gal Dolber <[email protected]> wrote:

> What are you trying to do?
>
> You can try:
>
> popup.addAttachHandler(new AttachHandler() {
>     void onAttach() {
>         // Do your scripting here
>     }
> });
>
> On Sat, Mar 12, 2011 at 2:15 PM, Deepak Singh <[email protected]>wrote:
>
>> Hi,
>>
>> The src of an script return a form as UI and i want this UI to be shown in
>> popup panel.
>>
>> ScriptElement script = Document.get.createScriptElement();
>> script.set(.....)
>>
>> PopupPanel popup = new popuppanel();
>> popup.getElement().appendChild(script);
>> popup.center();
>>
>> This code does not work, instead the IE8 browser crashes executing this
>> code.
>> The above code is executed on click of  a link(Anchor).
>>
>> Pls let me know how to get this working.
>>
>> Thanks
>>
>>
>>  --
>> 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.
>>
>
>
>
> --
> Guit: Elegant, beautiful, modular and *production ready* gwt applications.
>
> http://code.google.com/p/guit/
>
>
>
>
>  --
> 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.
>

-- 
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.

Reply via email to