Help coderanch get a
new server
by contributing to the fundraiser
  • 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

Maintaining JavaScript values

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ranchers,
I have a complex issue to solve. I am working on vignette portal. Where so many modules will be listed down. Now, I am opening a new window from one of modules's hyperlink. I am passing the window object to a Javascript file which stores the window handler in an array.

On auto-logoff, the window gets refreshed and accesses the array of child window handlers object and closes each child window present in it and henceforth my module window which was opened gets closed.

But, instead if i click on anyother modules for request processing, my JavaScript loads fresh and so all the values stored in it gets flushed. And so now, if logout happens automatically, the values are not present. How can I overcome this?

Thanks !!!
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is no way to keep the JavaScript object live with a page refresh. Only option you would have is onunload of the page, you can close the pop up windows or the users will be stuck closing them themselves.

Eric
 
Sheriff
Posts: 67750
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
karthick ryan, you have been asked before to not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place.

I have closed the duplicate topics for this question. Please respect the forum guidelines in this matter.
 
karthick ryan
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sorry abt that..
But in the above case, what if i have maintained window.navigator.child value? Are they global ?
 
This tiny ad is wafer thin:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic