473,403 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

showModalDialog() Jumping to Bottom of Popup's Body

I'm using showModalDialog() to popup a window with some long text,
followed by a couple of form elements. The content of the popup
scrolls, since the content is longer to than the window. However, when
it first opens, it is positioned at the bottom of the modal window's
content, so one has to scroll to see the beginning of the content. It
happens to be positioning the window so the bottom of the submit
button is at the bottom of the popup.

Does anyone have any idea how to get the dialog to have the uppermost
text positioned where it should be (at the top)?

I tried popping up the url with ...#top at the end, and adding an
anchor to the start of the popup content, but had no luck.

Thanks,
Jamie
Jul 20 '05 #1
1 2467
No bites on this thread, so let me shorten it...

I've got a popup window (details below), and whenever it opens up, it
jumps to a submit button at the bottom of the page's content.
Therefore, a visitor has to scroll up to read the uppermost content.

Any idea why this is happening, and how to prevent it?

Thanks,
Jamie

On Wed, 03 Sep 2003 09:09:19 -0400, Jamie Jackson
<wa***************@bigfoot.com> wrote:
I'm using showModalDialog() to popup a window with some long text,
followed by a couple of form elements. The content of the popup
scrolls, since the content is longer to than the window. However, when
it first opens, it is positioned at the bottom of the modal window's
content, so one has to scroll to see the beginning of the content. It
happens to be positioning the window so the bottom of the submit
button is at the bottom of the popup.

Does anyone have any idea how to get the dialog to have the uppermost
text positioned where it should be (at the top)?

I tried popping up the url with ...#top at the end, and adding an
anchor to the start of the popup content, but had no luck.

Thanks,
Jamie


Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Kai Grossjohann | last post by:
The following HTML file invoker.html creates a modal dialog: <html><head> <script language="JavaScript"> function popup() { window.showModalDialog("main.html", null,...
2
by: Iver Erling Årva | last post by:
I have this window where I open a modal dialog window using the code: newwin=window.showModalDialog(url, "popup", features) where features are ...
6
by: Scott Lee | last post by:
I am displaying an ASP.Net generated form in a popup opened with window.showModalDialog. The form contains DropDownList controls. The first ddl is populated via databinding to a datatable, has...
0
by: jacquesvdz | last post by:
Hi guys/girls I already post this in javascript forum, but nobody could help me.C# guys are always sharp and fast, so I am trying ny Luck:-) I wonder who can help me: I know sort of how...
9
by: Stan B | last post by:
I create a popup window by calling window.showModalDialog Popup window has Ok button with this code attached: === string Script = "<script language=JavaScript>" + "{" + "window.close();" +...
4
by: Ralf | last post by:
Here is my scenerio and what I am doing. I am open to other ways of doing this is it makes sense. I have a cell withing a row within a datagrid. When this cell is clicked (its a date field), I...
0
by: Ben Schumacher | last post by:
I'm programming a web app using ASP.Net 2.0 and vb.net. In some instances, I open a popup window using vbscript and the ShowModalDialog window command. The .aspx page that is opened using the...
1
by: elizayiu | last post by:
Hi, I need to write a webpage which does the following: - open up a window and pass parameters into it (i.e. need to call showModalDialog() or showModelessDialog()) - contains jscript to...
13
by: TechnoAtif | last post by:
Hi all. I have used showmodaldialog for a popup window. it works fine in IE but shows :Error: showModalDialog is not defined. I have gone through many forums but haven't got satisfactory solution....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.