Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problems referencing singleton across frames

 
Roy Ivar Moe
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

I'm having difficulties getting a reference to a singleton across frames.

My singleton has this form:



I know how to reference vars, functions and objects across frames, but I just can't seem to get a reference to this singleton.

I'm trying to access the singleton (in lets say myFrame) from a function which is imported into the frameset file, and then trying to do something like:



Are there any issues with using this singleton pattern across frames?

Regards,
Roy
[ February 17, 2007: Message edited by: Roy Ivar Moe ]
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not see that code above actually running. Does it in the local frame?

Eric
 
Roy Ivar Moe
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eric,

Yes this runs in the local frame.

Here's a quick test if you want to try and run it.
(Note the / in o/nload, in order to post this.)

Hmmm... I don't see why this object would differ from any other object when trying to access it across frames.



Regards,
Roy
[ February 17, 2007: Message edited by: Roy Ivar Moe ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic