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

  • Home
  • SEARCH
  • 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 991497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:07:06+00:00 2026-05-16T06:07:06+00:00

Let’s assume a simple application, which has at the top the following navigation (pseudo

  • 0

Let’s assume a simple application, which has at the top the following navigation (pseudo code):

<a href="?action=new">New</a>
<a href="?action=search">Search</a>

Below, there are different sections, i.e. for the “New” mask:

<div id="condition">
    <form>
        <input type="text" name="Login" />
        <input type="text" name="First" />
        <a href="javascript:performSearch()">Perform search</a>
    </form>
</div>
<div id="results"
    <table>
    ..
    </table
</div>

Let’s assume that the session times out and the user clicks on …

  • New: the content returned from the server will be loaded “full screen” and has to include header/footer/etc
  • Perform search: the content will be displayed within the results DIV: should be only a short error message

Question:

  • is there a way to identify via JavaScript (in the “error.html”) if the current content is loaded into a DIV or “fullscreen”?
  • should I always return an element which spans the whole browser window?
  • or is there a different way to handle this situation?

Any suggestions or ideas are appreciated.

  • 1 1 Answer
  • 2 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-05-16T06:07:06+00:00Added an answer on May 16, 2026 at 6:07 am

    is there a way to identify via JavaScript (in the “error.html”) if the current content is loaded into a DIV or “fullscreen”? Or is there a different way to handle this situation?

    I don’t think it really matters!

    Not 100% sure this answers your question, but here’s what I’d do:

    Have an invisible error div in every page.

    <div id="errordiv" style="display: none">Error!</div>
    

    Make it span the whole browser window.

    div#errordiv
     {
        position: fixed; // Works everywhere except IE 6
        left: 0px; top: 0px; right: 0px; bottom: 0px;
        background-color: white; // or whatever
    
      }
    

    if an error occurs when you run your JavaScript (regardless in what context!), make the error div visible:

    document.getElementById("errordiv").style.display = "block";
    

    add the error message

    document.getElementById("errordiv").style.innerHTML= 
                         "<h1>Error</h1>An error has occurred.....";
    

    (of course, you’d wrap all this into one central showError() function)

    if an error occurs during server-side handling, make it visible from the start (how to do that, differs from language to language).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

let's say we have some simple code like this : private static void Main()
Let's say you have a class called Customer, which contains the following fields: UserName
Let's say we have a simple function defined in a pseudo language. List<Numbers> SortNumbers(List<Numbers>
Let's say I'm writing a Windows Forms (.NET Framework 3.5) application which shows the
Let's say I have two assemblies: BusinessLogic and Web. BusinessLogic has an application setting
Let's say I have a method in java, which looks up a user in
Let's assume that we are building a high traffic site that will be used
Let's say I have the following text: (example) <table> <tr> <td> <span>col1</span> </td> <td>col2</td>
Let's say I have an facebook application running using the JS SDK. First user
let ans = stringConcat [<a href=,\,str,\,>,strr,</a>] putStr (\nOutput : ++show (ans)) when I print

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.