Best way to have a button click create a pop-up window with link URL?

Hi everyone,
What is the best way to set a button's click to open a pop-up browser window and take the user to a specific link?
I did a bit of research and it looks like there are many methods and I'm not sure if the posts were older, but many mention that some of the methods are inconsistent with different browsers + get caught in pop-up blockers...
Different methods:
navigationToURL()
window.open()
ExternalInterface.call()
Many thanks,
DK

Just to clarify a bit: The observer pattern is not really used for "simple binding". I mean, if your application is really small, I can't say that it would hurt to implement an observer pattern just that it might be more of an overkill ( but not completely an overkill ). If the stuff you are trying to do is really simple then using simple listeners and dispatchers is fine ( even in more complex situations, events come in really handy ).
So, don't overkill if the application is not aimed to evolve/change and be as flexible as possible. Design patterns are great when they are used correctly and in the correct situation. Just because they solve certain problems well, that doesn't mean that all applications need the complexity and abstraction many patterns bring ( you could build a simple Hello World! app in tons of classes with N patterns but what would be the point? ).
I hope you understand what I mean. Good luck.

Similar Messages

  • How to create a pop up window with text information?

    Hi experts,
    I am a newbie in LC and I have created a form to be sent to the vendors by our buyers.  Everything seems fine except the Accounting Manager would like to include our Financial Details in the form.  I would like to simply create a pop up window with the information which will be activated by pressing a button.  I have tried to create an invisible button and a visible button to achieve this but didn't succeed. 
    p.s. I have no javascript background but slowly learning.  I would appreciate if anyone can assist me to complete the task.
    Thanks a million.

    Hi Mdjco,
    Thanks for replying.  What I need to accomplish is to have another page of information with all the financial details on the pop up window and the vendor has a choice to print it out or not.  After the form is filled out, it is to be sent back to our buyers.  So instead of me inserting a 2nd page with the information, I would like to hide it unless someone presses a button to show it.
    I have found something like making 2 buttons, one is invisible with all the information on it and the other one "visible" to activate the invisble button.  Didn't work at all.
    Also another question is after the vendor insert the digital signature, it automatically asked to save (which I found out why from help) and then it opens up the email and sends the form as XML.  I will need it to send as PDF, possible??
    Much appreciated.

  • How to create a pop-up window with a larger image

    Again, I'm looking to do something very simple and can't figure it out. I want users to be able to hover over/click on an image and there pops up a larger version of the image, much like you see on online catalogs and shopping sites. I've looked into Lightbox and jQuery but don't understand how to incorporate the code into my pages. Is there a simpler way using DW CS4?
    Thanks,
    Gail

    Select the thumbnail image and link it to the larger image file.
    Use DW Behaviors Panel and hit the plus + sign.
    Choose Open Browser Window.  This will invoke another panel for adjusting the size and other attributes of your pop-up window.
    Hit OK.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • How is the best way to have Itunes notice your app or drive traffic to the app store?

    How is the best way to have Itunes notice your app or drive traffic to the app store? What are the best ways based on experiance that works to drive traffic to your app as a paid game for .99?

    Write an app people want to buy and rate highly.

  • What is the best way to have access to OSX and OS9 from the same machine?

    What is the best way to have access to OSX and OS9 from the same machine?
    Do I need to partition the hard drive? Installed both Tiger and OS 9 on the G5 and it is having problems starting up properly.
    G5   Mac OS X (10.4)  

    And here is the prove for Edwin's message: Macintosh: Some Computers Only Start Up in Mac OS X

  • What is the best way to have Mac setup for sync-ing 2 calendars?  Any way to change? When we 1st got our Macbook we unknowingly set it up wrong--as 2 separate users, with separate everything. Good for contacts and email, bad for calendar, photos, music.

    What is the best way to have Mac setup for sync-ing 2 calendars?  Any way to change?  When we first got our Macbook we unknowingly set it up as 2 separate users, with separate everything.  Now I have an iphone and I want to sync calendars but not contacts or email.  Any direction you could give would help! thx

    Anyone...anyone? Bueller...Bueller?

  • Best way to have only one  instance of an object in web application.

    Hello,
    I defined a class that provides services to my web application: subscribes user, check if user already subscrubed etc. The objects don't need to save any session information. So it is like a Stateless Session Bean (from what I've read about Session beans).
    The webapp is small and I don't want to use EJBs.
    What would be the best way to have one instance of the above class in my webapp ?
    Would making the class static be a good method ? Using a factory ?
    Is there a way to put in web.xml something that asks the container to instantiate an object that is not a servlet and place it in Application scope, so that I cann retrieve it whenever required in my app ?
    Other suggestions ?
    Thank you,
    Vlad.

    Hi
    The best way to have only one instance is use the singleton pattern. The idea is : the class has a private
    contructor, a public static method that returns an instance of this object and a static member that is false if not any instance and true if there si an instance.
    To obtain one instance you can do some like
    MyObject ob=MyObject.getIntance();
    this method inspect the static member and returns null if true. If false set to true and return the object
    via the private constructor.
    You can lear more at book of Gramma .... (gang of four)
    Hope this helps

  • I would like to create a pop-up window appear from Labview Interface. In this window, I will have a slide control and an image taken from a camera. The main VI have to run while pop-up window is open. How can I do ?

    When I pushed a button, this pop-up window has to appear. There will be a slide control and a picture from a camera in this window. Is it possible to make appear this windows while main VI Interface continue to run ? How can I do this ? Thank you for your answers.
    Cyril.

    Here you go. This is simple example. Maybe not the best way, I am just
    beginner in LV and still not comfortable with data flow that much. I prefer
    events, so I would change this to use Event Structures.
    When you click on OK button on SliderMain, it opens Slider.vi. Now both
    windows are open and you can interact with both. Now if you click on OK
    again with Slider.vi open, you run into problems. Only thing I did was
    change VI properties of slider.vi, mainly window appearance.
    vishi
    "Cy" wrote in message
    news:[email protected]..
    > I would like to create a pop-up window appear from Labview Interface.
    > In this window, I will have a slide control and an image taken from a
    > camera. The main VI hav
    e to run while pop-up window is open. How can I
    > do ?
    >
    > When I pushed a button, this pop-up window has to appear. There will
    > be a slide control and a picture from a camera in this window. Is it
    > possible to make appear this windows while main VI Interface continue
    > to run ? How can I do this ? Thank you for your answers.
    > Cyril.
    [Attachment SliderMain.vi, see below]
    [Attachment Slider.vi, see below]
    Attachments:
    SliderMain.vi ‏16 KB
    Slider.vi ‏11 KB

  • Is there a way to  have the iPad 2 "read" text from iBooks as with web sites or pages?

    is there a way to  have the iPad 2 "read" text from iBooks as with web sites or pages? A different App perhaps?

    Isn't that you asking how to get it (undefined) back?
    If you never had Pages '09, you can buy it from Amazon very cheaply:
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=432&sid=f68e84cd2ec6 123bd2ed93806c7e7fb6&mforum=iworktipsntrick
    Peter

  • What is the best way to export a .csv/.txt file to a MS Windows shared folder via a scheduled job?

    What is the best way to export a .csv/.txt file to a MS Windows shared folder, when the export process is a scheduled job?

    You can't directly, as scheduled jobs can only export to server-side data stores, which can only write to the landing area. You'll need to use an external script (e.g. batch file) to move the file from the landingarea after export. You can use an external task in the scheduled job to invoke the script.
    regards,
    Nick

  • Creating a "Pop Up" Window/Box in Sharepoint 2010

    Hi, 
    I have a CEWP with several image buttons in it. When a user clicks on the images, a "pop up" window should appear which will have several different links for the user to choose from. So when the user selects the the link he/she wants to go to,
    the user will then be directed towards that page/list/form. 
    How can i create a "pop up" window/box for the 1st requirement? 
    Any assistance would be appreciated.
    Thanks, Aarti

    Hi ,
    Pls check if it can helps you
    http://social.technet.microsoft.com/Forums/office/en-US/a2fec044-669f-45a2-b979-7ec324831a8b/how-to-create-a-popup-message-box-in-sharepoint-2013-?forum=sharepointdevelopment
    http://social.technet.microsoft.com/Forums/office/en-US/9b5a0fa5-0c09-4753-b276-8e8e42c21542/create-pop-up-window-from-a-listview-in-sharepoint-2013?forum=sharepointdevelopment
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • How To: create legaleze pop up window in pdf form?

    Hello all. I would like to incorporate a pop up window with my company's legaleze for authorization to use our images in our customers marketing materials. The purpose of the legaleze is to inform the customers our policy on using our images in their marketing materials. The pop up would obviously contain two radio buttons (1. I Agree AND 2. I Disagree) Where if they agree they can continue to fill out the form and request images. But if they disagree they will not be allowed to fill out the form and submit it.
    The form will be distributed via email, and be downloaded from our website.
    The most important aspect of this is that the pop up window with the legaleze function properly. The secondary aspect of the form not being able to be filled out if they disagree is not as  important. Obviously if I see that they disagree, I will not release the images.
    Thanks for your help!

    Adding layers to a PDF is a new feature in version 9 (you can work with layers in version 8, but have to add them in InDesign).
    In 9, add the layers Navigation Panel (View>Navigation Panels>...), then click the gear symbol and choose Import as Layer, and select your PDF with the legal agreement.
    You can control the layer visibility with a button action (one action is "set layer visibility"), and JavaScript can be used to show or hide buttons. So your accept button would have two actions, one layer visibility action and one execute JavaScript action that controls field visibility. A field called Name is controlled by changing that button's display property (hidden/visible):
    var a = this.getField("Name");
    a.display = a.hidden;
    etc.
    For more JavaScript info, check here.

  • Create a pop up windows wth the javacript

    hi there,
    i got problem how to make ur own pop up windows with OK and CANCEL button with javascript inside my jsp page since i got already find it through all the internet and still hard to find it.
    the popup windows should work like this:
    if OK
    move to another page
    else CANCEL
    remain to this page (do nothing)
    anyone could help me with this problem. thanks so much.

    May this can solve your problem...
    if u have already confuse try the cheat one :)
    window.open("your name page of JSP");
    then in the JSP add button and now u can make a way form this button

  • Pop up window with yes & no push buttons

    hi
    i want to display a pop up window with yes & no push buttons
    can anyone help for this

    Hi,
    call function POPUP_TO_CONFIRM
    exporting
    TITLEBAR = pop_up' (for pop-up header)
    TEXT_QUESTION = 'do you want to save data'
    TEXT_BUTTON_1 = 'Yes'
    ICON_BUTTON_1 = ' '
    TEXT_BUTTON_2 = 'No'
    ICON_BUTTON_2 = ' '
    DEFAULT_BUTTON = '1'
    DISPLAY_CANCEL_BUTTON = ' '
    USERDEFINED_F1_HELP = ' '
    START_COLUMN = 25
    START_ROW = 6
    POPUP_TYPE = ' '
    IV_QUICKINFO_BUTTON_1 = ' '
    IV_QUICKINFO_BUTTON_2 = ' '
    importing
    ANSWER = ANS
    OR.
    Use POPUP_TO_DECIDE.
    call function 'POPUP_TO_DECIDE'
           exporting
                defaultoption  = '1'
                textline1      = text1
                textline2      = ' '
                textline3      = text-202
                text_option1   = 'YES'
                text_option2   = 'NO'
                titel          = text-114
                start_column   = 15
                start_row      = 6
                cancel_display = ' '
           importing
                answer         = zanswer.
    hope this helps.
    plz take a look on this function modules also:
    POPUP_TO_CONFIRM_LOSS_OF_DATA Create a dialog box in which you make a question whether the user wishes to perform a processing step with loss of data.
    POPUP_TO_CONFIRM_STEP Create a dialog box in which you make a question whether the user wishes to perform the step.
    POPUP_TO_CONFIRM_WITH_MESSAGE Create a dialog box in which you inform the user about a specific decision point during an action.
    POPUP_TO_CONFIRM_WITH_VALUE Create a dialog box in which you make a question whether the user wishes to perform a processing step with a particular object.
    POPUP_TO_DECIDE Provide user with several choices as radio buttons
    POPUP_TO_DECIDE_WITH_MESSAGE Create a dialog box in which you inform the user about a specific decision point via a diagnosis text.
    POPUP_TO_DISPLAY_TEXT Create a dialog box in which you display a two line message
    thanx,
    dhanashri.
    Edited by: Dhanashri Pawar on Aug 19, 2008 2:20 PM
    Edited by: Dhanashri Pawar on Aug 19, 2008 2:25 PM
    Edited by: Dhanashri Pawar on Aug 19, 2008 2:26 PM

  • I have 2 copies of Firefox open (two different windows with lots of tabs), if I reboot can I restore both sessions?

    I have 2 copies of Firefox open (two different windows with lots of tabs), if I reboot can I restore both sessions? I am familiar with clicking history/ restore previous session, but don't want to reboot to let windows update to do it's thing unless I can restore both sessions.

    If they are running different profiles, then yes.

Maybe you are looking for