iframe event / gwt 2.5

2012-10-27 Thread Hugues Lara
Hi, I want to fire a popup when i click in an iFrame and get the target element in order to recover his id. Why the ONCLICK event don't work ? The ONLOAD work perfectly. Thanks Code Sample : package com.exp.client; import com.google.gwt.user.client.DOM; import

Re: iframe with GWT

2011-10-05 Thread CSchulz
Yeah, I know about the Frame element but I don't know how to edit the head and body areas inside of it or pass it HTML to fill itself with. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

Re: iframe with GWT

2011-10-05 Thread CSchulz
So I found this link http://bealetech.com/blogs/sean/2010/01/embedding-html-document-iframe-gwt and I got it to work using these functions: final IFrameElement iframe = Document.get().createIFrameElement(); FlowPanel innerBox = new FlowPanel() { @Override protected void onLoad

Re: iframe with GWT

2011-10-05 Thread Tomasz Gawel
and the example without a line of JSNI :) but be aware of same-domain restriction when retrieving reference iframe's content. public class IframeStyleExample implements EntryPoint { public static StyleElement addStyleSheet(FrameElement frameElement, String

Re: iframe with GWT

2011-10-05 Thread CSchulz
Thanks! This looks awesome! I'll give it a try. I never would've understood enough on how GWT interacts with the DOM to do this myself, but this'll be a very educational exercise for me. Thanks again! -- You received this message because you are subscribed to the Google Groups Google Web

iframe with GWT

2011-10-04 Thread CSchulz
I'm wondering how I can create and iframe with GWT and inject some style type=text/css body{background-color: red;} /style type of stuff into the head and then inject a bunch of divs into the body. I don't need to be able to link to them at all or apply any handlers, so I would think this would