SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist jazztie's Avatar
    Join Date
    Mar 2001
    Location
    the Netherlands
    Posts
    519
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    resizing a frame window

    I have a little problem with resizing a window.

    I have the main page which opens a new window:
    PHP Code:
    <script language='JavaScript'>
        function 
    NewWindow(){
            
    window.open('showlist_frame.html','Frame','height=425,width=480,top=50 left=125, resizable=no, scrollbars=yes');
        }
    </script> 
    In the frameset I have two frames. In one them there is a list of users. If the user clicks on one of the items, the page is reloaded with a javascript:

    PHP Code:
        function showUser(id){
            
    window.location.replace('showuserdetail_internet.php?UserID=' +id,'','Resizable=no, scrollbars=yes');
        } 
    Now, here's the problem. The showuserdetail page is broader than the list-site. So, I want to resize the window, when the user clicks on the item.

    I've tried window.resizeTo(600,600); in the function showUser. But that only resizes the mainFrame-source. Not the window.

    How do I go about this?
    any help is appreciated!

    Jazz

  2. #2
    pg for mild peril cow's Avatar
    Join Date
    Mar 2000
    Location
    nevada, usa
    Posts
    636
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    do you want to resize the entire window containing the frameset?

    can you post a url?
    "There's no justice like angry mob justice!" --Seymour Skinner


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
  •