SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Can we go to a 48 hour day?
    Join Date
    May 2002
    Location
    MI
    Posts
    906
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    trouble with window.open

    I am using the following code:
    PHP Code:
    <a href="bio_popup.php?id=31" target="FacultyBio" onlick="window.open(this.href,this.target,'scrollbars=yes,resizable=yes,width=300,height=300')">...read more...</a
    Now it works, but it does not seem to want to listen to the dimensions. It makes the huge window that is nearly full screen on a 1280x1024 resolution. Anyone see why the code would work in general, but not fit to the size specified?

    Thanks
    mitechie.com
    "Techies just think a little differently
    ...at least that is what they keep telling me."

  2. #2
    Non-Member QualityWebHosts's Avatar
    Join Date
    Sep 2003
    Location
    USA
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Get rid of target, and return false in your onclick.
    You also might want to move the dimentions to the front of the list

  3. #3
    Can we go to a 48 hour day?
    Join Date
    May 2002
    Location
    MI
    Posts
    906
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I moved the dimensions and taking out the target forced the page to change without opening in a new window.

    Here is the page in question:
    http://www.msufame.msu.edu/main_site...nt_fellows.php

    The link is the "...read more..." for each person.

    I am sorry the code is not easy to read; it's php generated so it ends up with some LOOOOONG lines of code.

    Any other ideas as the why the new window will not open to the specified dimensions?
    mitechie.com
    "Techies just think a little differently
    ...at least that is what they keep telling me."

  4. #4
    SitePoint Wizard silver trophy
    Join Date
    May 2003
    Posts
    1,843
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm...maybe some of those psychologists should have a look at this:
    Code:
    <a href="bio_popup.php?id=31" target="FacultyBio" onlick="window.open(this.href,this.target,'scrollba...
    Some kind of oral fixation, apparently...
    ::: certified wild guess :::


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
  •