hassank1 Posted March 22, 2008 Share Posted March 22, 2008 in some sites (ex:facebook) some times when u try to do something u've got a message box ("are you sure you want to do that ? (ok/cancel) [with a nice style]... so how can I do something like that using php? Link to comment https://forums.phpfreaks.com/topic/97430-prompt-box-in-php/ Share on other sites More sharing options...
Lamez Posted March 23, 2008 Share Posted March 23, 2008 that is javascript. you can do <script>alert("hi");</script> that is only a ok box. Link to comment https://forums.phpfreaks.com/topic/97430-prompt-box-in-php/#findComment-498517 Share on other sites More sharing options...
cheechm Posted March 23, 2008 Share Posted March 23, 2008 That is a modalbox. You can do that sort of stuff with ajax/js using mootools or prototype. Google them. Link to comment https://forums.phpfreaks.com/topic/97430-prompt-box-in-php/#findComment-498544 Share on other sites More sharing options...
hassank1 Posted March 23, 2008 Author Share Posted March 23, 2008 yeah thx..I've found the library ! however when I was doing this simple example <a href="frame_send-link.html" title="Simple form" onclick=" Modalbox.show(this.href, {title: this.title, width: 600}); return false; "> Send link to a friend</a> the modalbox appears..then disappears !! any idea why that's happening? Link to comment https://forums.phpfreaks.com/topic/97430-prompt-box-in-php/#findComment-498724 Share on other sites More sharing options...
hassank1 Posted March 23, 2008 Author Share Posted March 23, 2008 nevermind it worked the problem was that I didn't create a page named (frame_send-link.html) Link to comment https://forums.phpfreaks.com/topic/97430-prompt-box-in-php/#findComment-498726 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.