Javascript/html question about popup window title

I am displaying an uploaded pdf file using wpg_docload.download_file in a popup window (using javascript open).
How can I change the title of this popup window.

Thanks to Jes (John Scott at shellprompt.net) for a solution for my version of this problem; set the Content-Disposition in the HTTP header to indicate your required filename. Example:
I have an 'On-Load - Before Header' process on the ApEx page I want to use 'host' my PDF document generator. The page is called from a popup JavaScript call, allowing us to rely on ApEx authorisation and authentication. The Source of this process looks like the following:
declare
myblob blob;
begin
-- Call procedure to gereate PDF document in a blob and pass it back
myprocedure_to_generate_blob( in_parameter, in_parameter, myblob);
owa_util.mime_header('application/pdf',false);
htp.p('Content-Length: ;||dbms_lob.getlength(myblob));
-- This line sets the filename (which could be dynamic)
htp.p('Content-Disposition: attachment;filename=mypdffile.pdf');
owa_util.http_header_close;
wpg_docload.download_file(myblob);
-- Stop Apex from trying to render more of the page (we've finished)
htmldb_application.g_unrecoverable_error := true;
end;

Similar Messages

  • Question about Setting Window Title/the use of AVWindowSetTitle()

    Hi everyone,
    I have a question about setting the title of the window in which the Acrobat viewer normally opens a PDF file.  The documentation states that AVWindowSetTitle() cannot be used in this case.  However, using it has worked with versions of Acrobat/Reader up until and including version 8.
    Everything breaks down starting with Acrobat 9.
    According to the documentation I am supposed to do the following: "To set the title of a window in which the Acrobat viewer opens a PDF file, you must replace AVDocOpenFromASFileWithParams() and pass the window title in tempTitle."
    Unfortunately, there are 2 problems I have with this approach:
         I do need to be able to change the document title on document Save, not only on document Open
         I do not know what AVDocOpenFromASFileWithParams() implementation has to look like if I have to replace it using HFTReplaceEntry().
    Is there a sample customized implementation of AVDocOpenFromASFileWithParams() somewhere that I could take a look at?
    Is there a way to change a document Title inside Acrobat/Reader window after a Save operation?
    Thanks a million,
      Lana2010K

         I am sorry.  I don't know how you tested this and came to conclusion that this works correctly in Acrobat X.
         I just tested our Acrobat plug-in with a trial version of Acrobat X and this did not work.
         When we open a file in Acrobat (doing it ourselves in the plug-in by adding another specialized open) we set the window title to something different from the default file name.  Then if a file gets edited and saved (File->Save), the window title gets reset to the file name. In the PDDocDidSave callback we call AVWindowSetTitle() to set it back to a more descriptive window title we need.  This has worked up until and including Acrobat 8, but does not work in either version 9.0 or 10.0.
         Also, I just modified the plug-in code to always change the Window Title of every document (even if opened through native File->Open) on document Save.  It does not work.
         Please help,
              Lana2010K

  • How to html edit/ enter browser-window-title

    how to html edit/ enter browser-window-title?
    harpo

    I think this is what you mean any way hope it helps.
    open the .html file in text edit for the page you want to change. then look for
    <title>whatever your title is</title>
    and just change the text whatever your title is for whatever you want. the line of code is located at the top of the page under the line that reads
    <meta name="Generator" content="iWeb 1.1.2" />
    not sure if this was the answer to your question but i hope its helped.
    steve

  • ?? about popup window using javascript

    I am launching a popup window using the following script.
    locate.onRelease = function(){
    getURL("javascript:n_name=window.open('
    http://www.wesitename.com/webpage.cfm','name_name1','width=720,height=330,scrollbars=yes') ;void(0);");
    Right now all of my links load in the same popup window...
    but if that window isn't closed for (instance if it was minimized)
    by the user... and the user clicks another link for this popup...
    it stays behind the main page rather than coming to the front
    again..
    My question is... Is there anyway to assure that this browser
    window comes to the front when updated with a new click???
    Thank you in advance
    - Me

    chess4thestupid wrote:
    > I am launching a popup window using the following
    script.
    >
    > locate.onRelease = function(){
    >
    > getURL("javascript:n_name=window.open('
    http://www.wesitename.com/webpage.cfm','n
    >
    ame_name1','width=720,height=330,scrollbars=yes');void(0);");
    > }
    >
    > Right now all of my links load in the same popup
    window... but if that window
    > isn't closed for (instance if it was minimized) by the
    user... and the user
    > clicks another link for this popup... it stays behind
    the main page rather than
    > coming to the front again..
    >
    > My question is... Is there anyway to assure that this
    browser window comes to
    > the front when updated with a new click???
    >
    > Thank you in advance
    YOu could change the name_name1 for each link to name_2 name3
    and so on.
    By using same window name you load content into the same
    window, using new
    name makes automatically totally new request and new pop up.
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

  • Question about child "windows"

    Hello Everyone,
    First, I want to thank everyone who's so graciously taken
    their time to answer my previous questions. Because of you, I am
    well on my way to developing my very first real world Flex
    application. I am consistently astounded at how helpful this
    community is and am very thankful to have you all here.
    Now, I do have one question about some code that works on the
    example but not in real life. I am trying to open a popup window
    from a class named composeScreen. In my CDATA section, I have the
    following code:
    function showWindow(modal) {
    var popup = mx.managers.PopUpManager.createPopUp(this,
    composeNewMessage, modal, {deferred: true});
    Yet, when I save the program, Flex Builder tells me:
    "Access of undefined property mx"
    Any idea why this is happening?
    I've even tried importing the mx.managers.popUpManager class
    and it makes no difference.
    Please help! This is driving me nuts!
    Thanks in Advance,
    Anthony

    Hi Anthony,
    You will have to use popup manager class for this.Here is the
    code to give you a lil bit of direction. Call init() function in
    the initilize event of the <mx: application> tag
    import mx.managers.PopUpManager;
    private function init():void{
    myWindow = PopUpManager.createPopUp(this, MyWindow, false);
    myWindow.visible = false;
    myWindow.x = 200;
    myWindow.y = 200;
    myWindow.height = 100;
    private function showWindow():void{
    myWindow.visible = true;
    myWindow.expand.play();
    <mx:Button id="btn" label="click me"
    click="showWindow()"/>
    When you click on the button your child window must pop
    up.

  • Javascript/HTML question

    I've been teaching myself Java on and off for the past couple years with the help of these forums and other tutorials. Now I've decided to take on a project that requires the use of HTML and Javascript and I can't seem to find the information I need. I was hoping that somebody from these forums could either answer my questions and/or point me in the right direction to find the answers.
    The project is simple. I created an HTML window with an inputTextArea, an outputTextArea, and two buttons (Submit and Reset). When Submit is pressed I need the program to take the text from inputTextArea one line at a time, check the indexOf a string, and add tags at the beginning and end of the string if it meets certain criteria before appending it to outputTextArea.
    I can (and have) written this very easily in Java but I can't seem to find the methods I need in Javascript. In java I use a java.io LineReader to read the inputTextArea.getText() one line at a time and then make the changes as needed. I actually can't even find a tutorial in Javascript that can explain how to take the text from inputTextArea and print it into outputTextArea.
    So the main thing I need to know is how to read one line of text at a time from the inputTextArea. I think I can figure the rest out.

    That was actually my original thought when I started on the Java version of the program but I couldn't figure out how to enter the the carriage return in as a variable to be indexed. So it wasn't until after I found the LineReader that I was able to complete the Java version.
    Is there some way to enter the carriage return in as a searchable variable?

  • Question about CS3 & Windows 7...

    I'm actually asking for a friend. They have CS3 Master Collection and they are running Windows XP SP3. They want to upgrade their system to a Windows 7, but they don't want to be out of the Adobe products either, especially after the price they paid for them. They will eventually be upgrading to CS 5.5 by the end of 2012.
    However, the friend has heard mixed feedback about it. Some people who have installed it on their Win7 system said it WORKED, but it made their system performance DRAG. Other people have said that it WILL NOT install... it gives errors and will not activate.
    Has anyone successfully installed Photoshop CS3/CS3 Master Collection on a Windows 7 system? Will my friend need to run the programs in 'Compatibility for Windows XP' mode?
    Thanks for any info you can provide!

    I have been looking now for several weeks, months even for some resolve to the known issues. There are posts about the pdf printer that does not work in windows 7 on the adobe's tech site.. I just wanted geminigirl6879 to know that they may run into issues. Forums are for that reason and the idea that you want to sensor replies to the ligitmate question a user may have really defeats the purpose. I have called Tech Support on my issues, posted on forums and scoured the internet, all i can find is that Adobe does not support windows 7 and cs3. Not only that, the posts i read about CS5.5 on widows 7 concerns me about adobe and their attitude to us smaller users.

  • Question about use Windows Installer SDK

    Hi,
    I want to Use C# code to read .MSP file and get inside file list. Such as: you can get a hotfix from here
    https://support.microsoft.com/en-us/kb/3000847 and after extract the exe you can get a .MSP file. And 3 DLL files are including in the .MSP file.
    What I want is Use C# code to read the .MSP file and get the 3 DLL file name. Here is how to read it with C++:
    https://msdn.microsoft.com/en-us/library/windows/desktop/aa816375%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
    But I don't konw about C++, So I'm trying use C# code to call Windows SDK. And I import the Windows SDK code into C# like below:
    [DllImport("msi",
    CharSet = CharSet.Auto)]
    internal
    static
    extern
    uint MsiGetPatchFileList(string
    szProductCode, string szPatchList,
    out
    uint cFiles,
    out
    IntPtr phFileRecords);
    My question is that: How to get the parameter information, such as
    szProductCode. How to read the file information from phFileRecords in C# code?
    Best regards,
    Glen Qu (Fareast\v-zuqu)

    Hi,
    I want to Use C# code to read .MSP file and get inside file list. Such as: you can get a hotfix from here
    https://support.microsoft.com/en-us/kb/3000847 and after extract the exe you can get a .MSP file. And 3 DLL files are including in the .MSP file.
    What I want is Use C# code to read the .MSP file and get the 3 DLL file name. Here is how to read it with C++:
    https://msdn.microsoft.com/en-us/library/windows/desktop/aa816375%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
    But I don't konw about C++, So I'm trying use C# code to call Windows SDK. And I import the Windows SDK code into C# like below:
    [DllImport("msi",
    CharSet = CharSet.Auto)]
    internal
    static
    extern
    uint MsiGetPatchFileList(string
    szProductCode, string szPatchList,
    out
    uint cFiles,
    out
    IntPtr phFileRecords);
    My question is that: How to get the parameter information, such as
    szProductCode. How to read the file information from phFileRecords in C# code?
    Best regards,
    Glen Qu (Fareast\v-zuqu)
    Hello,
    For MSI APIs, you could refer to
    Installer Function Reference
    It has helped us separate them to multiple parts. Like for getting product code, we could refer to
    Product Query Functions part, like the
    MsiGetProductProperty .
    For getting file information, then refer to File Query Functions
    part.
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • A Question about popup keyword in ABAP programming

    Hello Expert,
    When I write ABAP code like following statement,
    START-OF
    The system will popup a help window to suggest the relevant ABAP keyword. in this case, the popup keyword is START-OF-SELECTION.
    My question is, if the popup keyword is what i want, how can i select the popup keyword. I tried ''ENTER' key when the keyword popup, but it doesn't work.
    Can any expert tell me how to to set the hot key to select the popup keyword? Your help will greatly speed up my development.
    Thanks in advance,
    Best Regards, Yongbo.

    Hi Yongbo,
    Use Tab key instead of Enter. If you want to use Enter for code completion, check out [OSS note 1042863|https://service.sap.com/sap/support/notes/1042863|Note 1042863 - Inserting code hints using the ENTER key].
    Cheers, harald

  • Newbie Questions About Installing Windows with Boot Camp

    The only reason I want to use Windows is to be able to download games from the internet that are not made for Mac only for PC and I have a few questions:
    1. Doing all this installation will anything made for PC work?
    2. I only have Windows XP will that work? And then do all the SP updates after it's installed?
    3. If I have to use Windows XP SP2 is this one a good one to buy?
    http://www.cdsfu.com/index.php?categoryID=87
    4. After everything is installed do I have to use an anti-virus?
    I want to thank you for your help as you can see I really am a newbie.
    Karen

    Hi Karen and welcome to Discussions,
    The only reason I want to use Windows is to be able to download games from the internet that are not made for Mac only for PC and I have a few questions:
    1. Doing all this installation will anything made for PC work?
    Nearly anything. There are some Windows programs using hardware dongles that don't run.
    2. I only have Windows XP will that work? And then do all the SP updates after it's installed?
    You need a Windows XP CD with at least Service Pack 2 (SP2) incorporated.
    3. If I have to use Windows XP SP2 is this one a good one to buy?
    http://www.cdsfu.com/index.php?categoryID=87
    another user round here had already asked about that website.
    Three things about this offer are, at least to me, very suspicious:
    "Microsoft Windows XP Professional Edition With SP2, Full Version on CDR"
    Microsoft never has used CD-R disc (CD-Recordable) for Windows
    "software that does NOT include any COA label or a sticker from the manufacturer"
    There always has to be a sticker, that one puts on the computer on which the Windows license is installed and a COA label as well.
    "VOLUME LICENSE INCLUDED"
    A volume license, from my understanding, was only sold to companys, who install Windows on a larger scale (hundreds of computers) and for that purpose are given only one license-key for all installations.
    Usually this is known as a'corporate license'.
    All in all, I would personally stay away from this offer. It simply doesn't sound legal to me.
    4. After everything is installed do I have to use an anti-virus?
    When running Windows a decent Anti-Virus software is a must.
    I want to thank you for your help as you can see I really am a newbie.
    You're welcome anytime. Hope it helps.
    Karen
    Regards
    Stefan

  • New to Apple, questions about using Windows, and other things

    Hello all,
    Today is my first day as an Apple owner. It's funny because I'm also a MCSE, MCSA, and MCP.
    I purchased a 24" iMac, 2.8GHz, 4GB RAM, and 1TB Hard Drive.
    I want to use Windows on my Mac so that I don't have to keep switching over to my PC. My main reason for using Windows is so that I can continue to enjoy my PC Games... mostly racing and D&D games.
    So my question is... how does Windows run on bootcamp? Can I still use all of my USB controllers (like my steering wheels, joysticks, etc?)
    I really havent even turned on my iMac... been too amazed at just looking at it for the first day (and also rearranging my home office).
    I really just want to know from those of you who have PCs AND Macs, if you still find yourself having to go back to your PC because of incompatibilities or performance issues on the iMac?

    Using BootCamp, your Windows experience is no different than if running it on a similarly configured PC. If you went with a VM running under Mac OS X (like VMWare or Parallels), there are a number of differences. However, using BootCamp you have a Mac-branded PC.
    I'd point out that people have been dual-booting operating systems in this fashion for decades. Windows has no obvious in-built support for doing so, but other operating systems (like Linux, FreeBSD, etc.) have always very clearly and explicitly supported dual-booting (on Macs and regular PCs) from the get go.

  • Questions about Installing Windows 7 ultimate 64 bit on Mac Pro

    Hi, I have an early 2009 Quad Core Mac Pro which is running Snow Leopard. I have 4 internal drives in my Mac Pro. Does WIndows 7 have to be installed on the same drive I have Snow Leopard installed or can it be on any of my drives. My boot drive has 215 gb of free space. 2 of them have 100gb of free space and my 2 tb drive has 40 gb of free space. To install Windows 7, do I have to partition one of my drives which would mean erasing all my data? How much free space do I need for windows 7 and programs, etc? Would Windows 7 ultimate 64 bit work? Any info is greatly appreciated

    Read the link ""The hatter"" gave you and read the "FAQ's", it will answer quite a few of your questions. Read the Installation manual a few times to familiarize yourself with it before you start and it will make it a lot easier when the time comes.
    Windows will be little bit quicker on the Mac-Boot disk only because of your SSD drive. It's rare, but you leave yourself open for problems if anything gets buggered up with both OS's on the same drive. You could lose the Mac side also. You have the chance to save yourself one less problem with it being on a separate drive.
    You can install Windows on "any" INternal drive with Boot Camp. Windows can only be installed in the #1 slot on a MacPro if there are any other drives in it. (You can put it in any slot after it's been installed.) And Windows can't be installed on an EXternal drive from a Mac.
    Your best bet would be either put one of the internal drives into an external HD enclosure ($15/$20) and replacing it with another blank HD and just splitting it into two partitions or try to free up more space on one of the other drives so you have more room.
    Or like ""The hatter""mentioned.
    """You could put OS X HD in lower optical drive bay and put in a drive just for Windows."""
    The only problem with making room on an already full drive is that some times some invisible "root" files will be left behind and Boot Camp CAN'T move it and you could get a generic "Can't Install, Files in the way" type error. So you would have to Backup, erase, reinstall to clean it up that way.
    It's not so much installing Windows without Boot Camp, but you need BootCamp in order to use the "Start-up Disk" preferences. The Finder can't see the Windows install with out it. No big deal if you want to use the "Option" Key every time to reboot. Boot Camp Also has a couple of preferences like the F-Keys, etc, that you may need to use. It Could be a bigger headache. Boot Camp just makes it A LOT easier for the -non- geeks.

  • Question about Using Windows in the MacBook

    Hello Everybody!! I want to buy a MacBook, due to the fact that my Gateway PC is kind of outdated by now, but I will also install Windows 7 on it.
    I also read that the MacBook camera is not compatible with Windows Live Messenger, so my question is:
    If I install Windows 7 on the Macbook, Will I be able to use the Camera when using Windows? Would I have to install Any drivers...
    PLease Help! I'm new to The Macs (even though I have a couple of iPods an a iPhone 4)
    Thanks!

    Actually the newest version of parallels allows you
    to play games with 3D acceleration,
    There are games that play under windows in BootCamp that will still not play under windows in Parallels. I have a Windows Game Pirates that uses a play disk. It works perfectly under Bootcamp but will not work under Paralells. It has problems reading the game disk while in Paralells.
    Mort

  • Question about installing windows in macbook

    i've heard about a lot of things, something about os x, paralle, bootcamp...
    wt are those? do i need to install ALL of those things? are those expensive stuff??
    the main point of me installing windows is so that my kids can play their PC game, which is the best?

    Actually the newest version of parallels allows you
    to play games with 3D acceleration,
    There are games that play under windows in BootCamp that will still not play under windows in Parallels. I have a Windows Game Pirates that uses a play disk. It works perfectly under Bootcamp but will not work under Paralells. It has problems reading the game disk while in Paralells.
    Mort

  • Question about bootcamping windows 7

    Hello everyone, i just received my macbook pro 13 inch (specs aren't important for my question) I am getting ready to do the whole boot-camp thing (please forgive any ignorance on my part, this is my first mac) i want Windows 7- home and student edition... now my question to you all is --- Which CD do i need to purchase? there is the 'upgrade' version, the 'full' version, etc. if i even need to buy/obtain a disk, which do i need? and is there a difference in performance, or what all you can do between the different versions? etc. PLEASE HELP! Thank you for your time!! :P

    Hmm.. i see, so what are all my options then? (preferably the cheapest way...) to get windows 7 - home and student edition as my windows OS for bootcamp? what would i have to do/buy to just use the upgrade instead of the Full $200 version? the reason i want to know obviously is because, i already have Windows XP disks and maybe another older one from previous computer purchases, and the upgrade version is around $90 or so, and full is $200 like i said.. just trying to save some money, suggestions are welcomed! Thank you for your efforts Kappy, i am grateful.

Maybe you are looking for

  • DBA:CHECKDB__ is getting failed

    Hi All, One of the job in SM37 is getting cancelled. DBA:CHECKDB__ 8.04.2009 11:00:00 Job started 8.04.2009 11:00:00 Step 001 started (program RSDBAJOB, variant &0000000000189, user ID ECCDBA) 8.04.2009 11:00:00 No application server found on databas

  • How to make custom ecards

    Hey, anyone have suggestions for how to make a custom ecard with my photos? I tried 3 services found (one free, two not) online, but they wouldn't edit the photo to fit the card, one imports it with the wrong orientation, (vertical instead of horiz).

  • Authorization and Web Services

    Hello guys, I've posted this question on the Identity Management forum, but since I had no answer I'm trying here (since this forum takes question about OWSM). I'm taking part in a mission to advise how to protect Web Services with OWSM. The authoriz

  • CS11 transaction

    Hi ALL, I have finished good say FG100, which having a bom with components say RM1 & RM2. In material master of RM1 & RM2 the price control is "V-Moving avg price" & the moving average price is also maintained in the material masters. In CS11, I had

  • Budget Control System IS Public Sector

    Hi All, I have newly started my work in IS Public Sector. I have to enhance the menu to print a smartform  of T-code GM_DISPLAY_BUDGET/GM_CREATE_BUDGET.Could you share step by step information? Thanks and regards Sayantan Moderator: Please, don't ask