Hi Eric,
thanks for your reply. I found another way to solve my problem. I set the
value for my variable in overlay.xul using this method,
> Application.storage.set("myobj", value);
and then I get the same value using this method in other xul file,
> var mydata= Application.storage.get("myobj", false);
thanks & regards,
SS
On Fri, Aug 1, 2008 at 10:54 PM, Eric H. Jung <[EMAIL PROTECTED]> wrote:
> Consider using javascript modules for global singleton variables.
>
> http://developer.mozilla.org/en/docs/Using_JavaScript_code_modules
> and
> http://developer.mozilla.org/en/docs/JavaScript_modules
>
> ----- Original Message ----
> From: Silver Surfer <[EMAIL PROTECTED]>
> To: Mozdev Project Owners List <[email protected]>
> Sent: Friday, August 1, 2008 7:03:10 AM
> Subject: [Project_owners] how to use global js variable use in two XUL
> files
>
> Hi friends,
> I have one javascript variable which get the value in one XUL (overlay.xul)
> and I need to get that changed value in another XUL file. The relevant
> javascript variable has defined in a js file which is included in previous
> two XUL files. It is not functioning as I expect. Can you give me any ideas
> for solving it?
>
> thanks & regards,
> --
> ~Silver Surfer~
> Surfing through time & space
> http://risingofsilversurfer.blogspot.com/
>
>
> _______________________________________________
> Project_owners mailing list
> [email protected]
> https://www.mozdev.org/mailman/listinfo/project_owners
>
>
--
~Silver Surfer~
Surfing through time & space
http://risingofsilversurfer.blogspot.com/
_______________________________________________
Project_owners mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/project_owners