A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: pop up windows?

  1. #1
    Junior Member
    Join Date
    Aug 2001
    Posts
    15
    i cant get the window to stay small with scrollbars
    the first code gives the corect dimentions, but no scroll bars . the second gives the scrollbars but the dimentions are some defalt of 800x600, is the direct code writen wrond or should i go and get another javascript code for th html side.
    thanks, helpers.

    javascript:launchwin('faqs.htm','newwindow','heigh t=500,width=300','scrollbars=yes')

    javascript:launchwin('faqs.htm','newwindow','scrol lbars=yes','height=500,width=300')


    :)


  2. #2
    OK, maybe I'm having a blonde moment, but can you post the javascript code for the launchwin?

    Damien
    http://www.thedigitalghost.com

  3. #3
    Junior Member
    Join Date
    Aug 2001
    Posts
    15

    page code

    <!--<SCRIPT LANGUAGE="JavaScript"> var javascript_version = 1.0; </SCRIPT>
    <SCRIPT LANGUAGE="JavaScript1.1"> javascript_version = 1.1; </SCRIPT>
    <SCRIPT LANGUAGE="JavaScript">
    var newwin;
    function launchwin(winurl,winname,winfeatures)
    {
    //This launches a new window and then
    //focuses it if window.focus() is supported.
    newwin = window.open(winurl,winname,winfeatures);
    if(javascript_version> 1.0)
    {
    //delay a bit here because IE4 encounters errors
    //when trying to focus a recently opened window
    setTimeout('newwin.focus();',250);
    }
    }
    </SCRIPT>

  4. #4
    OK, I'm not sure if this is the problem or not. I'm looking at "JavaScript: The Definitive Guide, Third Edition" by David Flanagan (copyright June 1998). According to this, the parameters called by the "window.open" function do not have the "win" prefix on them. For example (url,name,features) as opposed to (winurl,winname,winfeatures). On the other hand, that might be different now (it is an older book). Second, it looks like you need to separate your height and width parameters by a comma. (,'height=XX','width=XX',) instead of (,'height=XX,width=XX',) Though they work together and I think both are required if one is present, they are two separate parameters.

    Try that and let me know if it works.

    Help that's helpful!

    Damien
    http://www.thedigitalghost.com

  5. #5
    Junior Member
    Join Date
    Aug 2001
    Posts
    15

    thanks alot

    it was the comma!! hehe thats funny no matter how many hours i spend being a computernerd, i miss one comma and it keeps me up all night thanks ,

    it works

    thanks helper, caio marcus

  6. #6
    Well I understand that! After 3.5 years as a Mainframe programmer, I still miss a comma or period here and there...


Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center