Duplicate Action Events when target="_blank"

Hi everyone.
I have a hyperlink that has an action attached, say hyperlink_action. I have set target="_blank" for this hyperlink because I want the page to be pulled up in a different window. When I click on the hyperlink, the event handler (hyperlink_action) is called and the navigation.xml tells the right page to display in a new window! Everything is good so far. However, when I go back to the parent window and click on any other button or link (ANY ONE), then the hyperlink_action handler is called first followed by the event handler for the button or link I clicked on. This only happens the first time I click on the parent page again. Also, the target is still set to blank for anything that is clicked first.  Why is the event handler (hyperlinkaction) still in the queue to be processed after it is already processed and opened in a new window. Note: When I don't open the page in a new window, but the same window and go back, all the buttons and links work correctly. Any information would be greatly appreciated!
Wojo

Has anyone else seen this behavior with their apps that pop up a new window from a hyperlink? Does anyone know of a work around? Thanks for any information.

Similar Messages

  • With FF15 on Win7, when I click a Google Reader link (that open in a new tab when clicked, target="_blank" style), the new tab opens for a second, then closes.

    The tab will not crash if I right-click, open in new tab, or middle click. Other sites with target="_blank" seem to be ok with left click (Google+ links for example). But Google Reader links seem to be completely broken.

    Seems to be an adblock plus issue in my case. When I disable adblock it never happens. When I enable it this occurs on most links on google, twitter or reddit. Somehow seems them as pop ups I guess. Probably will have to fiddle with adblock plus.

  • Row action event on data table does not occur when rows added dynamically

    Row action event on data table does not occur (only refreshes the page) when the rows in the data table are added dynamically at run time using button click and java bean.
    please tell me a way to catch the row click event when adding rows dynamically to data table. i m using RAD 6.0 to develop Faces jsp pages.
    thanks
    amit

    i got the answer

  • I get MANY duplicate iCal events on my iOS6 iPhone when I sync with iTunes--no iCloud setup!

    I get MANY duplicate iCal events on my iOS6 iPhone when I sync with iTunes. I do not have iCloud setup to sync at all. I do not have iCloud Calendars in iCal on my Mac (10.6.8), just On My Mac. Any thoughts?

    Hi,
    Try resetting your Sync Services. See here to reset your sync services.
    Let us know how it goes.
    Best wishes
    John M

  • Is it possible to generate a user event when shared variable value change on RT target?

    Hi,
        I wonder if it is possible to generate a user event when a network published shared variable value change?
        Thanks a lot!
        Regards,
        Tom

    Tom,
    I understand not wanting to waster resources on polling but I am not aware that LabVIEW can automatically generate an event on a SV change.
    Maybe a better solution...
    You could implement lower level TCP communication (i.e. have a look at STM - simple messaging protocol) for passing data betweeen RT and PC (instead of using a SV).  You could send a generic command (boolean trigger maybe?) from your RT system when the value of whatever it is the SV is storing has changed.  You can avoid polling on the non-RT system this way.
    Dan

  • Problem using target="_blank" in hbj:link

    Hello,
    we are having some problems when using "link" with the next piece of code:
    <hbj:link id="<%=objAccountStatus.getAccountNo()%>" text="View Inventory" tooltip="Download as an Excel Spreadsheet document" reference="" onClick = "onInventoryLinkClick" target = "_blank">Download Excel</hbj:link>
    The target is set to _blank but the Excel generated by using the link is opened in the same page. This problem occurs by using the Internet Explorer; on the other hand, this works fine in Firefox (in this case is opened in a blank screnn.
    Thanks in advance.
    Regards,
    Raúl.

    Thanks for you reply Pankaj, but the version I am using is IE 6.0.29.
    I have fixed the problem by modifying some code used in the event handled in the JSPDynPage becuase we were doing some things in the HTTP header that could have destroy the effect of the "target" parameter in the link.
    It was solved by other way.
    Thanks a lot for the help.
    Regards,
    Raúl.
    Message was edited by:
            Raul Rodriguez

  • Target="_blank" not working........plz help me..

    My requirement is to open a new (child) window when the user pushes
    a button on a (parent) window. I need to create a new instance
    of a bean, populate it, and then pass it to the child window for
    display.
    i tried this way
    To open JSP in new window just use target directive e.g.:
    <form action=myjsp.jsp method=post target=_blank>
    its not working...
    One additional question if I may:
    I don't want to open a new window for every action a user could
    take on the screen. Sometimes, I just want to post to the
    servlet and forward the jsp to the one window that is open.
    If I put the TARGET directive in, wouldn't I always open a new
    window?
    Is this still the best way to do this given this additional
    requirement? If yes, how do I alter it so that I don't always
    go to a new window?
    Thanks!!!!!!

    Thanks for the response...
    can i use some thing like this.....
    i mean document.form.action in window.open
    something like below...
    sb.append("input type=\"submit\"
    =\"submit\" Name="Submit"
    onClick="window.open(document.MyForm.action='/phmuni/fo
    m/combineDockets.jsp' , "myWindow");" value="Print " >
    ");YOu don't have to use action if you just want to go to another page. If you do need to do something before you open the new window, you may create a function (Javascript). Do some things (like the action) and then open a new window within that function. Then within your onClick tag, just call that function.

  • Temparally remove rows from a ADF table by action event of a jsf page.

    Hello Developers,
    I needed to temporally remove rows of a ADF table when execute action event of corresponding page.
    So in this case my task can describe by following steps,
    (1). I created a ADF table using <af:table> on a jsf page.
    (2). The data populated using a VO.
    (3). Several radio buttons added to the page for temporally remove rows from the table.
    This means one radio button check, it responsible to temporally remove rows which contain empty cell values of a identified column.
    If I check another radio button it should temporally remove identified data included rows but above removed (empty cell included rows) rows should appear in this event
    My ultimate target is temporally remove rows of a table & re call again removed rows another event without again & again query from BC.
    Pleas advice me to archive this task very sealy?
    (Are there have a way to do this using EL or coding in Manage bean ?)
    Thanks in advance..!

    Hi,
    the DCIterator gives you an option to iterate over the fetched rows (the ones you see in the table). You can try call removeAndRetain() on these rows. This will not remove or delete rows but allows you to insert these rows back to the collection.
    JavaDocs:
    * Removes the row from the collection and then retain it for insertion
    * into another location.
    * <p>
    * This method differs from <code>{@link #remove()}</code> in that
    * it just removes the row from the collection. It does not
    * remove the underlying Entity row(s) or database row(s).
    * <p>
    * This method also differs from <code>{@link #removeFromCollection()}</code>
    * in that after the row is removed from the collection, it can be inserted
    * back into the collection at another location.
    void removeAndRetain();
    Frank

  • How to set fire action event for particular rows in a table

    HI All,
    I have a requirement in which I want to set fire action event for particular rows in a table based on some condition.
    The table has columns like fullname,employee id etc.
    So i want to set fire action event for particulars rows only which will saisfy some condition.

    Atanu,
    Your approach(setting fire action for few rows) seems not possible. Better to go ahead with workaround.
    Do you want this functionality in processRequest(while page loading) or processFromRequest(on some event) method ? Give more explanation regd. your requirement ?
    In either case loop through the rows and when your condition is met write the action to be performed in controller.
    Regards,
    Anand

  • Duplicate / multiple events in iCal on iPhone

    Just lately I get duplicate and even multiple (up to seven or eight) repeats of various events when I sync my iPhone with my MacBook Pro. I do not use the iCloud feature on the iPhone, and don't have it on the Mac -- in System Prefs and on the very top bar of the screen it still has icons for Mobile Me. I currently have OS 10.6.8 and iOS 5.0. I sync only with a USB cable, no Clouds, no Wi-Fi, no BlueTooth. Have been trying to find an answer here, but they all revolve around Clooud/Mobile Me being the culprit. Having eliminated those sources of error, I think it is a problem between the Mac OS and the iPhone iOS.

    Welcome to the Apple Community.
    Unfortunately, I don't believe that's possible.

  • Hyperlinks (target="_blank") and buttons on same page problem.

    Another interesting problem.
    I have a hyperlink that is set to open in a new window (target='_blank') and execute the 'hyperlink1_action' on the server.
    The framework executes the javascript function 'hyperlink_submit' (in the formElements.js library) when a hyperlink is clicked. This function sets the 'target' property on the form and also creates a hidden field that identifies the hyperlink that was clicked.
    This works fine and a new window open up with the required data.
    However, now if I click a BUTTON on the ORIGINAL page, a NEW WINDOW pops up and the WRONG DATA is displayed due to the form target setting and hidden field that were created by the 'hyperlink_submit' function called prevously - ie. the changes to the form made by the 'hyperlink_submit' function are NOT rolledback/overwritten when the button is clicked. How annoying!!!
    Am I doing something completely wrong or what?
    Anyway, I feel better now. Have a nice day!
    Message was edited by:
    thepigs2
    OK. In the absence of any replies, I've come up with this superhack that I put at the end of the page which fixes the form...
    <f:verbatim>
    <script>
    var f = document.getElementById('form1');
    f.oldsubmit = f.submit;
    f.submit=function() { setTimeout(function(){resetForm(f);},250);return f.oldsubmit(); }
    function resetForm(f)
    f.target='';
    for( var i=f.childNodes.length-1; i >=0; i-- ){
    var n = f.childNodes;
    if (n && n.name)
    if (n.name.indexOf('_submittedField')>-1)
    f.removeChild(n);
    </script>
    </f:verbatim>

    Guillaume,
    The built-in tabular form feature only supports one tabular form on each page. You'll have to put the two forms on separate pages. Or use simple reports as the detail reports with edit links to an edit form page.
    Regards,
    Marc

  • In Firefox 5 links with target="_blank" don't open in new window or tab. Is there a way to make them do that?

    I've search some info about this and it seems like there's a lot of people that are annoyed by links opening in new window/tab and that the 'target="_blank"' is not valid in strict XHTML. I'm guessing this could be reasons why Firefox 5 ignores the 'target="_blank"'. But in some cases you really want to open a new widow, in my case I'm using a flash application and want to open links in new windows from there and then the ctrl-click doesn't work. When opening the link in the same page and then go back the application is reloaded and it's state is lost. Probably should try to find out if there's some other way to open links from a flash application, but I'm wondering if there's a way to make Firefox 5 open 'target="_blank"' links in new tabs.

    I don't know how to delete my question, anyway I'm not having this problem anymore. In our organisation the IT department deploy Firefox updates with certain settings and limitations, in the tap-options the checkbox for opening new windows in new tabs where checked but disabled. They made some changes to make this checkbox enabled and now it works as expected if it's check new windows open i new tabs and if it's not in new windows. They never opens in the same tab as they did before.

  • TARGET="_blank" in button URL?

    I have a printing servlet I want to call from a button. This works fine, but I need the link to open in new browser window, where the pdf can be shown. I have tried this for button URL:
    http:&#47;&#47;wmsi001494/rapportServlet/rapport?skemaId=&P71_SKEMA_ID. TARGET="_blank"
    But this does not work. Does anybody know how to get it working?
    Regards Pete

    I tried popupURL, popUp2, and window.open javascripts to open a window using a button. They work fine with HTML pages but fail when I try to open a PDF file.
    The URL I'm using to open the PDF references a function I created following the HOW TOs (e.g. download_my_file?p_file=#ID#). The only alteration I made to the HOW TO download function was to open the file instead of downloading (Content-Disposition: inline instead of attachment).
    Has anyone else had this problem or found a way to open a PDF file that is stored in the database into a new window using a button instead of a link? I should also mention that if I use a link (e.g. href="...download_my_file?p=file#ID#') it works, it just doesn't work if I have to use Javascript to open the file in a window.
    I really need to use a button instead of a link, but can't figure out how to make it work!
    Forgot to mention, the error message reads:
    "There was an error opening this document. This file cannot be found." It's an Adobe Acrobat error, but it opens fine when opened with a standard link.
    Thanks,
    ~Dan

  • How to duplicate calendar events copy paste?

    I am trying to build my schedule on calendars with my iPad. I would like to put in my work schedule but I don't work the same days every week. I am looking for a way to copy paste/duplicate entries so I don't have to keep inputting them. Because I don't work the same days each week/month I can't use the repeat feature. I have tried a long press to copy and paste but it moves the whole event and doesn't duplicate it. Is there a way to do this? I have found that I can do this on my Macbook Pro in iCal and then it updates the iPad through iCloud but I would like to do it with my iPad because I have the iPad and iPhone with me all the time and the Macbook stays at home.

    As you know by now, there is now way to copy and paste (drag and drop duplicate) iPad Calendar events. However, I have found a workaround that allows you to duplicate an event and place the duplicates in various dates on your Calendar. NOTE: This is probably not too practical for making a single copy, but it does save time and keystrokes for multiple copies.  In Calendar, tap on the event you want to duplicate and select Edit. In the Edit window select Repeat. In the Repeat window select Every Day, then tap Done to take you back to the Edit menu.  Tap End Repeat and select an end date that will give you the number of copies you want (e.g., if the original event date is 11/12 and you want 5 copies, select 11/17 as the End Repeat date.  Tap Done twice to return to the Calendar. Then just drag the Repeats/Copies to the various dates where you want them placed (works best in Month view). When you finish each drag/drop, you will get a "This is a repeating event" pop-up window; you need to select "Save for this event only."

  • h:CommandLink : Action event not called on the first click

    Hi,
    I am facing a problem here.
    I have a JSF page:
    When I first load the page, I have few text boxes and dropdowns. With out doing anything If I click the <h:commandLink I call an action in my pagecode.
    But the problem is on the very first load of the page, without doing anything if I click on the command link action event in my pagecode is not called, but If I click on the link the second timethe pagecode actionevent is called.
    So I think tried submitting the form in the JSF page onclik of the commandlink it works in my Local IBM RAD. But doesnot work in the WebSphere Portal.
    So can you tell me if I can submit the form atleast once when the page loads for the first time
    This is my command link:
    <tr>
    <td colspan="2" align="center">
    <h:commandLink styleClass="commandLink" id="lnkBtnCreateUser" action="#{pc_Createuser.doLnkBtnCreateUserAction}">
    <hx:graphicImageEx styleClass="graphicImageEx" id="imgBtnCreateUser" value="/theme/images/btnCreateUser.gif" style="border:0;cursor:pointer" onclick="return onFormSubmit();"></hx:graphicImageEx>
    </h:commandLink>
    </td>
    </tr>
    function onFormSubmit(){
    //enabling all the disable components
    So can anybody please help me on this. Why exactly the pageCode action event is not called for the very first click ???

    seems that a prependID="false" attribute in the respective form was causing the trouble. At least it's working now that I've deleted it.
    I introduced it, because last time the component ID's messed up the output of the error/success messages ("j_id:xxx isn't that of a usefull information to the enduser).
    Edited by: stger on Apr 9, 2008 5:41 PM

Maybe you are looking for