Go Back   CodingForums.com > :: Client side development > JavaScript programming > DOM and JSON scripting

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-25-2013, 09:24 PM   PM User | #1
sbhmf
New Coder

 
Join Date: Jan 2013
Location: Sunnyvale, CA
Posts: 44
Thanks: 3
Thanked 1 Time in 1 Post
sbhmf is an unknown quantity at this point
window offset, not doc offset

the GUI is horizontally-divided into 4 vertical sections, each of which loads its own document, similar to a dashboard. A function call from one of the center documents' controls triggers a layer to cover the screen (for modal purposes) and places a control in its center where the user interacts until closed.

Problem is that css properties position, offset, top and left are all relative to the document, and not to the window. Result is that the modal covers only the one vertical section and not the entire screen.

I have attempted to get around the issue by adding $(verticalDocNode).offset() to the mathematical equation, but an alert reveals that instead of a coordinates it returns [object Object].

I should note here that the page does not contain any iframes.

How can I best implement a full-screen modal?

Last edited by sbhmf; 02-25-2013 at 09:45 PM.. Reason: Appended note that page does not contain iframes.
sbhmf is offline   Reply With Quote
Old 02-25-2013, 09:53 PM   PM User | #2
sbhmf
New Coder

 
Join Date: Jan 2013
Location: Sunnyvale, CA
Posts: 44
Thanks: 3
Thanked 1 Time in 1 Post
sbhmf is an unknown quantity at this point
resolved <eom>
sbhmf is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:18 AM.


Advertisement
Log in to turn off these ads.