One easy workaround is to use an IFRAME in GWT which shows a URL on
your server that includes that script code.  All you have to do is
match up the frame's width and height to the seal's dimensions.

example :

http://yourserver/siteSeal.html
<script language="JavaScript" src="https://seal.XRamp.com/seal.asp?
type=G"></script>

in GWT :

import com.google.gwt.user.client.ui.Frame;
Frame frame = new Frame("http://yourserver/siteSeal.html";);
add(frame);

Cheers,

Cameron

On Jan 8, 4:03 pm, bryanb <[email protected]> wrote:
> Hi,
>
> I'm wanting to display an SSL site seal which is a this bit of
> Javascript:
>
> <script language="JavaScript" src="https://seal.XRamp.com/seal.asp?
> type=G"></script>
>
> Normally, you just put this on your HTML page where you want it to
> display and all is good.
>
> I really want to display it in a Dialog, but first I wanted to make
> sure it would work. This is my GWT code:
>
> package com.mycompany.client;
>
> import com.google.gwt.core.client.EntryPoint;
> import com.google.gwt.user.client.ui.HTML;
> import com.google.gwt.user.client.ui.RootPanel;
>
> public class Demo implements EntryPoint {
>     public void onModuleLoad() {
>         RootPanel rootPanel = RootPanel.get();
>         String s = "<script language=\"JavaScript\" src=\"https://
> seal.XRamp.com/seal.asp?type=G\"></script>";
>         HTML html = new HTML(s);
>         rootPanel.add(html);
>     }
>
> }
>
> I'm not sure if this is the best/preferred way to include this (i.e.
> as an HTML object), but when I try to compile this (from Eclipse, gwt-
> linux-1.5.3, jdk1.6.0_10, Suse 11.0), it barfs with this error:
>
> # An unexpected error has been detected by Java Runtime Environment:
> #
> #  SIGSEGV (0xb) at pc=0xb8076520, pid=19786, tid=2813729680
> #
> # Java VM: Java HotSpot(TM) Client VM (11.0-b12 mixed mode linux-x86)
> # Problematic frame:
> # C  [libpthread.so.0+0x7520]  pthread_mutex_lock+0x20
> #
> # An error report file with more information is saved as:
> # /home/bryanb/workspace/Project3/hs_err_pid19786.log
> #
> # If you would like to submit a bug report, please visit:
> #  http://java.sun.com/webapps/bugreport/crash.jsp
>
> The log file mentioned has about 4 pages of register dumps and what
> not.
>
> Can anyone give me a clue as to what to do.
>
> Thanks,
>
> Bryan
--~--~---------~--~----~------------~-------~--~----~
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