Opening Hyperlinks inside Excel WebAccess webpart in the Same Window

I was trying to access Excel Web parts hyperlink like below, but this solution is not working for me.
$(document).ready(function() {
$(".ewr-sheetcontainer a").each(function(){
$(this).attr("onclick","openLink(this)");
function openLink(Atagproperties)
Atagproperties.target = "_self";
Problem is .ewr-sheetcontainer has role="Presentation" atttribute,
which says it will delete the contents from accessible tree. 
Is this the reason it is not working for me? or Am I missing anything?
Appreciate your help on this. Thanks, Maddy

Hi,
According to your description, my understanding is that you want to set the hyperlink in Excel Access Web Part opening in the same window.
As the excel access web part is dynamic loading after the page load, so when the page has loaded, the excel web part element has not been loaded completely.
I suggest you can use setInterval method to run function circularly until the excel access web part has loaded in the page.
Here is a code snippet for your reference:
<script src="http://code.jquery.com/jquery-1.10.2.js" type="text/javascript"></script>
<script type="text/javascript">
var $a;
var interval;
$(document).ready(function(){
interval = setInterval(ready, 1000);
function ready()
$a = $('div.cv-nwl a');
if($a.html()!=null)
$a.attr('target','_self');
clearInterval(interval);
</script>
Thanks
Best Regards,
Jerry Guo
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected]

Similar Messages

  • Opening a view from another view of the same window in diff Browser.

    Hi Experts,
    My requirement is to open a view (say view 2) from another view (say view 1) with click of a button in a different browser, both the views are embedded into the same window, and also i have to pass some data from view1 to view2, based no the input data, i am displaying some information. Also both views belog to the same component.
    Some pointers on this would be of great help.
    Regards,
    Ashish.

    You would need to open another window.
    See if_wd_window and if_wd_window_manager.
    Call the GET_API to get a handle to window manager.
    The new window can show V2.
    The original Window with 2 views,
    must fire plug to navigate v2 to empty view to hide it from Window1.
    The to Views talk to one another via WDC Controller.
    View 2 calls WDC controller methods.  The WDC controller the fires Event.
    View 1 can listen to this event with a method of type event handler.
    View 1 can for example react to button on View 2 and close WINDOW 2.
    Good luck
    Phil.

  • A webpage suddenly stops loading and just shows 'connecting...'. Opening new webpages in new tabs in the same window or in a new window gives same problem, while IE does not have any such problem opening the same page simultaneously

    this issue is not limited to one website, it seems to be problem with the browser or possibly any plugins but not any specific webpage

    The default of the pref network.http.max-connections has been increased from 30 to 256 in Firefox 6+ versions.
    Try to decrease the value of the pref <b>network.http.max-connections</b> from 255 to a setting like 30 as used in Firefox 3 versions.
    *https://support.mozilla.com/kb/Firefox+never+finishes+loading+certain+websites

  • Open pdf files in tabs in the same window

    Hi,
    Could we open many pdf files in tabs in the same window in stead of many standalone pdf files?
    In other word, open pdf files in tabs like in a web browser ! This is very handy feature which is already available in Foxit reader !
    It would a great too in adobe !
    Thanks

    Thanks for your replies.
    It is a great feautre in my view ! Why Adobe doesn't make it enable/disable feautre for who wants it or doesn't?
    I'm planning to switch to Foxit for this feature (it is faster also)!

  • How do I open hyperlinks inside embedded pdf in a new window?

    I have a pdf that contains hyperlinks to other website. This pdf itself is available as a link on a website. When this pdf is loaded in IE window, and user clicks on any of the links inside this PDF, the link opens in the same window. I want all the links to open in a new window.

    I'm trying to accomplish this same thing and am having a hell of a time finding the right Class, right Methods, and/or right Properties for a solution.  Some classes seem to return obscure errors when I try to create them use the invoke node "launchURL" (the WMPLib.ICore for example).  If I use the Player base class (which MSDS says is the root class and the class that is used when you create an embedded player) I don't get anything.
    What I would like is to progmatically launch Windows Media Player to play a particular video clip in full screen on the secondary monitor.  It seems like this should work:
    But doesn't... any ideas for this?  The C# examples are difficult to understand for me.  Also, the WMP class library is a MESS! (IMHO).  Thanks for your input.

  • I cannot open files in excel with error message "The file name or path contains invalid characters

    I cannot open files in excel with error message "The file name or path contains invalid characters

    Found the solution. The hardrive name was changed to "/" which is not a recognised file path character. So I changed the name to "Mac" then I was able to already open all files in excel and word

  • Hey, im really sick of this, how can i open folders but in the same windows, when i open a folder which is inside of another one, it just open me a new window, its so annoying, could anyone tell me what to do? im using mac os 10.7.2

    hey, im really sick of this, how can i open folders but in the same windows, when i open a folder which is inside of another one, it just open me a new window, its so annoying, could anyone tell me what to do? im using mac os 10.7.2

    Finder > Preferences > General > Always open folders in a new window: uncheck

  • Can I set Firefox to open a page link in the same window (not a new tab) so I can just go back to the page instead of having to close the window?

    When I am on some pages, clicking on a article/picture link opens a new tab instead of continuing in the same window. By staying in the same window, I can back click on my mouse and continue on with other reading/links on the original page without manually having to move the mouse and click to close the tab. For example: on news pages, if I click on a financial article, a new tab opens with that linked article on the website's financial site. If I keep going back to the original page w/o closing tabs, I end up with too many tabs open.

    yeah, instead of using multiple windows, you can use multiple tabs inside one window. That way, you can browse multiple websites at once without having to flick back and forth between multiple windows.
    To open tabs of the websites you want to browse, just right-hand click on whatever website you want to visit (For example a site from your bookmarks or a site from a Google search result) and select 'open link in tab'.

  • Navigate from one iview to another and open in the same window

    Hi,
    I created two iviews with Visual Composer 7.0 SP8.
    In the first iview I create a button with hyperlink action, that call the URL of the second iview. The two iviews are in separates pages.
    The problem is that the second iview is open in a different window, and I want to open this iview in the same window. I changed the propertie start in new window with "show in the portal content", but It is still open in another window.
    How can I open the second iview in the same window?
    Thanks,
    Ivan

    Hi Marcus,
    I created two iviews, the property of the first iview is window type = primary window, the second iview is defined like window type = nested window.
    Now the problem is that I can not deploy the second iview in the portal.
    Do you know what is happening?
    Best regards,
    Iván.

  • How do I make my page links open up within the same window?

    I am completely stumped. By default for some reason, every single link I have on all my pages opens up in an external window rather than within the same window. I can't find anywhere to turn this off. I have my hyperlinks open to my other pages not an external page. Please help!

    Are these text based hyperlinks that you created?  If so then go to the Inspector/Link/Hyperlink pane and make sure the checkbox to Open link in new window is unchecked.
    Click to view full size
    What's the URL of your site so we can examine it first hand? 
    OT

  • Anyone know how open slideshow in the same window?

    Does anyone know how to make the slideshow open in the same window as the as the site instead of a new window? I'm looking for the location and code that would make it happen on a .mac site.

    Yes, of course, you can do this! You just have to know the address for the slideshow page directly....
    http://web.mac.com/username/iWeb/sitename/photopagename_files/slideshow.html
    username = your .Mac username
    sitename = your site name
    photopagename = whatever you named your photo template page
    Example:
    http://web.mac.com/jwtseng/iWeb/kate/art_files/slideshow.html
    Once you find this URL, then all you have to do to get it to appear as part of your page is to specify an iframe tag with the URL...
    <iframe src="http://web.mac.com/jwtseng/iWeb/kate/art_files/slideshow.html" width="980" height="760" scrolling="no" border="0" style="border:none;" frameborder="0"></iframe>
    This is the little bit of code that you will need to insert into your iWeb pages in order to make the slideshow appear "inside" a frame on the page. Just change the underlined URL to your own slideshow URL.
    To prepare the page in iWeb, you'll need to make a textbox on a page that is 980x760 in dimension (you'll need to adjust the default width of the page). Then type in some placeholder text, like "SLIDESHOWHERE". Publish the page. Then go into your iDisk/Web/Sites/iWeb/sitename folder and find the pagename.html file. Open it with TextEdit (make sure to tell TextEdit to "ignore rich text format"). Then find the part of the code where your placeholder text is. Replace the placeholder text with the iframes code. Then save your work.
    When you check your page in Safari, you should see the slideshow appear inside the page exactly where you positioned the textbox in iWeb.

  • In Firefox 5, New Windows open in the same window even though the options are set to open in a new window.

    I have the options set to open new windows in a new tab. However, they do not.
    For example, as I click on the various options for support on Firefox.com, each opens in the same window. Similarly for Yahoo. If I bring up the news page and click on various links, they all open in the same window. How do you get them to open in new windows?

    Pure speculation, but maybe that Identity Finder program is deleting your browsing history which is how Firefox restores tabs and windows from the previous session. Check with technical support for that program or look at the manual.

  • Open a URL link in the same window as SWF file in indesign CS5

    Hello,
    I am trying to create a SWF file using indesign CS5.  I have created buttons and placed in URL links but they always open another window.  I would like to know if there is a way to have the URL open in the same window that the SWF file has been created.  I tried, putting "_self" to target it in the URL bar, but nothing works.
    Thanks in advance
    TK

    Okay, I found the code but I can't get it to work locally.  If you have a web server maybe you can upload the files (swf and html) after you Publish them:
    import flash.net.URLRequest;
    import flash.events.MouseEvent;
    var myURL:URLRequest = new URLRequest ("http://www.google.com");
    testlink.addEventListener(MouseEvent.CLICK, clickText);
    function clickText(myevent:MouseEvent):void {
    navigateToURL(myURL, "_self");
    you have to have on the stage a link element called "testlink" (see the code above) which would be a Movie Clip with the label testlink.  It can be anything from InDesign:  a button, a rectangle, a circle, a graphic, you get the idea.  Just select that object in Flash and label it testlink or anything you choose but if you change the name from testlink also change the name in the code snippet where the line "addEventListener" is.

  • Open link in the same Window

    Hello,
    i want to open a link from a WDA Action Method, in order to open a bsp applikation. The new page should appear in the same window (no popup, no new window). Here the code which i have at the moment, but the BSP Applikation starts always in a new window. What can i do ?
    data:
    lt_parameters TYPE TIHTTPNVP,
    ls_url               type string,
    lo_window_manager type ref to if_wd_window_manager,
    lo_api_component      type ref to if_wd_component,
    lo_window                type ref to if_wd_window.
    CALL METHOD cl_http_ext_webapp=>create_url_for_bsp_application
          EXPORTING
            bsp_application       = 'ZHRMPBA004'
            bsp_start_page       = 'ZHRMPBPTI006.htm'
            bsp_start_parameters = lt_parameters
          IMPORTING
            abs_url              = ls_url.
    lo_api_component  = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    CALL METHOD lo_window_manager->CREATE_external_WINDOW
              EXPORTING     URL            = ls_url
             RECEIVING     WINDOW         = lo_window.
    lo_window->open( ).
    thanks for replays

    You are calling CREATE_external_WINDOW. That API is designed to open the application in a new window.  So that isn't appropriate for what you want.  If you want to navigate in place then you should use an Exit Navigation Plug.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/ca3351508f04e7e10000000a42189c/frameset.htm

  • Open a URL in the same window

    Hi,
    My objective is to open a URL when i click on a webdynpro iView in the same window.
    I created a outbound plug in the InterfaceViewController.
    And wrote this piece of code in wdDoBeforeNavigation() in Component controller.
    wdThis.wdGetExternalComponentInterfaceViewController().wdFirePlugGoToUrl(Url);
    Where "Url" is a string variable contaning the value.
    But when i run this piece of sode it gives exception
    "Exit-Plug must no be triggered with an URL when running in portal. Use portal navigation instead to navigate to another application!"
    So what should i do solve this problem
    Regards,
    Paresh

    HI,
    Procudere to create the LogoffURL
    In the Application properties add your URL name.
    LogoffURL = http:
    www.google.com
    1.      Define an exit plug in the interface view of your Web Dynpro component:
                                a.      Enter a name and check the checkbox Exit Plug.
                                b.      Enter the name Url for the parameter and select string as the type.
    This parameter is case-sensitive and must be entered exactly this way.
           2.      In your view, define the action Exit and add the event handler onActionExit().
           3.      In the view layout, define a button and bind its onAction event to the Exit action.
           4.      In your view, define the use of the interface view controller of your Web Dynpro component under Properties.
           5.      Insert the following code in this method of the implementation:
    String logoffURL = wdComponentAPI.getApplication().getApplicationInfo().findInApplicationProperties("sap.logoffURL").getValue();
    wdThis.wdGetTimeCompInterfaceViewController().wdFirePlugExit(logoffURL);
    OR Do u need to generate the URL by using the application?
    Thanks,
    Lohi.

Maybe you are looking for