Air htmlloader capture url click

After making sure navigateInSystemBrowser=false, is there a way I can capture when a user clicks on any url in the loaded content?  There will be many different pages loaded, and many links will be of the standard <a href="www.google.com">link</a> variety so the javascript examples in the docs won't really work.
I just want to get an event when any link is clicked so I can display it in another section of the application.
Any advice is appreciated.
Thank you,
-Eric

Hi
Many thanks for the update.
The page I am working on is the standard Oracle Page ( Receiving Home Page in iProcurement). This page has table of Requisitions which can be Received.
Express Receive image is present corresponding to each Requisition in the tablelayout.
Once the express receive is clicked ( Destination URI property is set to OAFunc= Final Review Page Parameter= Req Header ID), the Review page is displayed with Submit button.
So as to change the ActionType of the Express Receive Image, I need to then customize the page and also extend the standard Controller code.
Instead just extending the COntroller to capture the URL click event
I guess, the URL click event cannot be captured in Controller. Hence the Property has to be changed and handled by code.
What i am worryin for this solution is that, whether the specific Requisition Header ID which is passed on the URL link, can be passed similiarly while writing the code for the Action Type of the Express Image. Or the code would though take to Review Page but miss out the specific Req Header ID against which it was clicked.
Pls advise
Thanks
Rakesh

Similar Messages

  • Capture URL Link click event in ProcessFormRequest

    Hi All,
    I have requirement to capture the event and do some validation/dialog page whenever a URL Link is clicked on my Page.
    I can handle the button click event in ProcessFormRequest, if I use a Button and sets its destination URI to a URL
    However, if its a standard hyperlink or Image and Destination URI is set. The event is not being captured in ProcessFormRequest.
    Is there any other alternative, apart from changing the Image to Button. Thats the restriction. Its has to be Image.
    Or how to capture that event, when the URL is clicked.
    Rgds
    Rakesh

    Hi
    Many thanks for the update.
    The page I am working on is the standard Oracle Page ( Receiving Home Page in iProcurement). This page has table of Requisitions which can be Received.
    Express Receive image is present corresponding to each Requisition in the tablelayout.
    Once the express receive is clicked ( Destination URI property is set to OAFunc= Final Review Page Parameter= Req Header ID), the Review page is displayed with Submit button.
    So as to change the ActionType of the Express Receive Image, I need to then customize the page and also extend the standard Controller code.
    Instead just extending the COntroller to capture the URL click event
    I guess, the URL click event cannot be captured in Controller. Hence the Property has to be changed and handled by code.
    What i am worryin for this solution is that, whether the specific Requisition Header ID which is passed on the URL link, can be passed similiarly while writing the code for the Action Type of the Express Image. Or the code would though take to Review Page but miss out the specific Req Header ID against which it was clicked.
    Pls advise
    Thanks
    Rakesh

  • WebEngine: how to capture the click on a link?

    I need some insight into the inner workings of WebEngine: listeners seem to stop firing under certain conditions.
    Problem description:
    In my application I have to open certain urls in a new tab or in a different pane. Following jsmith's proposal in a different thread (Re: How to cancel page loading in WebView? I do the following:
    - Based on the location of the link clicked, I decide if it has to be opened in place, in a new tab, or in a sort of popup pane (similar to a sheet window in MacOS/X as a fake modal dialog attached to the top of the window).
    - To achieve this, I implement a locationProperty listener using "locationProperty().addListener".
    - Inside the listener I use "getLoadWorker().cancel()" to stop the current engine from loading the url ...
    - ... and load that url in a new tab or the popup pane.
    This works fine, but when I return from the other tab or close the popup pane, the location property listener won't fire any more.
    The same applies if I cancel in a stateProperty change listener.
    Workaround:
    As a workaround I can refresh the page using "getEngine().reload()" in a "Platform.runLater" thread, but the flickering is really ugly.
    Analysis:
    It looks as if the cancel comes too late. The first opportunity to capture the click on a link seems to be "getLoadWorker().stateProperty()" where "Worker.State" is "SCHEDULED"; after that fires the listener on "locationProperty()". In either case "getLoadWorker().cancel()" seems to invalidate the listeners.
    I have experimented with another development platform which also uses Webkit. There it's possible to truely cancel out before a link is loaded. So it should be possible in JavaFX as well...
    Question:
    Does somebody know how I can capture the click on a link without redeveloping the web application (which I can't)?
    Cheers,
    Thomas

    If, after calling getLoadWorker().cancel(), you no longer receive location change notifications upon further clicks on links, it looks like a bug. Feel free to file an issue with Jira.
    However, it is probably too fragile to rely on the location property and the cancel method in your case, due to asynchronous nature of page loads.
    Look at the WebEngine.createPopupHandler property. The popup handler will only be called if the page decides that a new window needs to be created, so it may not be able to help you fully solve your problem, but it may be worth a try.
    Otherwise, consider the approach suggested by irond13. Install DOM event listeners on link objects (<a> tags) and do whatever you want in response to click events. You can do it solely in Java, see Re: Controlling what happens when a user clicks on a hyperlink in a WebView and Re: Communicate from WebView to JavaFX scene for details and example.
    Finally, if you do think a more direct callback on WebEngine is a necessity, consider extending http://javafx-jira.kenai.com/browse/RT-17073 or filing a new feature request.

  • Flex 3 : How  to capture   right click on DataGrid ??

    I am using Flex 3 . I have some data inside a DataGrid .
    Now when we the user right clicks on Datagrid Item , i want to show an Alert ??How  to capture 
    right click on DataGrid ??
    Please suggest ,thanks

    Thanks for the resonse , I did not understand what is context menu and how it it associated with Datagrid's right click , could you please elobrate ?? Thanks .

  • How can I capture mouse click events on BSP or Web Dynpro ABAP Screen

    hi Guys,
    Currently we have a user inactivity problem,
    the requirement is: if user is clicking on BSP/Web Dynpro ABAP screen, he/she is considered active. so we need an mechanism to capture the mouse click event.
    Using Firebug, we found that this js is in the iframe which contains BSP/web dynpro scrren: /sap/public/bc/ur/nw5/js/languages/urMessageBundle_en.js
    we want to find this js file & put in some javascript code to track user's mouse click, but i cannot find it on server.
    while in ie if we type http://host:port/sap/public/bc/ur/nw5/js/languages/urMessageBundle_en.js
    this file can be downloaded, means this file is there.
    Any one can help on this issue? find the js file or another way to capture the mouse click event.
    Thanks a lot with points!

    Hi  Feng Guo,
                        We can not capture mouse click events on Web Dynpro ABAP Screen . I am not sure about BSP. But as for as I know the portal keep active the iViews until unless mouse clicks happens.
    But for your problem I think you can get solution by setting iView Expiration to some more time period.
    Regards,
    Siva

  • URLs clicked in other programs won't load in Firefox

    Just within the last 1-3 weeks (?) or so, I find that I can't click on links in other programs and have the URL load in Firefox, which is my default browser. They always used to load perfectly and switch me to the new tab in FF, but now they don't.
    At first I tried disabling a couple of recent FF add-ons one at a time to see if one of them might have been the problem, but that didn't seem to solve it, though I may have missed one. Still, I can't imagine how an unrelated add-on could cause URLs not to load from other programs. I have tried loading URLs by clicking on them in Thunderbird, WordPad, MailWasher Pro, and even Libre Office, but all of them either just twitched the screen for an instant and then stopped, or else gave me a message such as "WordPad was unable to open the URL" or "There was a problem sending the command to the program" (Libre Office). However, when I copy and paste those same URLs into FF and hit Enter, those sites load perfectly.
    I may be wrong in this, but it appears that something has changed within FF that now prevents links clicked in other programs from loading. My only other thought at the moment is that this '''may''' possibly have started about the time I upgraded from FF 10.0.2 to FF 11.0.1, but I have no firm evidence to support that theory.
    This is really an annoying and inconvenient problem, so any help in resolving it will be hugely appreciated!
    Thanks,
    Al

    The problem is fixed now as a result of some help I got on the WindowsSecrets forum. Once I realized that the problem was occurring not just with MWP and Thunderbird, but with other programs as well (I tried WordPad and Libre Office, both of which likewise failed to load the URL into Firefox), I posted the question on other forums, trying to see if others knew anything about this issue. I got the answer from a forum member on this page:
    http://windowssecrets.com/forums/showthread.php/145441-URLs-clicked-in-other-programs-won-t-load-in-Firefox?p=847784#post847784
    In case you're not a member there or can't load that page, here was his suggestion:
    With FF closed type %APPDATA%\Mozilla\Firefox\Profiles\ in the start menu search box, click the item that appears and delete localstore.rdf FF will replace it on starting.
    I did that and all four programs that had previous problems loading URLs, including MWP, now load them perfectly. The only (minor) problem with this solution was that localstore.rdf apparently stores all the info about such things as the Firefox toolbars and their customisation, so all that was lost when I deleted the file, but I got them re-customised fairly quickly and all is well. Any thoughts regarding what localstore.rdf does, why this problem happened, or how to prevent it from happening again will be appreciated.
    I hope this info helps. Thanks again for all your help.
    Regards,
    Al

  • Event structure does not capture mouse click event on toolbar activeX control

    Hi
    We have a toolbar activeX control on FP.  It works perfectly on my computer, but on my coworkers deskyop,  somehow the event structure doesn't capture mouse click event.
    Any idea?  Thanks a lot for any help.
    Anne

    It's a standard activeX control.  I attach a simple vi .
    thanks  for any help.
    Attachments:
    toolbar test.vi ‏41 KB

  • How to capture previously clicked button(previous event)?

    Hi guyz,
    I have frame in which i have different panels. I would like to capture the last clicked button. My objective is to bring a pop-up box(dialog) when anything other than a specific button is clicked in one of the panels. So, i would like to know if i can see what button was clicked previously. Does anyone know?

    How to capture previously clicked button(previous event)?Store it somewhere and then you can use it later:
    ActionListener previousActionEvent;
    JButton b = new JButton();
    b.addActionListener(new ActionListener(){
       public void actionPerformed(ActionEvent evt){
          previousActionEvent = evt;
    });

  • Software Simulation only capturing first click

    Hello - I'm not sure what I'm doing wrong. I have a Captivate file created and I'm trying to add a software simulation to the presentation. When I do, it only captures my first click and nothing else. I don't really want to do a video because I want to allow pauses and the information to be spread across slides. Any help is really appreciated!

    Hello Lilybiri -
    Yes, the application is on my system. I did read some other posts that it only captures all clicks when the application is on the  main monitor. I had it on my secondary screen, which I believe caused the issue. Now that I have it running on my main computer, it seems to work.
    On another note - what do you mean am I running Captivate as Admin?

  • Does a macbook air have a right-click?

    does a macbook air have a right-click?

    Yes, Look in System Preferences > Trackpad > Secondary click
    Edit: For additional options, click the down arrow next to the click or tap with two fingers.

  • Capturing the LOG OFF url click action in a Webdynpro application

    Hi,
    I have this requirement where I need to know when the User logs off in a webdynpro application.
    I have several webdynpro applications, each independent, and each need to do some clean up tasks when the user clicks on the LOG OFF url in the portal login.
    Is there some standard event attached with the LOG OFF Url of the portal login?
    And could anybody please specify when exactly would the  <i>wdDoExit()</i> method of the application view(s) or the application component controller get's trigerred when the application is run from the portal login?
    Thanks in Advance.
    Regards,
    Swapna Priya.

    Hi Luciano,
    I was successfully able to call the RFC from wdDoExit() method of the component controller.
    Also I could successfully place a custom alert call when the user clicks on the LOGOFFurl in the portal browser.
    Now I have one more pending requirement for me to completely use this cycle of events.....The Portal Browser close action i.e., 'X' action.
    I did find a forum link with some code for the same but i did not understand where to place that code and have already raised a reply for hte same.
    Below is the link:
    /message/230174#230174 [original link is broken]
    Do you have any idea about how to trap this?
    Thanks for all your support
    Regards,
    Swapna Priya.

  • AIR HTML Component - URL problem

    Hi,
    We face the below mentioned problem. Attached herewith are code sample and simulation for the problem. Would be great if someone could help us.
    Due to problems with uploading the attachment here, please send a email to the following email-id ([email protected]) and I shall send the attachment in response.
    HTML Component provided in AIR is used to access different URLs one after another. When we switch from one URL to another, the previous link gets loaded prior to opening new link. Is there a way to trap events which is happening during loading of URLs.
    * Steps to Reproduce:
    1. Install  HTML_Component_TrapEvent.air and execute the code.
    2. Initially Home page is displayed.
    3. Click on anyone of the three buttons labeled: Yahoo, Google, Rediff.
    4. Respective website homepage is displayed. Wait till entire page is loaded. For example, assume Yahoo button is clicked, Yahoo website will be loaded.
    5. Click on Button labeled "Home". Home Page gets Loaded.
    6. Then click on Button labeled "Google". The HTML component with Previous web page (in this case Yahoo web page) is displayed until Google web page is loaded.
    * Expected Result:
    The HTML component last loaded should not be visible when the current component is loading. In other words, Yahoo website should not be visible when Google site is loaded.
    * Actual Result:
    The HTML component last loaded is displayed until the current component is loaded. Which means, Yahoo website is displayed until Google is loaded.
    * Any Workaround: NONE
    Thanks in advance.

    I might add that this is flex 3 Retail version, not the beta.
    Seems to work in the flex 3 milestone 4 beta.

  • AIR for iOS URL string problem

    This is a very strange runtime error, that accurs on iOS devices but does not appear, when compiled on the AIR compiler
    I have an input text field movieSearch.pName.text, in which you can enter a value for a JSON URL search.
    On an iOS device it cannot load the URL request. when the text value is passed like this:
    var req:String = movieSearch.pName.text;
    var myRequest:URLRequest = new URLRequest('http://api.themoviedb.org/3/search/movie?query=%22+'+req+'+%22&api_key=****************');
    I have tried writing a value manually in the code, and this works fine:
    var myRequest:URLRequest = new URLRequest('http://api.themoviedb.org/3/search/movie?query=%22+matrix+%22&api_key=****************');
    or
    var req:String = "Matrix";
    var myRequest:URLRequest = new URLRequest('http://api.themoviedb.org/3/search/movie?query=%22+'+req+'+%22&api_key=****************');
    These 2 examples work, but the first example does not. Why is it so? Does anyone have a clue?

    A sample project is something like this:
    import flash.data.*;
    import flash.text.*;
    import flash.display.*;
    import flash.events.*;
    import flash.net.*;
    import com.adobe.serialization.json.JSON;
    var movieSearch:TextField = new TextField();
    var resultField:TextField = new TextField();
    var searchButton:SimpleButton = new SimpleButton();
    addChild(movieSearch);
    addChild(resultField);
    addChild(searchButton);
    searchButton.addEventListener(MouseEvent.CLICK, simpleJSON);
    function simpleJSON(e:MouseEvent) {
                        var i:int;
                        var req:String = movieSearch.text;
                        var myRequest:URLRequest = new URLRequest('http://api.themoviedb.org/3/search/movie?query=%22+'+req+'+%22&api_key=******************* ******');
                        var myLoader = new URLLoader();
                        myLoader.addEventListener(Event.COMPLETE, onload);
                        myLoader.load(myRequest);
                        function onload(evt:Event):void {
                                  var myData:Object = JSON.parse(myLoader.data);
                                  var resultCount:int = myData.results.length;
                                  for (i=0; i < myData.results.length; i++) {
                                            resultField.appendText(myData.results[i].original_title);
    I am using Flash Professional CS5.5 with AIR 3.2, and tested the compiled project on iPhone 4 with iOS 6.1
    The result field does not show anything on the device, but shows everything correcly in Flash.

  • TweetDeck/Adobe Air not opening URLs in the browser in x86_64 system.

    Hi,
    I have managed to setup the last version of the (Adobe Air based) TweetDeck application running in my x86_64 and KDE system. I've gone through all the comments in the AUR entry and installed all the relevant lib32 libraries and such, and it appears to all work fine except for one issue.
    When I click on a URL contained in a tweet, nothing happens. It does not open the URL in Firefox as I would expect. Clicking on other items such as the user's ID or the posting date also do nothing. (I should mention that I have i686 ArchLinux running on another machine, and it handles all this with TweetDeck/Air no problems.) Now I suspect this is an Adobe Air issue rather than TweetDeck specific, but that is only my suspicion.
    I tried running strace on the app, and I can see that at one point it reads the Firefox profiles.ini and the prefs.js for my profile, so I suspect it is trying to do some sort of silly-buggers instead of just launching the /usr/bin/firefox executable with the URL as an argument.
    Any ideas on how I can get this working?
    Thanks.
    E.
    Last edited by ecognito (2012-02-06 04:19:04)

    Hi ecognito,
    what window manager are you using? I had a similar issue with pidgin not opening links in XFCE4 and was able to fix it... but I suspect yours MAY be a different case.

  • Air HTMLLoader fullscreen problem

    The Adobe Air help docs say that SWF content loaded into an HTMLLoader object will disappear if the HTMLLoader object is scaled to a factor greater than 1. Does that mean that there's no way to display SWF content in an HTMLLoader object when the Air app is set to full screen? My SWF content called into the HTMLLoader object does disappear in this case when my app goes to full screen, and I was just wondering if anyone has found a workaround to this. Thanks.

    Welcome to our community
    Please click the link below and read the text presented in bright red letters. Below that is a link you need to follow.
    Click here to view
    Best of luck to you in solving your issue! Rick

Maybe you are looking for