Popup Windows


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Popup Windows

  1. #1
    Ken Guest

    Popup Windows


    In ASP how can I disable the min max and close buttons in a pop up window.

    Thanks
    Ken

  2. #2
    Patrick Steele Guest

    Re: Popup Windows

    In article <3ac24148$1@news.devx.com> (from Ken <talluris@hotmail.com>),
    >
    > In ASP how can I disable the min max and close buttons in a pop up window.


    What do you mean by a "pop up window"? You mean a new window opened up
    with "window.open()"? Or a modal dialog (IE specific
    "showModalDialog")?

    --
    Patrick Steele
    (psteele@ipdsolution.com)
    Lead Software Architect
    Image Process Design

  3. #3
    kevin Guest

    Re: Popup Windows


    "Ken" <talluris@hotmail.com> wrote:
    >
    >In ASP how can I disable the min max and close buttons in a pop up window.
    >
    >Thanks
    >Ken



    Hi Ken,

    Try this Javascript. All you need to do is pass the URL you are linking
    to. It will open the window according to the args. Also, it will check
    for the existance of a window that has already been opened and re-use it
    (if the user hasn't closed it). Hope this helps. Kevin

    <script type="text/javascript" language="javascript">
    snapshotWin = null;
    function redirwin(url){
    if(snapshotWin == null || snapshotWin.closed){
    snapshotWin = window.open(url, 'ssWindow', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,wi dth=380,height=260,left=450,top=5');
    }
    snapshotWin.focus();
    snapshotWin.location.href= url;
    }
    </script>

  4. #4
    vinay Guest

    Re: Popup Windows


    Patrick Steele <psteele@ipdsolution.com_> wrote:
    >In article <3ac24148$1@news.devx.com> (from Ken <talluris@hotmail.com>),
    >>
    >> In ASP how can I disable the min max and close buttons in a pop up window.

    >
    >What do you mean by a "pop up window"? You mean a new window opened up


    >with "window.open()"? Or a modal dialog (IE specific
    >"showModalDialog")?
    >
    >--
    >Patrick Steele
    >(psteele@ipdsolution.com)
    >Lead Software Architect
    >Image Process Design



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center