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? Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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? Quote Link to comment 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) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.