Using a text link to open a new browser window to a specific size

i can figure out how to make a link open up a new window
(_parent, _top, etc.), but how do i make the window a specific
size?
thanks,

Hi joeq ,
We don't need to change the html page title. I tested the
same code ('undefned') in html/javascript, but not with flash.
Use the same script in html/javascript and test it.
If it works fine, then create a javascript function in your
parent html.
Then call the function from flash, it will be fine.
I tested the same code with IE, Netscape, Firefox(linux),
also mac-safari.
Regards,
Sankarapandian T.
[email protected]
Chennai, India.

Similar Messages

  • How to force external links to open in new browser window/tab?

    Greetings. I'm here because searching elsewhere kept coming up with references to javascript. I've created an interactive PDF with both internal and external links. It works just fine when viewed in either Acrobat or Reader. However, it is being downloaded to users' browsers and when they access the external URLs, the new sites replace the existing page in the same window.
    Is there a simple way for me to include an action in the PDF prior to distribution that will force it to open external URLs in a new browser window or tab?
    And for the record, I barely know how to spell Javascript, much less how to write or implement it. So if there is a simple solution, I hope you can also help walk me through the steps to implement it.
    Thanks a ton.

    There are two issues here:
    - How to do it using JS
    - How to do it in a non-Adobe browser plugin
    The first is pretty straight forward. You use a code like this, replacing the dummy URL with your own:
    app.launchURL("http://www.example.com", true);
    The second issue is more problematic, and in fact there isn't really a solution to it. If the plugin used supports this method then it will work, if not, then you're out of luck. Unfortunately, outside of the Adobe software I don't think that any other plugin supports it.

  • Can you link text to an "Open in New Browser Window" behavior?

    Newbie here... the title asks the question. I know you can link an image in this way, but can you do it with text?

    Yeah.  The manner in which PDF files are handled depends on your end user's computer/browser settings, installed plug-ins, etc...  In some cases the PDF will launch in the browser window.  In other cases it may download to the user's hard drive or it may launch inside Acrobat (if they have it).  Too many unknown variables here...
    The best advice I can give you is to keep it simple.  Link directly to your PDF file and use target="_blank" to open it in a new window or tab.  And be nice to your site visitors, tell them it's a PDF file and approx. how big the file size is in KB.
    Link (PDF -- 250KB)
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • 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.

  • Making a hyperlink open the linked page in a new browser window

    Does anyone know if iWeb allows a way to create a hyperlink such that it will open a new browser window rather than navigating away from your site?
    Thanks for any and all help.
    Brian
    www.productionmax.com

    I've scoured the forums. It's just not in the software as of yet. This is best solution I could find:
    http://discussions.apple.com/thread.jspa?messageID=1629842&#1629842

  • 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

  • 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.

  • Want to open a new browser window and display the html file in locale disk.

    Hi,
    I want to open a new browser window and display the html file in local drive. The below html applet work in local system successfully. But i deploy the same in web server (Tomcat) and try the same in client machine it does not work. Please help.
    Note:
    The class below fileopen.FileOpen.class i make it as a jar and put it in jre\ext folder at the client machine.
    ------------------------------------FileOpen.html(Tomcat)-----------------------------------------------------
    <html>
    <body >
    <applet code="OpenFile.class" archive="loadfile.jar" width="100" height="100">
    <param name="path" value="file://c:/open.html" />
    </applet>
    </body>
    </html>
    -------------OpenFile.java in server(Tomcat)--------------------------------------------
    public class OpenFile extends Applet implements ActionListener{
    String path = "";
    fileopen.FileOpen open = null;
    Button b = null;
    public void init(){
    path = getParameter("path");
    b = new Button("Open");
    b.addActionListener(this);
    add(b);
    public void actionPerformed(ActionEvent ae){
    try
    open = new fileopen.FileOpen(this,path);
    catch (Exception e){
    e.printStackTrace();
    -------------------------------------------FileOpen.java /Client JRE/ext----------------------------------------------------
    package fileopen;
    public class FileOpen
    AppletContext context = null;
    URL url = null;
    public FileOpen(Applet applet,String path)
    try
    if(null != applet){
    context = applet.getAppletContext();
    if (null != path)
    url = new URL(path);
    context.showDocument(url, "_blank");
    }catch(Exception ex)
    ex.printStackTrace();
    Please help to solve this issue very urgent.
    Thanks in advance.
    By,
    Saravanan.K.

    zzsara wrote:
    I want to open a new browser window and display the html file in local drive. ...Did you ever pause to consider how ridiculous that is?
    The best audience for applets is people off the internet. 'People off the internet' might be using a computer that has no (what was it?) 'open.html' in the root of the C: drive. In fact (shock horror) they may not even be running Windows, and would therefore probably have no 'C:' drive at all.
    If you do not intend to distribute this to people off the web, an application makes a lot more sense, but even then, you cannot rely on the document being there unless you 'put it there' (during installation, for instance).
    As the other poster intimated, applets can load documents off the local disk as long as they are trusted. Here is an example*, but note that it is not so rash as to presume any particular path or file, and instead leaves it to the user to choose the document to display.
    * The short code can be seen at SDNShare on the [Defensive Loading of Trusted Applets|http://sdnshare.sun.com/view.jsp?id=2315] post.
    On the other hand, a sandboxed applet can load any document coming from its own server via URL, or get showDocument(URL) to work. In that case, the JRE must recognize that the URL is from its own server, so the best way to form URLs for applet use is via the URL constructor
    new URL(getDocumentBase(), "path/to/open.html");That is how I form the URL in this [ sandboxed example of formatting source|http://pscode.org/fmt/sbx.html?url=/jh%2FHelpSetter.java&col=2&fnt=2&tab=2&ln=0]. Of course, in this case the applet loads the document, then parses the text to draw the formatted version, but the point is that an URL produced this way will work with showDocument(URL).
    I am pretty sure showDocument() in an applet off the internet will work with an URL pointing to a foreign (not its own) server, but it will not be able to load documents off the end user's local disks.
    I suggest a couple of things.
    - Try to express this problem in terms of what feature it is that you want to offer the end user. Your question jumps directly to a bad strategy for achieving ..who knows what? An example of a feature is "Shows the applet 'help' files on pressing F1".
    - A good way to indicate interest in a solution is to offer [Duke stars|http://wikis.sun.com/display/SunForums/Duke+Stars+Program+Overview] to match that interest.
    Edit 1:
    ..and please figure out how to use the CODE tags.
    Edited by: AndrewThompson64 on Sep 12, 2008 11:14 PM

  • How can I open a new browser window!!!  Very Challenging!!!

    I have a form (name=MAIN) with a submit button (name=Button A). Button A opens a new browser window (name=SEARCH), via an HTML form target tag (<FORM TARGET=A>). Window SEARCH has multiple submit buttons (10-15). Each button has a different action which is handled by a servlet (form name and button name are passed to a servlet as a hidden field in the form to determine the action), which is setup to be an action handler. When a button in the SEARCH window is clicked the results are retrieved from an Oracle database and should be displayed in the text fields in window MAIN.
    For example, some results may be displayed in window SEARCH (_self) and and other results may be required to be sent to window MAIN depending on the button clicked.
    How can I setup window SEARCH so each button can have a different target window (some may be window MAIN or other windows)? Using a form tag for each button doesn't give desirable results. Is there a way to do this with JSP or some form of Java code?
    A form tag can only have one target. Basically I have one form with multiple submit buttons. How can I get it to send each submit buttons results to a specific window?
    Thanks.

    <!-- try this -->
    <script language="JavaScript1.2">
    function mysubmit(mytarget){
    document.myform.target=mytarget;
    document.myform.submit();
    function validation(myform){
    //validation stuff
    return [true | false];
    </script>
    <form target='none' name='myform' action='myaction.jsp' method='post' [onsubmit='return validation(this)']>
    <input type=button name='submit1' value='submit1' onclick='mysubmit("target1")'>
    <input type=button name='submit2' value='submit2' onclick='mysubmit("target2")'>
    <input type=button name='submit3' value='submit3' onclick='mysubmit("target3")'>
    <input type=button name='submit4' value='submit4' onclick='mysubmit("target4")'>
    </form>

  • 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!
    Rui

    or 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.

  • 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 Thanks

    I 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

  • RoboHelp HTML 8  - avoid opening a new browser window

    How do I avoid opening a new browser window every time I call the context sensitive help from within Java?
    I am using Robohelp HTML 8 with IE8
    I am calling it this way from Java:
    RoboHelp_CSH.RH_ShowHelp(0, "C:\\\RoboHelp\\!SSL!\\WebHelp\\XHelp_File.htm", RoboHelp_CSH.HH_HELP_CONTEXT, 2);

    Hi,
    Welcome to Adobe forum,
    As I understand you are trying to open the hyperlinks in a new window instead of a tab.
    Well it is possible in Robohelp 8 HTML
    Here are the steps which you need to follow.
    1. Select the text Right click on it and then select Insert Hyperlink.
    Once you click on the Insert Hyperlink another Popup window will appear in your screen.
    You need to check this screenshot and select the appropriate option.
    Try and generate the Webhelp and see if that helps you,
    I hope that will resolve your issue.Please reply if that resolves your issue.
    Thanks
    Priyank

  • 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 Patrici

    HTML 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.

  • How to open a new browser window without toolbar, location, and menu bars from AIR?

    I have the following problem in my Flex+AIR application. I need to embed an ActiveX component that has JavaScript API inside my application. I tried to embed it inside <mx:HTML> component but unfortunately, AIR doesnot support plug-ins or ActiveX controls. So I've decided to open it in a new browser window. I tried navigateToURL(...) method but it has two problems - it is opening a new tab in the existing browser window and there is no way for me to configure the new browser window appearance, like removing toolbar, menu bar, location bar, etc. Then I tried to open a new window from JavaScript running inside <mx:HTML> component using window.open(...) API but it doesn't open a new window at all.
    Is there any way for me to open a new browser window without toolbar, location bar, etc. (which will run ActiveX control, so it cannot be AIR window) from inside AIR?
    Best regards,
    Arkady.

    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.

  • 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.
    ThomasChen

    The 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.

Maybe you are looking for

  • Safari doesn't display fonts properly

    Hello, When I surf with Safari, specialy (www.thestar.com) I cannot display some fonts. Thank you for your help.

  • DATA PUMP ISSUE

    SEVERAL USER BELONG TO THE TABLESPACE I WANT TO EXPORT I WANT TO ONLY WEED OUT THE TABLESSPACE AND THE TABLES BELONGING TO ONE USER. THE USER ALSO WANT SOME OF THE TABLES WITH ALL THE DATA IN THEM AND SOME OF THE TABLES WITH NO DATA IN THEM I TRIED A

  • How to use auto incremented tabe to create a CMP Entity Bean

    hi, I want create a CMP entitybean with an auto incremented table in Oracel. So I need to know - how to create a table with an auto-incremented field in oracel and - how to change the create() method according to that. I am using Sun studio enterpris

  • Business Rule - Invalid prompt error - Security flaw?

    Hello all, I have a business rule in which users transfers volume from one cost center to another. The users have write access to sending cost centers and no access to receiving and this is how it is need. When I designed the rule and during the test

  • HT4557 I don't have this on my iPhone 4 = "Settings iPod".  Help!

    I'm trying to set up Home Sharing on my iPhone 4.  The instructions say = "On your iPhone, tap Settings > iPod".  Why would a setting for iPod be on my iPhone?  If it should be there, I can't find it.  I'm totally confused and frustrated with trying