Meaningless Drivel is fun!*
The moose likes HTML, CSS and JavaScript and the fly likes Problems referencing singleton across frames Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Problems referencing singleton across frames" Watch "Problems referencing singleton across frames" New topic
Author

Problems referencing singleton across frames

Roy Ivar Moe
Greenhorn

Joined: Jun 22, 2006
Posts: 21
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
I do not see that code above actually running. Does it in the local frame?

Eric
Roy Ivar Moe
Greenhorn

Joined: Jun 22, 2006
Posts: 21
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problems referencing singleton across frames
 
Similar Threads
calling a function in another frame
Sharing javascript variables across popups / singleton pattern
My form submit is called twice
help with Prototype
Help deleteing a node at an onload event