[PHP] Re: what trick is this? How to do it?
http://xsojix.imeem.com/music/1zyLl7y9/lost_my_music/ How did he/she do it? I meant the modal login window... I just found that linux.com is using the same trick. :) -- @~@ Might, Courage, Vision, SINCERITY. / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\ (Xubuntu 7.04) Linux 2.6.22.1 ^ ^ 20:03:01 up 1 day 22:07 0 users load average: 0.00 0.01 0.00 news://news.3home.net news://news.hkpcug.org news://news.newsgroup.com.hk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: what trick is this? How to do it?
View the source and trace through the javascript. Looks like it has to do with: function openLogin() Which calls: dojo.require(dojo.widget.Dialog); and.. floatingWindow = dojo.widget.createWidget(Dialog, properties, node); and.. floatingWindow.setContent(iframe (bunch of stuff)/iframe); Don't have time right now, but I'd dig deeper into dojo.widget.Dialog (in this specific case.. don't know about Linux.com). -TG = = = Original message = = = http://xsojix.imeem.com/music/1zyLl7y9/lost_my_music/ How did he/she do it? I meant the modal login window... I just found that linux.com is using the same trick. :) -- @~@ Might, Courage, Vision, SINCERITY. / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\ (Xubuntu 7.04) Linux 2.6.22.1 ^ ^ 20:03:01 up 1 day 22:07 0 users load average: 0.00 0.01 0.00 news://news.3home.net news://news.hkpcug.org news://news.newsgroup.com.hk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ___ Sent by ePrompter, the premier email notification software. Free download at http://www.ePrompter.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: what trick is this? How to do it?
On 7/13/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: View the source and trace through the javascript. Looks like it has to do with: function openLogin() Which calls: dojo.require(dojo.widget.Dialog); and.. floatingWindow = dojo.widget.createWidget(Dialog, properties, node); and.. floatingWindow.setContent(iframe (bunch of stuff)/iframe); Don't have time right now, but I'd dig deeper into dojo.widget.Dialog (in this specific case.. don't know about Linux.com). -TG = = = Original message = = = http://xsojix.imeem.com/music/1zyLl7y9/lost_my_music/ How did he/she do it? I meant the modal login window... I just found that linux.com is using the same trick. :) -- @~@ Might, Courage, Vision, SINCERITY. / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\ (Xubuntu 7.04) Linux 2.6.22.1 ^ ^ 20:03:01 up 1 day 22:07 0 users load average: 0.00 0.01 0.00 news://news.3home.net news://news.hkpcug.org news://news.newsgroup.com.hk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ___ Sent by ePrompter, the premier email notification software. Free download at http://www.ePrompter.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php It looks nice and all, but it doesn't work. I'm still able to click any link I want to, play the music, et cetera, without logging in. Plus, simply stopping the page before it loads all the way blocks the dimming of the background, disabling of page properties, and the popup of the login window. Not sure if it's the same for everyone, but it is for me here at work (Mandriva Linux 2006.0 Community, KDE 3.4, Firefox 2.0.0.4). -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: what trick is this? How to do it?
Man-wai Chang wrote: I asked here because I believe good PHP programmers are usually well-versed in client-side stuffs. :) That comment reeks of NLP :) clive -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: what trick is this? How to do it?
Man-wai Chang wrote: http://xsojix.imeem.com/music/1zyLl7y9/lost_my_music/ How did he/she do it? I meant the modal login window... Just simple Javascript stuff. Just create a large div block that is absolutely positioned over the top of everything and spans the whole width/height of the page. The either use alpha levels or a small 2x2 gif/png image that produces the greyed out effect 0X X0 Then draw your login in the middle of your div. Not PHP, but it does look nice :) Col -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: what trick is this? How to do it?
On 7/7/07, Colin Guthrie [EMAIL PROTECTED] wrote: Man-wai Chang wrote: http://xsojix.imeem.com/music/1zyLl7y9/lost_my_music/ How did he/she do it? I meant the modal login window... Just simple Javascript stuff. Just create a large div block that is absolutely positioned over the top of everything and spans the whole width/height of the page. The either use alpha levels or a small 2x2 gif/png image that produces the greyed out effect 0X X0 Then draw your login in the middle of your div. Not PHP, but it does look nice :) Col If you also want users to login first, don't do it like this ;) I'm listening to the song now without logging in, just running this in the URL bar: javascript:floatingWindow.hide(); and the login window is gone :) Tijnrma -- Vote for PHP Color Coding in Gmail! - http://gpcc.tijnema.info -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: what trick is this? How to do it?
I'm listening to the song now without logging in, just running this in the URL bar: javascript:floatingWindow.hide(); and the login window is gone :) So is there a proper way to create a modal window inside a browser? -- @~@ Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\ (Xubuntu 7.04) Linux 2.6.21.6 ^ ^ 18:44:06 up 5 min 0 users load average: 1.54 1.07 0.47 news://news.3home.net news://news.hkpcug.org news://news.newsgroup.com.hk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: what trick is this? How to do it?
Man-wai Chang wrote: I'm listening to the song now without logging in, just running this in the URL bar: javascript:floatingWindow.hide(); and the login window is gone :) So is there a proper way to create a modal window inside a browser? There is no proper way. You have various tools to make one with, namely pretty much all client-side scripting languages that work in browsers. There are no standards dictating how it should be done, it's all left up to the developer, there are just 'options' :) On a sidenote, this has nothing whatsoever to do with PHP, it's presentation in a client-browser we're looking at. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: what trick is this? How to do it?
On a sidenote, this has nothing whatsoever to do with PHP, it's presentation in a client-browser we're looking at. I asked here because I believe good PHP programmers are usually well-versed in client-side stuffs. :) -- @~@ Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\ (Xubuntu 7.04) Linux 2.6.21.6 ^ ^ 20:58:01 up 2:19 0 users load average: 1.01 1.02 1.00 news://news.3home.net news://news.hkpcug.org news://news.newsgroup.com.hk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php