Re: Re: Some kind of Popup

From: Date: Sat, 22 Nov 2008 20:23:37 +0000
Subject: Re: Re: Some kind of Popup
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-283685@lists.php.net to get a copy of this message
> One issue is I don't want to leave the space available on my regular web > page and would like to try not to overwrite something there - I'd rather > have a separate window of some sort that sort of floats over the web page. Well, since Javascript does the Job anyways you don't have to load it with the page when doing the div method. You would only need this little addition to your css .. <style type="text/css"> .div_win { position: absolute; width: 400px; top: 100px; left: 10%; visibility: hidden; } </style> When user initializes the request by clicking a link <script type='text/javascript'> var div_window = document.createElement('div'); div_window.setAttribute('class', 'div_win'); div_window.className = 'div_win'; document.body.appendChild(div_window); </script> Then you do some AJAX or JSON or whatever and apply it to the div. You can also move the div around doing it somehow like this ... http://www.quirksmode.org/js/dragdrop.html Still, opening up a new window might be the simple solution after all lol.

« previous php.general (#283685) next »