Hi friends, I have created a flag variable and some functions to retrive and update its vales. 1)getFlag(): returns the value of the flag 2)toggleFlag(): toggle value of flag. I have used one .js file to contain functions and one .rhtml file which uses those functions. I have used those functions to avoid multiple popup windows the window is able to open only when the flag is true. Initially flag is true when window is opened it is set to false and when window is closed the flag become true to allow other window to be open. But in this flow when i add some alert boxes to see the values it shows correct values till one window is got closed but after it shows flag as false. please help me.. Kiran PolawarKiranD-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---