• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problems referencing singleton across frames

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
permaculture is giving a gift to your future self. After reading this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic