Content in iframe, open links in browser window
I have an iframe in my app that points at an external website (not under my control) and I'd like to have any links the user clicks on open that URL in a browser window. As it is it opens the link either in the same iframe or (if the link has target="_blank") in a new AIR window.
With a window using an HTMLLoader I can set window.loader.navigateInSystemBrowser = true, but iframes don't use HTMLLoader.
How can I resolve this?
Hi
Accessing an application with the window name is not possible.The other possibility is accessing it using the application name.Follow the code...It will be
useful for you.
Thanks
Anzy
Data: lo_cmp_api TYPE REF TO if_wd_component,
lo_window_manager TYPE REF TO if_wd_window_manager,
lo_ext_win TYPE REF TO if_wd_window,
lv_url type string.
lo_cmp_api = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_cmp_api->get_window_manager( ).
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = 'MYAPPLICATION'
IMPORTING
out_absolute_url = lv_url.
lo_ext_win = lo_window_manager->create_external_window(
url = lv_url
title = 'My Application' ).
Similar Messages
-
Problem: iframe open link in new window or in parent window
Post Author: tahirmulani
CA Forum: .NET
please paste following code in your .aspx or any other language page and run it<iframe id="iframe1" src="http://www.yahoo.com" height="50%" width="100%"> </iframe>you got the yahoo's web site in your browser , when you click on "answer" or any button bellow thatone, new page is open in perent window or in new window ! i want to avoid that one,i want to open new page in same frameWhat can i Do?Post Author: Argan
CA Forum: .NET
This is not a forum for posting web or .net coding questions.
Please try one of the many other forums across the internet for questions like these. -
Pdf links will not open in new browser window
I have created a pdf document in Acrobat 9 Pro that is password protected. You must enter the password to open it. In this document there are perhaps 15 links to other pdf documents. I set up each of the links to open in a new window. The links work as expected in Acrobat, each opening in a new window, however, when I posted the documents to the web, the links open in the same window as the original document. This would not be a big issue if the original document were not password protected, but each time the user clicks on a link, it takes him out of the original document. To get back to the original document requires re-entering the password. This is a major irritation with so many links.
I know that you can set Acrobat to display the documents in its own window rather than in the browser, but my users don't know that. Control clicking on a pdf link does not open it in a new window as it would with an HTML link. Is there a simple fix to this problem that does not involve user intervention?Well, I came up with a solution, thanks to Ted Padova who offers a simple JavaScript solution on his blog at http://www.acrobatusers.com/blogs/tedpadova/opening-pdfs-new-browser-windows.
The solution is clearly laid out even for beginners, if you know how to create a link or button.
It seems to me that a prime objective of Adobe in developing Acrobat would be to have it behave the same way in free-standing mode and as a plug-in. In this case it does not, and obviously, it has not for the last forty-eleven years that Acrobat has been on the market. Maybe some day they will get around to a fix for this obvious problem. In the meantime, read Ted's blog and be happy we have guys like him who can solve these problems. -
How to open a new browser window from a JSP page?
Hi,
I am picking up records from the database and displaying each record in a seperate text area field using the JSP code. I should be able to display the content ( available in the text area) in a seperate window if the user clicks on one icon.
Is it possible to open a new browser window using JSP? If yes, how can I write information on the new browser window?
Thanks in advance.Is it possible to open a new browser window using JSP?a JSP page is also an HTML page, this is client side stuff, you can do it with JavaScript.
-
Open Link in New Window not working
Using iWeb 08, I create a new entry on my blog/news page, highlight the text, go to the link tab, paste in a website, make sure 'Link to an External Page' is selected, and put a tick in 'Open Link in New Window'.
When published it opens in the same window. Is this a bug or how can I correct it?Try redoing your link and, this time, deselect the link on the page and look at the inspector window to see if anything has changed. Then check the 'make hyperlinks active box". Your linked page should open in the browser when you click the link on the iWeb page.
If this is OK do a "publish all to .Mac" and empty your browser cache before visiting your site. -
Open Link in New Window Option Not Working in Top Link Bar
Hello,
We have a 'Popular Links' section in our Top Link Bar for our intranet site that contains a list of frequently used links. Since most of these links navigate to sites outside of SharePoint, we would like these to open in a new tab or window when clicked.
I've enabled the 'Open Link in New Window' option under Site Navigation Settings for each link, however when a user clicks the links that have had this option enabled the content is still loaded in the current tab.
Is this the correct set of steps to enable this content, or is there a better way to accomplish this that actually works?
**SharePoint Server Publishing Infrastructure has been activated.You can try deactivating Minimal Download Strategy feature present under "Manage Site Features"....
-
How do i open a new browser window(IE or Netscape)?
I need to open a new browser window to show a web page returned by a PHP aplication.
If i use an editorpane the returned page is shown unformatted.
PLEASE HELP!
Ruior to open a window using a hyperlink, u can try this:
Link Name
This will open a window and send then send u to the page you want for processing. -
How do I open a new browser window from Flash
I wish to open a new browser window from Flash and when the new window closes to return to the location from whence I started.
ThomasChenThe command to open a new window would be the "_blank" part of a command to link to a web page in the code below.
navigateToURL(new URLRequest("http://www.anothersite.com", "_blank"));
As far as the new window closing and getting back to where you were in the original window, I don't understand where that original window might have gone to... You should be wherever you last left it. -
How do I make a PDF open in a browser window? Does the user
need a certain plugin?
Any help would be greatly appreciated...
-Johndrumkeyjw wrote:
> How do I make a PDF open in a browser window? Does the
user need a
> certain plugin?
Make sure to warn the user about the fact that you link to a
PDF document
and also mention the weight (kb) of that file.
In case you wonder if you should open a new window or not for
PDF files:
http://www.tdrake.net/should-a-web-site-open-pdf-files-in-a-new-window/
Thierry
Articles and Tutorials:
http://www.TJKDesign.com/go/?0
The perfect FAQ page:
http://www.TJKDesign.com/go/?9
CSS-P Templates:
http://www.TJKDesign.com/go/?1
CSS Tab Menu:
http://www.TJKDesign.com/go/?3 -
File Open Issues - document library pdf file to open in new browser window
Hi
I have a requirement to open the document library containing pdf file to open in new browser window. So far I have tried following steps but could not get it to work.
1. Changing Document library advance setting to open the document in browser (have tried others as well).
2. SharePoint web application setting changed as Permissive instead of Strict. Here the pdf file opens in browser but redirect from document library instead of new window(Also tried adding Target=”_blank” and no change).
3. Executed the powershell script to adding MIME type to see if it works but no change.
$webApp = Get-SPWebApplication http://SharePointSite
If ($webApp.AllowedInlineDownloadedMimeTypes -notcontains "application/pdf")
Write-Host -ForegroundColor White "Adding PDF MIME Type..."
$webApp.AllowedInlineDownloadedMimeTypes.Add("application/pdf")
$webApp.Update()
Write-Host -ForegroundColor White "Added and saved."
Else
Write-Host -ForegroundColor White "PDF MIME type is already added."
4. Open the Doc library and modified ALLItems.aspx to add Target= “_blank”
5. I have already tried solutions suggested in the link:
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/9db08c4a-b53c-419a-84f8-001c194d1311/how-to-open-sharepoint-document-library-pdf-file-in-new-window?forum=sharepointadminlegacy
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/530e2ea1-d77d-491c-935f-04f536e439a5/open-a-pdf-document-to-a-new-browser-in-the-document-library-web-part?forum=sharepointadminlegacy
http://mindsharpblogs.com/todd/archive/2005/08/16/654.html
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/7b6091df-4657-4799-ba02-259ebd7e4b7c/pdf-doesnt-open-in-document-library?forum=sharepointadminlegacy
Appreciate if there are any working solution from any of you. Many ThanksI found a solution which works only in the development. No idea when I compared, Browser MIME type is enabled, STRICT browser type is configured for web application. on the document library advance setting, default to open in new browser. Both configurations
are identical but I am able to open pdf file in new window in my developing using jquery script
http://blog.ithinksharepoint.com/2011/02/21/open-pdf-files-from-a-document-library-in-a-new-window/ but the same does not work on production server :(
Any help experts?
Thanks -
Open Link in New Window, sometimes does not work???
The problem is in FF4b9 an 10 (the only ones I tested). The problem is that when I open a link in a new window sometimes it does not work. Well, I am presented with a new instance of the browser as expected but it seems like the parameter is not passed or something. Also, I have noticed something weird about the new instance. There is a button labeled Firefox in orange and another set of minimize, maximize, and close buttons. Here is a screenshot:
http://i52.tinypic.com/ilejkn.pngThere is this pref: browser.tabs.loadBookmarksInBackground
But it doesn't have effect if you open links via the Library, it only works when opened via the browser window (menu, toolbar, sidebar). -
Open a new browser window to show document
Hi,
I am trying to click an item in datagrid to open a new
browser window and display the document for this selected item. how
to implement it? thank you.Here is a full example that should do what you are asking.
You need to create an itemRenderer for your DataGrid.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
backgroundAlpha="0" >
<mx:Script>
<![CDATA[
import mx.collections.*;
private var catalog:ArrayCollection;
private static var contacts1:Array = [
{URL: "
http://www.macromedia.com/software/dreamweaver/",
Product: "Dreamweaver"},
{URL: "
http://www.macromedia.com/software/flash/",
Product: "Flash"},
{URL: "
http://www.macromedia.com/software/coldfusion/",
Product: "ColdFusion"},
{URL: "
http://www.macromedia.com/software/flex/",
Product: "Flex"},
{URL: "
http://www.macromedia.com/software/breeze/",
Product: "Breeze"},
{URL: "
http://www.macromedia.com/software/director/",
Product: "Director"}
private function initCatalog(cat:Array):void
catalog = new ArrayCollection(cat);
myDatagrid.dataProvider = catalog;
public function generateHtml(url:String):String {
return '<a href="'+url+'"
target="_blank">'+url+'</a>';
]]>
</mx:Script>
<mx:Text text="This example uses a Text itemRenderer for
the second column that
changes the font color of those cells and uses the htmlText
property of Text
to make the cell a link." width="350" />
<mx:DataGrid id="myDatagrid" width="600" height="300"
creationComplete="initCatalog(contacts1)" >
<mx:columns>
<mx:DataGridColumn dataField="Product" />
<mx:DataGridColumn dataField="URL" width="400">
<mx:itemRenderer>
<mx:Component>
<mx:Text color="0x0000FF"
htmlText="{outerDocument.generateHtml(data.URL)}"/>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
</mx:columns>
</mx:DataGrid>
</mx:Application>
Joan Lafferty
Flex SDK QA -
I do not like the order of the context menu changes in Safari 6.1. I have become accustomed to using "Open Link In New Window" first in the context list, rather than the new "Open Link In New Tab". I do not wish to use Tabs. How may I remove this?
Well, I solved it just after I posted this. I opened up the Safari Preferences, then went to the TABS section, and set "Open pages in tabs instead of windows: to NEVER", and unchecked "⌘-click opens a link in a new tab". That set it back to open in new windows.
Tabs work if I am making quick tabs to refer to something. Horrible if I want to compare two websites side by side. So, by disabling the auto TAB function, I'm back to the way I prefer my browser to work, rather than the way something thinks I ought to use it.
Don't care about having all my browsers behavior the same. If I wanted that, I would have run those browsers. -
How can I open a new browser window from UIX?
I need to open a new browser window from an event handler. How that can be done? HELP!
Thanks!
Martin PatriciHTML doesn't really let you do this on the server side; the client is in charge
of creating new windows, not the server.
If you know that clicking a certain link/button, etc. will always raise a new window,
then you should use Javascript or "targetFrame" accordingly.
If the decision will only be made on the server side, then you could reload the current
window, only this time use an "onLoad" on the <body> to raise a window. -
Using firefox 14.0.1. Loading a link using right-click and "Open Link In New Window", results in new window opening but address bar does not show URL. However, if I right click on a link and select "Open Link In New Tab", the Tab shows URL in address bar. So it's working when it's a New Tab but not a New Window.
The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
To Reset Firefox do the following:
#Go to Firefox > Help > Troubleshooting Information.
#Click the "Reset Firefox" button.
#Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
#Firefox will open with all factory defaults applied.
Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
Did this fix your problems? Please report back to us!
Maybe you are looking for
-
I have a MacBook Pro Keeps completely shutting down all the time when its fully charged and at random times when it is at 65% for example Do I need to get a battery replacement? Or do I have a virus? PLEASE HELP
-
How to remove menu bar for a single tcode
Hi, I created a Transaction iview with gui for html and now i want to deactive menu bar for a single tcode. I'am able to remove menubar by passing parameter in Webgui but it will remove menu bar for all. Can anybody provide me solution. With regards
-
Object, variable, function, listener naming in multiple frames
Hi, I am building, block by block a project that will have about 350 frames. There are similarities and differences between frames that would allow copying and pasting large blocks of frames to create new blocks. Navigation would be within blocks. Af
-
Connection conn = null; try String[] deger = new String[50]; cumle = conn.createStatement(); cumle.excuteUpdate("INSERT INTO kelimeler(kelime,sayi) VALUES('"+deger[0]+"',1)"); }Hello, I'm trying to insert values to database(MySQL) but compiler gives
-
Was prompted by the automatic updater to install latest java version 6 update 20. It fails because of warning message "bin\eula.dll: Old file not found. However a file of the same name was found. No update done since file contents do not match." Have