Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Page 1 of 2 12 LastLast
Results 1 to 8 of 10
  1. #1
    MDLarson's Avatar
    MDLarson is offline Registered User
    Join Date
    Feb 2002
    Location
    Minneapolis, MN
    Posts
    1,195
    Thanks
    3
    Thanked 3 Times in 3 Posts

    Open new window -> re-use open window?

    Hey folks, and thanks for making this a good sounding board for site suggestions.

    Follow this link and then click on any of the testing applications for examples.

    Current Setup
    Each testing application has a glossary of terms at the bottom of the page. When clicking on these terms, a new window pops up and attempts to move the term's definition to the top of the page (using named anchors). Clicking on multiple terms would spawn multiple new windows.

    Desired Setup
    I would like to popup one "Glossary" window and simply scroll up and down in this Glossary window whenever a term is click in the first window. An added bonus would be term selection, like highlight the definition text in green or yellow or something.

    Any ideas? I'm pretty sure this can be done, maybe with named windows and CSS or something.

  2. #2
    Arden's Avatar
    Arden is offline Where mah "any" keys at?
    Join Date
    Dec 2002
    Location
    Spokane, WA
    Posts
    7,752
    Thanks
    0
    Thanked 1 Time in 1 Post
    target="LSI Glossary" perhaps.
    Systems:
    2.5 GHz MacBook Pro Core 2 Duo, 4 GB RAM, 320 GB hard drive, runs 10.6.8
    1.6 GHz iMac G5, 1.5 GB RAM, 120 GB hard drive, runs 10.4.11 (out of commission)
    iPhone 4, 16 GB, iOS 4.3.5

  3. #3
    uoba's Avatar
    uoba is offline Re: member
    Join Date
    Aug 2001
    Location
    Merseyside, UK
    Posts
    1,726
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Funny, I found exactly the CSS you need whilst browsing yesterday (for the highlighting of the target that is)... check out my example here: http://c-o2.net/cssTests/index.html

    The hint is for this link: http://devedge.netscape.com/viewsour...rget-selector/

    As for the targetting window, I gather you mean you only want one window to pop up, and be used, rather than separate windows opening on every glossary click? I'd have to do a test run with this, but haven't got time sorry (it's my first day off in months, so family are calling! Maybe tonight )

  4. #4
    MDLarson's Avatar
    MDLarson is offline Registered User
    Join Date
    Feb 2002
    Location
    Minneapolis, MN
    Posts
    1,195
    Thanks
    3
    Thanked 3 Times in 3 Posts
    The latest and greatest...

    I figured out the target thing. My window is now named "glossary".

    I'm currently trying out a combination of things:
    First, I use the OnMouseDown event to Open Browser Window (pretties up the glossary page)

    Then, in basically the same action (OnClick) regular HTML targets "glossary" and the link points to the term on the already opened glossary window.

    This works well enough in Mac IE 5, but Windows IE 6 behaviour sucks*. Try it out in your browser and let me know what you think.

    *IE 6 - the first time a term is clicked, a new browser window pops up, but does not go to the term defnition. Leaving this window open, and clicking on subsequent terms succeeds in jumping to the correct definition, but the window remains behind the main one, forcing the user to click on the glossary window in the taskbar to realize that something actually happened...

  5. #5
    Arden's Avatar
    Arden is offline Where mah "any" keys at?
    Join Date
    Dec 2002
    Location
    Spokane, WA
    Posts
    7,752
    Thanks
    0
    Thanked 1 Time in 1 Post
    There are scripts to bring a window to the forefront; I'm sure you've seen this in reverse, unless you have popups squelched in Safari. Try searching for this on your favorite Net coding sites or checking out the source code of various popups.

    Uoba, I'm not quite sure what you're trying to demonstrate... your test page did nothing for me, and I'm not quite sure what you're getting at anyway.
    Systems:
    2.5 GHz MacBook Pro Core 2 Duo, 4 GB RAM, 320 GB hard drive, runs 10.6.8
    1.6 GHz iMac G5, 1.5 GB RAM, 120 GB hard drive, runs 10.4.11 (out of commission)
    iPhone 4, 16 GB, iOS 4.3.5

  6. #6
    uoba's Avatar
    uoba is offline Re: member
    Join Date
    Aug 2001
    Location
    Merseyside, UK
    Posts
    1,726
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Just showing the highlighting effect on anchored/targeted jumps within a document (I didn't put the targets in another doc, or move them down the page, which would've made it more obvious).

    It was something I had done the night previous to Larson's post, so thought I would share

  7. #7
    MDLarson's Avatar
    MDLarson is offline Registered User
    Join Date
    Feb 2002
    Location
    Minneapolis, MN
    Posts
    1,195
    Thanks
    3
    Thanked 3 Times in 3 Posts
    Originally posted by uoba
    Just showing the highlighting effect on anchored/targeted jumps within a document (I didn't put the targets in another doc, or move them down the page, which would've made it more obvious).

    It was something I had done the night previous to Larson's post, so thought I would share
    I tried your page out as well, uoba, and I didn't see anything special in IE 5 for Mac. Sitting here at home, eating my bowl of Cheerios for breakfast, and trying it out in Safari however, it works like a charm!

    I'll look into it more at work.

  8. #8
    uoba's Avatar
    uoba is offline Re: member
    Join Date
    Aug 2001
    Location
    Merseyside, UK
    Posts
    1,726
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hmmm, should've mentioned... I think the css ':target' attribute is CSS2. Thus, may not be supported in all browsers (but in true standards form, if it doesn't work, it won't be broken).

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. safari: open link in new window
    By quiksan in forum Mac OS X System & Mac Software
    Replies: 4
    Last Post: January 17th, 2003, 12:11 PM
  2. open new Finder window in... what ?
    By Dekatophil in forum Mac OS X System & Mac Software
    Replies: 1
    Last Post: September 25th, 2002, 12:50 PM
  3. using window title-bar to navigate through open windows
    By Remco in forum Opinions, & Open Letters
    Replies: 8
    Last Post: May 24th, 2002, 02:15 PM
  4. how to get os9 folders to open in same window...
    By DooBall in forum Apple News, Rumors & Discussion
    Replies: 2
    Last Post: October 22nd, 2001, 01:12 PM
  5. Kensington mouse -> close window
    By Steve Bosell in forum Mac OS X System & Mac Software
    Replies: 2
    Last Post: October 7th, 2001, 03:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •