girlzz Posted July 29, 2008 Share Posted July 29, 2008 help me please.. how to make 2 popup menu in one button??? let say if there is a duplicate entry,then click the save button then display popup menu warn that entry already exist.. if not, popup menu again appear for save the entry.. thanks.. Quote Link to comment https://forums.phpfreaks.com/topic/117117-solved-alert-message-using-java/ Share on other sites More sharing options...
corbin Posted July 29, 2008 Share Posted July 29, 2008 No offense, but look into the basics of JavaScript. First off, Java != JavaScript. if(<dup entry>) { //blah } else { //blah } No idea how you're checking for duplicate entries. Also, you'll want to look into alert(), and maybe confirm(). Quote Link to comment https://forums.phpfreaks.com/topic/117117-solved-alert-message-using-java/#findComment-602404 Share on other sites More sharing options...
girlzz Posted July 29, 2008 Author Share Posted July 29, 2008 hai sir can you explain more detail how to do 2 popup message box in one button?? newbie in java.. thanks Quote Link to comment https://forums.phpfreaks.com/topic/117117-solved-alert-message-using-java/#findComment-602546 Share on other sites More sharing options...
RichardRotterdam Posted July 29, 2008 Share Posted July 29, 2008 like corbin said Java != JavaScript. which means Java is a complete different thing then javascript i suggest you start with opening one popup <script> function popup(){ //open a popup } </script> <button onclick="popup()">open popup</button> the function does nothing yet thats up to you Quote Link to comment https://forums.phpfreaks.com/topic/117117-solved-alert-message-using-java/#findComment-602570 Share on other sites More sharing options...
girlzz Posted July 29, 2008 Author Share Posted July 29, 2008 erk confuse! still can't understand... :'( Quote Link to comment https://forums.phpfreaks.com/topic/117117-solved-alert-message-using-java/#findComment-602636 Share on other sites More sharing options...
KevinM1 Posted July 29, 2008 Share Posted July 29, 2008 erk confuse! still can't understand... :'( First, like everyone else has said, Java and JavaScript are not the same thing. Other than their names, the two have nothing in common. Java is an object oriented programming language whose programs run on a virtual machine. It was created by Sun Microsystems. JavaScript is a scripting language which runs in a web browser. It was created by Netscape. Continuing to refer to JavaScript as Java will cause people to point and laugh. Second, do you have any idea as to what you're doing. I mean, we can all write an onclick callback function to open up popup windows, and show you the basic code (like two people have already done), but that's all worthless if you don't actually understand what it is you're looking at. Quote Link to comment https://forums.phpfreaks.com/topic/117117-solved-alert-message-using-java/#findComment-602704 Share on other sites More sharing options...
RichardRotterdam Posted July 29, 2008 Share Posted July 29, 2008 like someone has in his/her signature (dunno who) the quality of a response depends on the quality of the question. What is it you dont understand aks your self these questions and then ask them on the forum Quote Link to comment https://forums.phpfreaks.com/topic/117117-solved-alert-message-using-java/#findComment-602727 Share on other sites More sharing options...
girlzz Posted July 30, 2008 Author Share Posted July 30, 2008 oh ok.... thanks.. Quote Link to comment https://forums.phpfreaks.com/topic/117117-solved-alert-message-using-java/#findComment-603201 Share on other sites More sharing options...
corbin Posted July 30, 2008 Share Posted July 30, 2008 hai sir can you explain more detail how to do 2 popup message box in one button?? newbie in java.. thanks Well if alert() does 1 popup, what do you think would do 2 popups? 2 alert()s! <button value="Hi!" onclick="alert('Hi'); alert('Hi');" /> Quote Link to comment https://forums.phpfreaks.com/topic/117117-solved-alert-message-using-java/#findComment-603285 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.