[Project_owners] iframe not updating

Sergey Yanovich ynvich at gmail.com
Thu Dec 6 01:21:13 PST 2007


Nathaniel Jayme wrote:
> I have a chrome application with two buttons each
> assigning different url to an iframe.
> 
> The iframe can only render the first url assignment
> but successive assignments to the src attribute have
> no effect.
> 
> I am sure that the corrent Url have been assigned as I
> do a dump message to the console.
> 
> The same is true with xulrunner 1.9x (dec 05 release)

Assignments to src attribute don't have immediate effect. Your 
application needs to release UI thread (do a return;), and then wait for 
iframe to load the new URL.

You may use nsIWebProgressListener to watch for load completion.

--
Sergey Yanovich


More information about the Project_owners mailing list