Let me explain what I want to do instead of asking roundabout questions. For the new JavaRanch forum, on the "reply" page I want to prompt the user for a URL and a name for the URL when they press the "url" button - similar to what we do in UBB. If the user presses "cancel" on the first prompt then I don't want to pop up the second prompt. UBB does it by asking for the URL first. If the user doesn't enter a URL then it assumes that it doesn't need the second prompt. Is this the only way to do this? Is there any difference between not entering anything on a prompt and hitting the "cancel" button? I am getting the impression that the "cancel" button is exaclty the same as "OK' with no data.
Joined: Nov 08, 2001
above is the ubb code....how they get around the cancel button is with the ==null with the return....that cancels out the function.... I am not sure what you are asking.....
I tried to run this code. When I press Cancel, a null is returned and when I press Ok, the entered value is returned. So, you can check for a null. [ October 06, 2003: Message edited by: Mani Ram ]
Joined: May 05, 2000