in
Creating Smarter Networks

popup windows

Last post 05-29-2008 3:09 PM by brenwyn. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-31-2008 2:48 PM

    • dapper
    • Top 10 Contributor
    • Joined on 03-25-2008
    • NY
    • Posts 10
    • Points 140

    popup windows

    Is everyone else breezing right through the Smart Server or have you not started to work with one yet?  It feels awefully lonely around here.

    I resolved the logout issue by calling the logout.htm in the 'shared' folder. Problem solved!  

    Now for my next question.  I like the popup window feature and I may be tempted to use it too much but I need to be able to size it to the

    content that I would like to display.  Is there an easy way to set the size of a popup or will it take editing the code in html?  I experimented a little with

    a window.open() function but that generated an error or two.  I am not a javascript expert by any means so my sintax may have been defective. 

     

    • Post Points: 20
  • 05-29-2008 3:09 PM In reply to

    • brenwyn
    • Top 10 Contributor
    • Joined on 05-23-2008
    • Posts 8
    • Points 10

    Re: popup windows

    Answer

    The easiest method is to simple code the feature that you want, as you can control more than just the size of the window.  For example

    <a href="#" mce_href="#" onClick="MyWindow=window.open('http://ilonsmartserver.com,'MyWindow','toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=600,height=300'); return false;">Click Here</a>

    In this case, the new window would not have any of the usual interface items (toolbar, scrollbars, etc) and would be 600 x 300 pixel.

    • Post Points: 5
Page 1 of 1 (2 items)
©2008 Echelon Corporation