Closing seperate browser after cfcontent

Hi all,
I would like to get some help on cfcontent.
I use cfcontent to open a pdf in a seperate browser,
which works.I have a close button on the parent
window, along with other information related to the document.
When I hit the close button, I would like the pdf
browser(window)
to close. It doesn't seem to recognize that the PDFImage
window is open.
Below is my code to display the image
<cfheader name="Content-Disposition"
value="#URL.Image#">
<cfcontent type="application/pdf" file="#URL.Image#">
//Code to close the image window in the parent window close
button.
function closepage(){
//one way
if (window.PDFImage && window.PDFImage.open
&& !window.PDFImage.closed){
window.PDFImage.close();
//other way
if (PDFImage != null && PDFImage.open){
PDFImage.close();
The next issue is, I am trying to display a jpg in a
<table, the image must
be within the table. It works when I have the <img tag,
but I Would
like to replace it, due to some sharing violation of the
image being displayed.
cfcontent seems to work, but it takes the whole browser,
other codes(like buttons)
are ignored.
<table align="left" cellpadding="0" cellspacing="0"
class="withborder">
<tr> <td><span id="List3">
<cfheader name="Content-Disposition"
value="#Form.image_file#">
<cfcontent type="image/jpeg" file="#Form.image_file#">
<!---<img border="2" id="img1" src="#Form.image_file#"
width="250">--->
</span></td>
</tr>
</table>
I am using MX 7. Any suggestions/solutions are welcome.
Thanks all for your time.

The online help for the onClick Javascript field says
"In the link generated for this icon include the following onClick javascript.  Use of the onclick javascript could popup a help page in a new window (see example 1).
Example 1:
  window.open('US/asfhhome.htm','Help','scrollbars=yes,resizable=yes,width=625,height=350,left=25,top=150');return false
Set the Icon Target attribute to # if you are using OnClick JavaScript. Set the Image Alt Text attribute to the text the user will see to click on."So, try putting "#" in the Target and window.close() in the onClick Javascript box.
Message was edited by:
Vikas

Similar Messages

  • Closing the browser after logout

    Version 1.6
    We're using Internet Explorer and I need to close the browser after/when the user clicks on the Logout link. How can I accomplish this?
    Thanks,
    Joe

    The online help for the onClick Javascript field says
    "In the link generated for this icon include the following onClick javascript.  Use of the onclick javascript could popup a help page in a new window (see example 1).
    Example 1:
      window.open('US/asfhhome.htm','Help','scrollbars=yes,resizable=yes,width=625,height=350,left=25,top=150');return false
    Set the Icon Target attribute to # if you are using OnClick JavaScript. Set the Image Alt Text attribute to the text the user will see to click on."So, try putting "#" in the Target and window.close() in the onClick Javascript box.
    Message was edited by:
    Vikas

  • Where did my "freecorder" go after I closed my browser?

    I installed Freecorder 4.0 toolbar onto my firefox browser. It appeared and I was able to use it after initial installation. When I was finished, I closed my browser. When I opened my browser the next time, the "recording" part of the toolbar disappeared and has never come back. I tried uninstalling and then reinstalling, but it does not work. Can someone help me?

    Im not 100% sure they did this time, but i know everytime i plugged my iphone into my mac, itunes poped up and said backing up my iphone

  • I have customized my Firefox toolbar. After closing the browser and then reopening it, the toolbar has returned to the way it was before I customized it. How do I get my customization of the toolbar to become permanent?

    I have customized my Firefox toolbar several times. After closing the browser and then reopening it, the toolbar has returned to the way it was before I customized it each time. How do I get my customization of the toolbar to become permanent?
    It has occurred with Firefox 4.0.1 and 5.0

    see http://kb.mozillazine.org/Corrupt_localstore.rdf
    Take a picture of your toolbars so you can easily reconstruct them from the default after solving the the problem.
    If it happens to you it will probably happen again in the future so you might want to keep some copies of your modified localstore.rdf file so you can delete the bad one and rename one of the replacements in waiting. Saving, copying and renaming must be done with Firefox down, of course.

  • How do i get the download window to remain open after closing firefox browser window

    i sometimes download a bunch of files all at ones then have to go back to review them. but i don't need the browser open to do this just the download window. in older versions the download window would remain open after i closed the browser but i don't see a way to do that anymore?

    You can set the pref browser.download.manager.quitBehavior to 2 on the about:config page.
    See http://kb.mozillazine.org/browser.download.manager.quitBehavior
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />

  • How to avoid the logon screen after closing the browser

    Im working with annonymous users showing a Iview but when I close the browser, instead of closing the browser the logon of portal appears. I dont want that how can I avoid this ?
    thx

    Hi
    I am not clear with your question. How do you close the browser ? Is it by hitting the cross button on the Top right corner ?
    Murali.

  • Closing the browser - new problem

    Hi Experts,
                      I had this issue of closing the browser in web Dynpro Java. i did it with the help of the experts views posted in SDN(passing the URL of the java file containing the javascript to close the browser to the exit plug). When i created an iView for the application and try to preview it, throws an error reading - com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exit-Plug must no be triggered with an URL when running in portal. Use portal navigation instead to navigate to another application!. Please help.
    Thank You.
    Kind Regards,
    Manoj Durairaj

    Well, with more testing and my buddy's help, what I've learned is that the "Save and Quit" tabs dialogue takes precedence over the warning for closing multiple tabs.
    By having browser.showQuitWarning set to true, it will ask me to save and quit - but not if "Show my windows and tabs from last time" is selected for Firefox startup, which makes the prompt for save and quit (and close multiple tabs warning) redundant. It will just save for you upon quitting.
    And had I turned off that browser.showQuitWarning manually or by checking "Do not ask next time" on the save and quit dialogue, then the warning for closing multiple tabs would appear upon attempting to close multiple tabs, since I have that warn option set in my tabs settings.
    It's one or the other, save and quit OR warning for closing multiple tabs.
    It would be nice though if there weren't a conflict between the close multiple tabs warning and the quit Firefox dialogue.
    So, I hope this can help anyone else who may be confused or accidentally change options and potentially screw themselves over. After all, I may have sustained a self-inflicted wound in the settings.

  • Issue Tracker app closing the browser window on chart page

    Hi!
    I am walking through the Issue tracker tutorial. I have created page 10 (Issues Resolved by Month) which is the chart page. Everything looked fine until I try to run the page. Then it simply closed the browser window after it authenticates me. Anyone else see this? Any ideas?
    Thanks!

    Probably a problem with your SVG viewer installation. Does it happen on other chart pages as well? What browser/svg viewer version combination are you using? There are some known issues with what's labeled as the current svg viewer on Adobe's website and Firefox.
    Earl

  • Backend BSP session not closing on server after closing the window

    Hi All,
    We have SAP EP (7.0 SP21) and there is a BSP transaction ivew (Interaction Center ) intergrated in the portal. The issue is when the user performs any transactions inside the BSP and then closes the browser, session remains on the server till the timeout. Is there a way to end those sessions on server after closing the browser immediately?
    Portal domain : xx.mycomp.com
    ABAP system domain :mycom.com
    Should the domains be same for the DSM of Portal to work or is there any solution that can be considered.
    regards
    Uday

    Hi Uday,
    These are the main issues that can cause issues with DSM:
    JavaScript Origin Policy:
    Scripting
    between different domains is not allowed because of “JavaScript origin policy”.
    Also
    communication between mixed protocols (http\https) is forbidden.
    Therefore
    the portal server and the content server must be on the same domain and must
    use the same protocol.
    For
    detailed explanation see:
    http://mozilla.org/projects/security/components/same-origin.html
    Popup Blocker:
    •Popup blockers may cause troubles
    in relation with SRA feature.
    •Terminator handles notifications in
    new window when current window is being destroyed (logoff, closing browser
    window) – popup blocker prevents the opening of new window, hence no session
    handling performed.
    please also check SAP Note #596698 for more information typical problems and troubleshooting.
    In general, the 2 domains should be the same.
    xxx.mycomp.com, meaning that first part of the url can change but what comes after should be the same domain.
    Best regards,
    Etay

  • Logoff while closing the browser.

    HI all,
    Portal logoff is different from closing the browser,as i know.
    But can we do logoff while closing the browser?
    We must close the session such as BSP application.
    Any helpful answer is welcomed.
    THank you.
    Best Regards,
    delma

    hi
    THank you for your advice.
    The strange thing is : there's no popup "closing session" window when i close the browser.
    And I look after the trace.No dsm.terminator is called at all when i close the browser.
    But when I logoff, dsm.terminator is called and the window is poped up.
    This is what i am confused.
    Thank you.
    Best Regards,
    delma

  • Closing the browser without popup message

    Hi Experts,
    I refered the following thread and done the below steps
    1.Create a Button called Exit.
    2.Create an action for this button.
    3. In the event handler for this button, write the following code:
    String Url;
    try {
    Url = WDURLGenerator.getWebResourceURL(wdComponentAPI.getComponent().getDeployableObjectPart(),"close.html");
    wdThis.wdGetAtpEmpDetailsWinInterfaceViewController().wdFirePlugExitPlug(Url);
    } catch (Exception e) {
    wdComponentAPI.getMessageManager().reportException("Technical Exception occured in the application : " + e.toString(), true);
    4.Create a html page called u201Cclose.htmlu201D with Javascript code for closing a browser window.
    5.Place this html page in SRC -> Mimes -> Components -> Project Structure(Create this folder and place the html page in this folder)
    I have used Ie 7.0
    My questin is when i clicking the button. It show popup message like
    "Do you want to close this window " I don't want this popup.
    without popup i need to close this window? How to do that?
    Regards,
    Manivannan P

    Hi Manivannan p,
    1.Create a Button called Close.
    2.Create an action for this button.
    3. In the event handler for this button, write the following code
    You can try this
    public void onActionClose(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionClose(ServerEvent)
    WDPortalEventing.fire("urn:com.sapportals:navigation", "CloseWindow", "");
    //@@end
    This will help you closing the window with out Popup
    Here we are calling a "Portal Event" called " CloseWindow" to close the windoe
    Get back if you have any questions
    Thanks & Regards
    Swetha

  • Closing the browser in InfoView doesn't log the user off.

    In Business Objects XI R2 Infoview, closing the browser in InfoView doesn't log the user off no matter how you answer the subsequent popup question "A window has closed. Log off as well?" Is there a fix for this somewhere?

    hi,
    In InfoView, with Performance Management installed, user sessions fail to be released immediately when the Log Off button is clicked.
    If you click the logoff button in Infoview and watch the address bar you will notice that it actually goes to another page called default.htm. It does this really fast. That page is located at C:\Program Files\Business Objects\Tomcat\webapps\businessobjects\enterprise115\desktoplaunch\InfoView. Remove both the default.htm and index.html and reboot your Tomcat server. Open a browser and go to Infoview. Once you have gotten in to Infoview click the log off button. You will get and error from the tomcat server and that is because the page does not exist anymore. If you look in CMS under servers and CMS you will also notice it dropped the session as well. So if you create another Default.htm page of your own and just redirect to another page it all should work.
    However I did notice an interesting ADAPT in CHF15 :-
    http://support.businessobjects.com/CommunityCS/FilesAndUpdates/boxir2_en_chf15_readme.pdf
    ADAPT00576483 Patch ID: 39,216,665
    Also did u do any customization setting before ?

  • Firefox no longer loads home page or deletes cookies. I have repeatedly checked both settings and they are correct. It always goes to the last page I was on when I closed the browser ..

    Firefox no longer loads home page or deletes cookies. I have repeatedly checked both settings and they are correct. It always goes to the last page I was on when I closed the browser .

    Go to '''TOOLS''' then''' OPTIONS''' then in '''GENERAL''' panel in '''STARTUP '''session choose '''Show my home page''', then click '''OK''' to save it, exit firefox and restart-it.
    see for more info: [https://support.mozilla.org/en-US/kb/Options%20window%20-%20General%20panel Options window - General panel]
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • How do I find my tab history? I had hard drive issues and when I launched my browser after getting it back their was no "restore session" option. I know a tab history is kept, just don't remember where or how to exercise it. Thanks

    Question
    How do I find my tab history? I had hard drive issues and when I launched my browser after getting it back their was no "restore session" option. I know a tab history is kept, just don't remember where or how to exercise it. Thanks

    Firefox 4 saves the previous session automatically, so there is no longer need for the dialog asking if you want to save the current session.<br />
    Use "File > Exit" or "Firefox > Exit" if you want to restore multiple windows.<br />
    You can use "Firefox > History > Restore Previous Session" to get the previous session at any time.<br />
    There is also a "Restore Previous Session" button on the default <b>about:home</b> Home page.
    Another possibility is to use:
    * [http://kb.mozillazine.org/Menu_differences Firefox (Tools) > Options] > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"

  • Is there a way to close a pinned tab without unpinning it or closing the browser completely?

    when i have one of my pinned tabs opened and i open a new tab, i cant find a way to close the pinned tab without closing the browser completly.
    is there a way to close a pinned tab?
    thanks.

    You can also middle-click a tab to close that tab and that also works for pinned tabs.

Maybe you are looking for

  • HP OfficeJet 6500 E709a: cannot scan from Windows 8.1; uninstall crashes at step 8 of 10

    When I try to scan from Windows 8.1, launched from the HP Solution Center, it fails before giving me a preview, saying: Scanning error 4,[(2,22,80040001),(3,22,0)] When I run the HP Print and Scan Doctor and select "Fix Scan", it fails on the first c

  • GLOBAL AD POSTING JOB

    GLOBAL AD POSTING JOB Join the real Ad Posting Program. get paid $2 per ad. Post as many Ads you can. Call at +91-79-26826451. http://www.ongoingprofit.com/idevaffiliate/idevaffiliate.php?id=1918

  • Gos attachment knowlenge provider:  transfer error ?

    hi friends ı wrote this code but ı take this error 'Knowlenge provider : transfer error'. please help me ? thanks. DATA: o_document_set TYPE REF TO cl_bds_document_set,   wa_signature LIKE bapisignat,   i_signature LIKE bapisignat OCCURS 1,   wa_file

  • BW Statistics 3.5

    Hi all,          RSA1 t-code top displaying Data warehouse workbench and System component version is SAP NetWeaver 2004s, but all objects developed in 3.5 data flow. My doubt now i going to install BI Statistics whether i have to install below IC als

  • Crm outbound idoc Bupa_rel and Bupa_main Dependent object.

    I am triggering two  different CRMXIF_PARTNER_SAVE_M03 (Bupa_main) and CRMXIF_PARTNER_SAVE_M02(Bupa_rel)idocs outbound using XIF adapter. I want to send these idocs in Sequence such a way that Bupa main goes first then Bupa_Rel. Simply makiing Bupa_r