Saturday, May 28, 2011

Re: HTML widget sometimes doesn't render 3rd party Javascript widget

I tried to use a Frame widget to include a html page just with the following banner and it shows up on all browsers. But it doesn't look nice, e.g. it has an extra border on IE.

Just wondering why HTML widget can't show the banner correctly, as simple as following:
HTML html = new HTML("<div id='searchform_634420069924922689'></div><script type='text/javascript' src='http://widgets.partners.expedia.com/daily/shared/ affiliates/WidgetService.aspx?partner=cj&pid=999999&size=120x600&window=new&branded=true&widgetname=searchform&divid=searchform_634420069924922689'></script>");
somePanel.add(html);

Any advice here?

On Thu, May 26, 2011 at 10:50 AM, maq <mumayuan@gmail.com> wrote:
Gabriel,

Thanks for reply. Apologize for not being clear about my problem.
I was not trying to calling any javascripts through JSNI.
I simply want to include the banner scripts got from Expedia affiliate
search form in a GWT HTML widget.

<div id='searchform_634420069924922689'></div><script type='text/
javascript' src='http://widgets.partners.expedia.com/daily/shared/
affiliates/WidgetService.aspx
?
partner=cj&pid=999999&size=120x600&window=new&branded=true&widgetname=searchform&divid=searchform_634420069924922689'></
script>

So I created HTML object with the above content and lay it out along
with other GWT widgets. But it shows up only in a Firefox on SUSE. On
windows, neither firefox and IE displays it. (I guess it may be
dependent on the browser.)

Similar problem happens to include the widget script using GWT HTML
from addthis.com

- maq



--
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment