It works as it should, I started to use the DOM.removeChild() /
DOM.insertChild() methods and it works really good!

Thanks,
David

On 23 oct, 14:03, "Sumit Chandel" <[EMAIL PROTECTED]> wrote:
> Hi Davsket,
> How exactly is history failing for you when making references to the
> elements below? Is it only that the banners represented by the elements
> you're retrieving don't update appropriately, or does history become
> completely nonfunctional?
>
> I would imagine it is the former, in which case you would need to re-render
> the elements rather than just change their "src" attribute to get them to
> update on the page. For example, something you could try is to remove the
> element and then re-add it to the page to have it re-render with the new
> "src" attribute appropriately set using the DOM.removeChild() /
> DOM.insertChild() methods.
>
> However, if the banner elements are actually images, have you considered
> using a regular Image widget (or using an ImageBundle if appropriate)? That
> could make it easier to re-render the banner whenever the specified history
> event occurs.
>
> Hope that helps,
> -Sumit Chandel
>
> On Tue, Oct 21, 2008 at 10:04 AM, Davsket <[EMAIL PROTECTED]> wrote:
>
> > Hi, I have a problem with History and I have found that it starts to
> > fail when I run some code like this:
>
> > /**onLoad()**/
> > Document doc = Document.get();
> > public_top = doc.getElementById("public_banner_top");
> > public_right = doc.getElementById("public_banner_right");
>
> > /**onTabChange - Usually after a history event**/
> > public_right.setAttribute("src", "srv/banners/get?banner=right");
> > public_top.setAttribute("src", "srv/banners/get?banner=top");
>
> > I thought the problem was because the History uses iframes, but I call
> > this elements by their id, so it shouldn't be.
> > If I remove this elements everything works fine, theres another way to
> > do this? I only need to refresh some banners (in iframes) after a tab
> > change.
>
> > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to