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 6472799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:23:21+00:00 2026-05-25T06:23:21+00:00

I am using jAlert to display an alert on bad input. The popup displays

  • 0

I am using jAlert to display an alert on bad input. The popup displays roughly 300px from the top. The user may experience an error roughly 2000px down the page, in an area where the popup is not visible. In cases such as this the user doesn’t even know the popup occured.

Ideally, the popup should display in the center of the current visible screen area. But, Scrolling up to the top is the next best thing. I’m unsure how to implement either.

The method does not appear to have an overload to accept screen location coordinates.

$(document).ready(function () {
    jAlert("Flippin message", "Title");//, function () {
       // alert('normal alert');//optional callback
    //});
});

How can I best solve this issue?


UPDATE
Things work fine in IE/Firefox/Safari(desktop). The issue is just with iPads browser.

  • 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-05-25T06:23:22+00:00Added an answer on May 25, 2026 at 6:23 am

    Looked into the plugin code and changed this line

    if( $.browser.msie && parseInt($.browser.version) <= 6 ) top = top + $(window).scrollTop();
    

    to

    if( $.browser.msie && parseInt($.browser.version) <= 6 || navigator.userAgent.match(/iPad/i)) top = top + $(window).scrollTop();
    

    This seems to work for ipad… and is opening the alert at the center even if I have scrolled my way down the page… Hope it helps… please suggest if there is a better solution…

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

Sidebar

Related Questions

I am using jquery.alert.js library to display alert, it worked great exception one case.
Using the http://www.ifans.com/forums/showthread.php?t=132024 post from another question i am allowing the user to enter
Using mercurial, I've run into an odd problem where a line from one committer
Using php/html, I want to retrieve email addresses (plus other information) from MySQL and
I,m using jalert plugin. It works well but I'd like after showing the message
Using Java,I have to fetch multiple sets of values from an XML file to
Using MVVM. I have a DataTemplate which I am using to display an expander
Using Yii, I want to delete all the rows that are not from today.
Using javascript/jQuery: I have an array with images and I need to display them
Using ASP.NET MVC there are situations (such as form submission) that may require a

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.