How to make a message box pop up?

On my website I want when someone clicks a hyper link a message box appears instead of going to the page.
so I could have a SECRET page and then when they click it a message box pops up saying "Sorry this page is secret" or something like that.

You can use fancyzoom or image popup methods (using an image file with the text in it). This demo page has an example: Fancy Zoom & Image Popup.
Or you could use rollover methods like in this demo page: Mouse Rollover & Animated Gifs
Still another possibility is the show/hide text method: Show and Hide.
OT

Similar Messages

  • Please show me how to make a java box pop up and display information!

    Hey people, Im trying to design an organiser in java using netbeans for a project. Iv made the initial GUI which is a box that loads up and it has my logo on it and below that a lable saying Personal Information. It has a View button next to it (iv named the variable view1 and it is a JButton)
    Im finding it really difficult to do. What i would like is another box that pops up allowing the user to enter their name, address, date of birth, current school year and car registration, and store the data entered into a text file.
    If anyone could help me with the code i would be really greatful, it would also help if you could comment next to the important code to help me understand whats going on.
    I would really appreciate it guys. thanks

    some worthless changes, just so it would run on my system.
    import java.awt.GridLayout;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.PrintWriter;
    import javax.swing.JLabel;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    public class Foo
        //  class attributes..
        private String[] labels = new String[]
                "Name", "Address", "City", "State", "Zip Code", "Phone", "Birthdate"
        JTextField[] fields;
        public Foo()
            super();
            fields = new JTextField[labels.length];
        public String[] getInformation()
            JPanel panel = new JPanel();
            panel.setLayout(new GridLayout(0, 2, 5, 5));
            for (int i = 0; i < labels.length; i++)
                fields[i] = new JTextField(10);
                panel.add(new JLabel(labels));
    panel.add(fields[i]);
    // allow the user to fill in the fields
    if (JOptionPane.showConfirmDialog(null, panel) == JOptionPane.OK_OPTION)
    String[] returnStr = new String[fields.length];
    for (int i = 0; i < returnStr.length; i++)
    returnStr[i] = fields[i].getText();
    return returnStr;
    else
    return null;
    public void writeToFile(String[] info)
    PrintWriter pw = null;
    try
    pw = new PrintWriter(new FileOutputStream(new File("data.txt")));
    for (int i = 0; i < info.length; i++)
    pw.println(labels[i] + ": " + info[i]);
    catch (FileNotFoundException e)
    e.printStackTrace();
    finally
    if (pw != null) pw.close();
    public static void main(String[] args)
    Foo f = new Foo();
    String[] results = f.getInformation();
    if (results != null)
    f.writeToFile(results);

  • How to keep OI window in background with message box/pop up boxes on top.

    Hi
    I have a new requirement to add in OI .How to keep OI main window fixed in the background with message pop ups atop OI window.
    Even  with message box pop ups , i should not have the access to OI main window.To  make it more clear,when i change to some other application in my PC task bar (for eg:-MSWord) and then click back to OI main window ,i should see the message box on the top of OI main window . I should not  have the access to click OI main window and OI message box as two separate operation in the task bar.
    Please let me know where i need to make changes in my OI  codeset.
    Regards,
    Nand

    Hi Nand,
    In the Message Popup step settings, check Make Modal under Layout >> Dialog Options.  
    I hope this helps.
    Cheers,
    David Goldberg
    National Instruments
    Software R&D

  • Problems installing plug-ins (and even Adobe updates) to Photoshop CS5 Extended on a new Win7 64-bit laptop.Instead, a message box pops up on the CS5 screen saying "could not complete your request because it is not the right kind of document."

    Problems installing plug-ins to Photoshop CS5 Extended on a new Win7 64-bit laptop.  (Same CS5 and plug-ins installed OK several years ago on a Vista laptop.  Now I'm just trying to migrate everything over to the new laptop.) Even some Adobe updates won't install.  Instead, a message box pops up on the CS5 screen saying "could not complete your request because it is not the right kind of document."   Any solution?

    CS5's automatic update mechanism is broken, perhaps because it is no longer updated and can't cope with the newer ways of updating.
    So this means you will have make a list of the updates that failed, go here: Product updates
    and manually download/install from there.
    Gene

  • I'm trying to share to Media Browser a 20 minute still slide show with music and text. I have tried several times to save at 1080 HD, but just before it's finished, a message box pops up saying "File already open with write permission."  What's this mean?

    I'm trying to finalize/share to Media Browser a 20 minute still slide show with music and text. I'd like to finalize it 1080 hd and have tried several times, but just before it's finished, a message box pops up saying it can't be done because "File already open with with write permission."  What does this mean?  All files are closed; this iMovie project is the only thing open.  Does it mean one of the song files from iTunes? And should I just settle for saving it as a "large" file, which is what I'm trying right now?
    Thanks,
    Jamie

    Hi
    Error -49 opWrErr  File already open with write permission
    Trash the preference files while application is NOT Running.
    from Karsten Schlüter
    Some users notice on exporting larger projects from within iMovie that this operation is aborted with an 'error -49'
    This issue occours only on MacOs machines using 10.7x
    try switching-off the Local Mobile Backup
    in Terminal copy/paste
    sudo tmutil disablelocal
    Re-launch Mac
    See also this post
    https://discussions.apple.com/thread/4434104?tstart=0
    Yours Bengt W

  • How to make error message as warning message

    how to make error message as warning message? ie  i get error message hence cannot save the slaes order   i want to make that error message as warning so that i can save the sales order please help.

    Hi
    If a message is a custom message, then by changing the message type from E(Error) to W (warning)   we can convert the message type into error message. This is done with the help of development guy. A change in the code is needed.
    If it is a standard message, then it depends on whether we have teh access to change the message type. If access is there, then it is possible to change the message from Warning to Error. i.e. If we are capturing std SAP message in our code and displaying then we can change it, else if SAP message is displayed directly, we cant change it.
    So, to change it, capture the error message from SAP in some Zcode and then convert that message into a custom message of message type E.
    The whole change needs ABAP support.
    Try with tcode <b>OVA2</b> settings selecting for sales order or in SAPRO--SD-BF-Log of Incompletion Items
    Message was edited by:
            SHESAGIRI.G

  • Satellite Pro L500 - How can I prevent menu boxes popping up randomly

    How can I prevent menu boxes popping up randomly and the cursor failing randomly as well?
    It settles down after a while but can occur at any moment.

    Different menu boxes attach themselves to the cursor and I end up with multiple menu boxes of various kind and it's really easy to accidently perform one of the functions related to a menu. Once I involuntarily increased the size of all of the desktop icons.

  • How to make text messages pop up on screen?

    Hi...
    I used to have an iphone (sorry for swearing), and I used to love how text messages would pop up on the screen when the phone was in 'sleep' mode.
    Is there any way I can get my Z2 to do this?
    Thanks...

    Hi Sherratthead,
    Welcome to the community! Since you're new please be sure that you have checked out our Discussion guidelines.,
    You could also Try Handcent, this allows a POP up window that also acts as a Messenger window.
    https://play.google.com/store/apps/details?id=com.handcent.nextsms&hl=en
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • System wide modal message box pop-up from applet

    Hi,
    I am having an applet which is listening on a soket and has to pop-up a message box with the received data as and when it receives it.
    I have used JOptionPane.showMessageDialog() for this.
    Now, the requirement is the MsgBox should come up even if the user is working on another console/window. Btw, I am running the applet on windows-XP/2000 with JRE1.4.2. I have used null as the first parameter to the showMessageDialog function above, but its not popping up if I am workin in some other window.
    Anybody having ideas on how to do it, please reply.
    Thanks
    Sujit

    Pop up a Frame or JFrame showing the message. You can make it passably modal by having the applet nap while it's visible:
    JFrame msg = new JFrame( "Got Data!" );
    ...// add message
    msg.setVisible( true );
    // may not pop up instantly:
    while ( !msg.isVisible() ) pause( 10 );
    while ( msg.isVisible() ) pause( 50 ); // wait for user to close
    private static void pause( int millis ) {
       try { Thread.sleep( millis ); }
       catch ( InterruptedException e ) {}
    }

  • How to create a message box when click on Panel

    Dear All
    I would like to create a message box to show my data when I
    click or mouseOn the panel that generate automatically from
    arrayCollection and the Data that I would like to show in the
    message box is in that arrayCollection too.
    If you know how can I do for this thing Could please tell
    me!!
    this is my CODE for generate a list of panel BY
    arrayCollection
    <mx:List id="pa4" width="99" height="293"
    dataProvider="{sectorTemp1}">
    <mx:itemRenderer>
    <mx:Component>
    <mx:Panel width="100" height="30" title="{data.company}"
    backgroundColor="{data.indicatorColor}" />
    </mx:Component>
    </mx:itemRenderer>
    </mx:List>

    Sometimes the drivers do not give all the true functionality of the instrument.  I am assuming this pop up is possible, so if the driver doesn't offer the functionality you might have to go to the instruments full instruction set and find the right commands and make a driver for that command.
     For example, the driver for the small display might be 'upgradable' to give the pop up you are looking for.
    I saw some other posts ( as far back as 2007) on this instrument, so maybe there is already somthing like this on the board.
    Mark Ramsdale

  • Facing a very wierd situation - VBScript message box pop up

    Hello Guys,
    This is very weird scenario am facing. I have a program to run Launch.vbs which will prompt for Messagebox at end of the script. 
    I deployed the package to 3 machines (Windows 7) - To Device Collection
    Always in one machine only i get the Message Box and
    remaining 2 machines am not getting the Message box (the wscript.exe running in task manager hidden and no message)
    Tried so many times, but same issue with these 2 machines. (Am sure i have selected proper options in Program --> Properties because in one machine i always get the message box)
    Is that any machine policy preventing the message box to display ?? or anyother work around.
    or any client settings i need to change (though all machine have same client setting - Default Settings)
    Please assist, i need to deploy the package to production.
    Thanks,

    Sorry not getting you, //NOLOGO - prevents -banner/logo displaying at the execution time.
    But my requirement is to get the Messagebox during execution
    In my program i run only Launch.vbs earlier i tried with
    cscript.exe Launch.vbs
    But how same package i deployed to other machines, it not popping up a messagebox, it is running in taskbar no GUI.
    I with the command you suggested.
    My VBScript Content:
    strRoot = oFso.GetParentFolderName(Wscript.ScriptFullName)
    EXEcmd = Chr(34) & strRoot & "\setup.exe" & chr(34) & " " & "/configure" & " " & chr(34) & strRoot & "\install32ny.xml" & chr(34)
    WSHShell.Run EXEcmd, 0, True
    strSuccess_Msg = _
      "The installation of Office 365 Pro Plus was successful on your machine." & VbCrLf & VbCrLf & _
      "Please save your data, logoff and login to your machine and " & VbCrLf & VbCrLf & _
      "Launch Outlook 2013 to configure your profile" & VbCrLf & VbCrLf & _
      "Click OK to close"
    MsgBox strSuccess_Msg, 64, "Office 365 Pro Plus"

  • How to display a Message box

    Hi,
    i am using oracle forms 10g
    i need to dispaly a message box like VB.NET to user that displays messgae
    say "hello"
    how do i do it....whats the syntax or built in used ??
    plz help

    Rosario,
    If you use the message built-in, isn't the message
    displayed on the status line and you get a blank
    popup? Correct me if I am wrong.Sayeed ,
    If you write one and only one message, you are right it is displayed on the status line , but I wrote
    Message
    Message
    The second message only needs to be:
    Message(' ',no_acknowledge);
    The second message forces the first to pop up like an alert.
    Regards

  • How to display a message box in a UIX JSP page?

    I've a UIX JSP Application with BC4J developed with JDeveloper RC.
    The problem is that when the user mistakes in the insertion/updating, I'd like to help him displaying a message box or a modal dialog window.
    In particular, I've the following code:
    <%@ page errorPage="errorpage.jsp" contentType="text/html;charset=WINDOWS-1252"%>
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix" %>
    <%@ taglib uri="http://xmlns.oracle.com/uix/ui/bc4j" prefix="bc4juix" %>
    <%@ page import="oracle.jbo.JboException" %>
    <%@ page import="CdssPackage.*" %>
    <%-- Define Application Module and DataSource--%>
    <%-- Define Application Module and DataSource--%>
    <jbo:ApplicationModule configname="CdssPackage.CdssPackageModule.CdssPackageModuleLocal" id="app1" username="scott" password="tiger" releasemode="Stateful" />
    <%
    //Check the mandatory fields are not null
    if ((cod_comm.compareTo("")==0) || (nome_ruolo.compareTo("")==0)){
    throw new JboException(Errors.ERR_REQUIRED_FIELD);
    //Now, the errorpage.jsp is displayed, while I'd like to display a message box or a modal dialog window
    %>
    How can I do it?
    Thanks in advance.

    Michele-
    You can use javascript to send a message window in the http protocol.
    Hope this helps,
    Lynn
    Java Tools Team

  • How to make a dialog box for a user to choose a file from disk

    Hi there
    Is it possible to make a dialog box, for a photoshop user, to choose a txt file, to be process by my javascript ?
    I have a txt file with all the names and locations of psd files i want to process by photoshop. I have ex. 100 out of a folder with 250 images.
    If anyone have a shot "code sample" how to select a file - i will be happy.
    /T

    Here is an example of selecting a text file...
    var dlg=
    "dialog{text:'Script Interface',bounds:[100,100,500,220],"+
    "testFile:EditText{bounds:[10,40,310,60] , text:'' ,properties:{multiline:false,noecho:false,readonly:false}},"+
    "Browse:Button{bounds:[320,40,390,61] , text:'<<' },"+
    "statictext0:StaticText{bounds:[10,10,240,27] , text:'Please select Text File' ,properties:{scrolling:undefined,multiline:undefined}},"+
    "Process:Button{bounds:[10,80,190,101] , text:'Process' },"+
    "button2:Button{bounds:[210,80,390,101] , text:'Cancel' }};"
    var win = new Window(dlg,'test');
    win.center();
    win.testFile.enabled=false;
    win.Browse.onClick = function() {
    selectedFile = File.openDialog("Please select TEXT file.","TEXT File:*.txt");
      if(selectedFile != null) win.testFile.text =  decodeURI(selectedFile.fsName);
    win.Process.onClick = function() {
    if(win.testFile.text == '') {
      alert("No text file has been selected!");
      return;
    win.close(1);
    selectedFile.execute();
    win.show();

  • How to make the search box in 'mail' bigger

    HI all
    I use the mail programme in Lion and use a Mcabook pro, There is a search box in the upper right hand corner so you can search through your mails, I have accidently made it smaller and am looking to make the box bigger so I can see the full names of the results.
    I have looked in toolbars and in 'view' and cant fin anything, I have tried to clip and drag, but that does not work either, anyone have any ideas how to make it bigger again,
    Thanks

    Thank you Colin, I managed to delete some of the buttons thus the search bar became bigger, thanks for the inspiration

Maybe you are looking for

  • HP Laserjet Printer and Vista

    I bought a new HP color LaserJet Pro MFP M277dw yesterday.  I took it home and hooked it up and tried to run the setup disk on my HP laptop with Windows Vista.  The disk said it was not compatible with Vista.  The existing software on my computer I'v

  • Restricted KF

    Dear All, I need to create a report and req is like this: b.     Purchase Value (MTD)     c.     Purchase Value (YTD) d.     Purchase Value Lyear (MTD) e.     Purchase Value Lyear (YTD)  f.     Avg. Purchase Price  (Month)    Value / Qty g.     Avg.

  • Oracle OLE DB and command Parameters in VB6

    Hi, here's my problem : When i a VB6 command object ( ado ) this works fine with Oracle client 8i/9i, but with 10g it seems to truncate all my string parameters Here is my vb code : Public Function PRC_APPLICATIONSCENARIO _ ByRef p_vConnection As Var

  • How do i Know if someone Added Me?

    Hi guys, how are you doing?! i have a problem, everytime i open iChat, it seems like i am all alone, becuase i dont know who added me, infact, i dont even know how to go around with iChat at all. But it would be great if you guys added me and told me

  • Update delivery address in PO using BAPI BAPI_PO_CREATE1

    Hi, I want to update the delivery address of line item using BAPI BAPI_PO_CREATE1. I am creating address using BAPI BAPI_ADDRESSORG_SAVEREPLICA and I am sending the address number in the import parameter POADDRDELIVERY but it is not updating the deli