On Sunday, January 2, 2011 2:31:34 PM UTC+11, songs wrote:
Keeping references around and explicitly closing didn't help. My
first try at it caused a loop b/c calling the close causes the onclose
method to run which causes the setup function to run, etc. Good
times.
Right now,
Keeping references around and explicitly closing didn't help. My
first try at it caused a loop b/c calling the close causes the onclose
method to run which causes the setup function to run, etc. Good
times.
Right now, removing the iframe is the way to go for me.
On Dec 30 2010, 10:39 pm, songs
After two hours your client needs to contact the server for a fresh
token the old token is now dead.
Cheers
--
T
--
You received this message because you are subscribed to the Google Groups
Google App Engine group.
To post to this group, send email to google-appeng...@googlegroups.com.
I guess I wasn't clear enough in my first post.
I have the onclose method hooked up to call the same setup method that
I use when I initially create the channel. This setup method
(setupChannel) makes an XHR request for a token and then creates and
opens a new Channel with it.
In my logs, I see
There's an invisible iframe created when a channel is opened. Maybe you
need to delete that page element before creating a new channel?
iframe name=wcs-iframe id=wcs-iframe style=height: 100%; width: 100%;
src=http://talkgadget.google.com/talkgadget/
Sounds like a hack, but might work.
--
Yay! Removing the iframe before creating the new channel works.
Hacky, but gets the job done and not too too dirty.
On Dec 30, 11:58 am, Calvin calvin.r...@gmail.com wrote:
There's an invisible iframe created when a channel is opened. Maybe you
need to delete that page element before creating
On Friday, December 31, 2010 4:08:16 PM UTC+11, songs wrote:
Yay! Removing the iframe before creating the new channel works.
Hacky, but gets the job done and not too too dirty.
Just to check (and I hope I'm not jumping to conclusions again) but your
setupChannel() - it doesn't reload
Nope, it doesn't reload the jsapi source files again.
I don't keep a reference of the channel around to close. I figured
since the onclose method was getting called the other close stuff was
happening, too. I'll try that approach when I get a chance.
On Dec 30, 10:28 pm, Tim meer...@gmail.com