Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8727763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:29:57+00:00 2026-06-13T08:29:57+00:00

I have a webpage for that allows the user to add attachments (stored in

  • 0

I have a webpage for that allows the user to add attachments (stored in a directory)
For this I use a greybox to popup a window and there the user can view add or delete
docs as they see fit, this all works fine.

The problem I have is that when the user closes the popup the total of attachments which
is displayed on the main page isn’t updated and requires a refresh, which I want to avoid.
I would like to have this data automatically update preferably when the focus changes back
to the main page. I’m on Solaris so I can get the total of files easily its just the display update I need.

All help appreciated

Frankie

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T08:29:58+00:00Added an answer on June 13, 2026 at 8:29 am

    In such situations I prefer to handle onPopupClose instead of onFocusChange. After a little search, apparently greybox let you do that by defining a callback function (described here):

    GB_show(caption, url, /*optional*/ height, width, callback_fn) 
    

    So you may write something like this:

    GB_show('Popup', 'popup_url', 500, 500, function() {
        updateTotalAttachmentCount();
    }); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form that allows the user to add or remove users from
I have a webpage that when landed on, will detect a user's physical location
I have a webpage that redirects to another webpage like this: http://www.myOtherServer.com/Sponsor.php?RedirectPage=http://mylink.com/whereIwasgoingtogo.html Then the
I have a webpage that displays a very large list of data. Since this
I have a webpage that activates a print job on a printer. This works
I have an HTML page (written in .NET MVC) that allows a user to
We have a web page (HTML javascript and PHP mostly) that allows a user
I have a web page that uses three controls to allow a user to
I have a webpage that is transferring A stylesheet as a text/plain MIME type.
I have a webpage that retrieves data (via ajax/php) and shows it in an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.