SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2009
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    opening window certain size

    From my page at www.meadowlarktransport.com where I have my News and Events how can I make one of the listings there open in its own window sized appropriately.

    thanks

  2. #2
    SitePoint Addict tom8's Avatar
    Join Date
    Mar 2012
    Location
    New Jersey
    Posts
    310
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Is something like this what you are looking for?

  3. #3
    <title class="lol"> bronze trophy TehYoyo's Avatar
    Join Date
    Feb 2012
    Location
    Northeast Chicago Suburbs
    Posts
    806
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by tom8 View Post
    Is something like this what you are looking for?
    From my understanding, that's not what he wants. He wants to open a new window at a specific resolution like, say, 800 x 600. If you're opening a page from your own site, I think you can disable the resizing of the window so that it's a fixed size.

    But that's bad for accessibility.

    ~TehYoyo

  4. #4
    SitePoint Addict tom8's Avatar
    Join Date
    Mar 2012
    Location
    New Jersey
    Posts
    310
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    The demo site that I set up open a new window with size manually set for each link (I set it to the size of the photo). However, the window will remain to the size that was first opened. Clicking on a new link without closing the window first will re-use the same window. Maybe best to wait for the OP to provide more info as to what is sized appropriately.

  5. #5
    Mouse catcher silver trophy Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,892
    Mentioned
    123 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by rrmcguire View Post
    From my page at www.meadowlarktransport.com where I have my News and Events how can I make one of the listings there open in its own window sized appropriately.
    For a lot of people, you can't – not since about 2007.

    The main reason why not is tabbed browsers. Most people are now using IE8/9, Chrome or Firefox, which AFAIK all allow the user to choose how they want 'new window' links to be opened, and the default setting is usually "same window, new tab". Because none of the popular browsers offer a proper MDI (unlike Opera ), tabs are always full-page, so any new tab opened in the same window must be the same size as the current window.

  6. #6
    SitePoint Member
    Join Date
    Apr 2012
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm!
    I guess you want a pop-up window if so i suggest following (using JS)


    <a href="#" onclick="window.open('url_location.html', 'StatusBar', 'toolbar=yes,resizable=no,scrollbars=yes,width=500,height=500,left=0,top=0');" title="tool tip">link anchor text</a>


    resizable=no makes new window fixed (non-resizeable) with fixed hieght and width you will define

    hope this helps

  7. #7
    SitePoint Enthusiast
    Join Date
    Sep 2009
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    does anyone have a link to a script to open the news events in their own window or a link to accomplish this?

    I would really not like to open the links as full sized windows

  8. #8
    Mouse catcher silver trophy Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,892
    Mentioned
    123 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by rrmcguire View Post
    does anyone have a link to a script to open the news events in their own window or a link to accomplish this?
    Did you read #6 above? That gives you the code that you need.
    I would really not like to open the links as full sized windows
    As I explained in #5, you might not have that option...


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
  •