Document.write in Portal?

This is a continuation of an issue I posted in a previous thread.
My college's Portal home page displays a pagelet containing a Flash animation that provides rotating content for students, such as news about registration, ongoing contests, etc. Because not all browsers support Flash, I've been tasked with writing some javascript that will detect whether Flash is installed, and if not, display a static JPEG image instead. The pagelet was created using the Pagelet Wizard and pulls in a static html file stored on the network. I've embedded the script in that file.
The script appears to work fine in IE 7. In Opera, the static image is correctly displayed. In Safari, a blank pagelet is displayed. This is also the case in IE 8. No maximization buttons exist in either case. The worst offender is Firefox 3.6. The Flash animation appears outside of the pagelet, up at the upper left corner of the browser.
I've tried a number of different approaches. The script originally used document.write() to write content to the browser depending on what browser was detected, and whether Flash was installed. That approach never worked reliably in Firefox, so I then created a div element in the static HTML file and used .innerText to write to it. Turns out Firefox has known bugs in the innerText implementation.
So now I'm reduced to writing a very detailed browser sniffer that detects specific user agents and their versions, and then executes different Flash-replacement approaches per each. My question is therefore a variation on the usual one: Has anybody encountered this kind of problem before, and does a known fix exist? Once I come up with something that works, I can post the results here for everybody's edification. But it would be nice if such an animal already is out there somewhere.

Hi,
please add this step:
2b. Click on the oc4j-container (like home or oc4j_soa or ...) where you want to deploy the portal...

Similar Messages

  • How can I turn off document.write error in PTWC 2.0?

    Hi everyone. I have an application that (unfortunately) avoids processing on the server and instead pushes a lot of JavaScript w/ document.write statements to the portal. Also, the code can't be changed so that it does server-side processing. I understand that document.write calls in JavaScript may not appear on the first load, that said...
    Does anyone out there know how to turn off the document.write error message that appears when a portlet uses PTWC 2.0?
    -Greg

    Apologies, I could have been clearer. Somehow, someone has managed to enable a template for one of the document libraries. When I click 'New' in the document library it opens a template Word document with writing on it already. I want to turn this off so
    that when I click 'New' I am give the default option to open a new Word Excel PowerPoint or OneNote document.
    I checked in advanced settings for the particular library and have tried turning off Allow management of content types but this does not change anything. 
     

  • Exception when attempting to print 2 copies to XPS Document Writer

    Using Report Client Model (CRforVS2010 SP2) to attempt to print report. Getting following exception when attempting to print 2 copies of report to Microsoft XPS Document Writer:
    The number of copies is out of range for the selected printer
    Exception source:
    CrystalReports13.CrystalPrintControl.1
    Stack trace:
    at CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.PrintReport(PrintReportOptions options)
       at Accounting.Framework.CrystalAdapter.ReportPrint(Int32 NoCopies, Boolean Collated, Int32 StartPage, Int32 StopPage) in C:
    Denali
    Src
    Managed Framework
    CrystalAdapter
    CrystalAdapter.cs:line 3230
    The Microsoft XPS Document Writer driver has no problem processing multiple copies. This was not a problem in previous versions of Crystal Reports. Does anybody know how to setup the PrintReport to generate multiple copies to an XPS file?

    It looks like the one tracked under ADAPT01608246 as per [KB1672555|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333633373332333533353335%7D.do] - Error: Class not registered - CrystalPrintControl
    - Saurabh

  • How can I set Firefox to print to PDF, the only otions I have are (1) My Canon printer, (2) Fax or (3) Microsoft XPS document writer. There is no option for PDF

    A couple of weeks ago, from the file menu, in my print options was to print a web page to PDF, that facility is no longer there. does anyone know how can I set Firefox to print to PDF.
    The only options I have are (1) My Canon printer, (2) Fax or (3) Microsoft XPS document writer. There is no option for PDF

    Firefox generally displays the printers in Windows' Printers folder (Start orb > Devices and Printers). If it is missing one of the printers listed there, could you indicate which one it is, for example, Adobe Distiller, PrimoPDF, CutePDF Writer, etc.?
    If you previously had an add-on which added print-to-PDF functionality just to Firefox, perhaps it got disabled. You could check here:
    orange Firefox button ''or'' classic Tools menu > Add-ons > Extensions
    Also, are you really running Firefox 8.0.1? That version from last November is no longer secure and has been superseded by Firefox 11. If you browse the web widely, you should update for your security.

  • Why does Firefox 7 freeze when I paste a filename when printing to a file using Microsoft XPS Document Writer?

    This is more of a bug, and it doesn't seem to happen all the time.
    I like printing web pages to Microsoft XPS Document Writer (.xps) format. FF7 seems to freeze often when I paste a filename (usually from copying something, like the title, from the web page itself) after trying to print to a file using Microsoft XPS Document Writer. I think it may be that I wind up copying some special formatting (or maybe a line break) and that causes FF to freeze (I then have to force-close it using Task Manager). Just a bug that I hope the developers will note and fix.
    Another question, not quite related to the above, but is there a way to save an html web page to save only the text stuff? When I save to Text File in Firefox, I usually wind up with all the html crap in it too, when I just wanted the text content portion. TIA.

    Can you undo the system restore?
    Note that using System Restore can cause your Firefox installation to get corrupted because not all files are restored (only files in a white-list), so be cautious with using System Restore.
    *You may lose data in the Firefox profile folder like .js and .ini files pr profiles.ini can be affected.
    *You may need to (re)install software that was affected.
    In case you need to reinstall Firefox then you need to delete the Firefox program folder before reinstalling to make sure that all files get replaced.
    A possible cause is security software (firewall,anti-virus) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls

  • Document upload in portal

    Hi,
    We need to upload 2 documents in enterprise portal.
    The record in the document should be visible to only the specific users.
    eg: 5 documents for 5 different users .
    We need to display the documents thru an iview.
    Please suggest ASAP.
    Thanks in advance,
    Manu
    T

    Hi Manu,
    U can use KM Upload iview for this, just check this link....
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/2b/7a3be0e795664cb1d8cae68042ceb7/frameset.htm
    upload the documents using this iview to the target folder and specify the path of ur target folder in the property by name  target folder present in the iview properties of KM upload iview and give permissions for the folder to only the users who should  access them. 
    Regards,
    Tilak.
    Edited by: Tilak on Jul 4, 2008 6:17 AM

  • Will only print to Microsoft Document Writer

    When I try to print a page in Firefox Microsoft Document Writer comes up as the default printer. Goes back to that selection even when the network printer is selected from the list box. How do I stop this to I can print from Firefox?

    Try the '''reset''' described here: <br />
    http://kb.mozillazine.org/Problems_printing_web_pages#Reset_printer

  • Caching swf per page with document.write

    To solve "click to activate this object", i use
    document.write to put flash files.. But this prevents caching. I
    have "the same" swf files for many items on the page, and browser
    loads that swf, "item" times. And this triggers my Denial of
    Service protection and prevents user from using the site for 10
    secs. Well.. What i need is, using a method that prevents "click to
    activate this object" but that won't flicker the flash files when
    page is loading ( like outerHTML method ), and that allows caches.
    At least, fetching the swf once for a page. Any ideas?

    create needed structure like first case
    what is difference ?
    you have report for one invoice
    A Invoice: 12345in first and second case
    There are variable numbers of sub areas in a business unit and variable numbers of orders per sub area.do you need some formatting?
    I need to create a max number of rows per page in the detail area but there are variable numbers of detail groups and lines.what is logic for getting max number of rows?
    can you post more info with sample xml structure and sample output plz?

  • How to create the appraisals document in the portal?

    Hi all,
         I am new of SAP, I would like to create the appraisals document in the portal, but i cant find the path of do that. Please kindly help me.
    Thanks,
    Andy

    Hi ,
    You can use  BSP Application  HAP_DOCUMENT  for creating/modifying appraisal forms.
    use the  page document_todo.htm
    Create a BSP Iview for documnet_todo.htm in the Portal...

  • Where is the document.write calling file?

    I an new on the job and still finding my way around the
    files.
    I need to edit an html file. I find the file, (or, what I
    think is the file) but it is a document.write calling another page.
    I can't find the actual page of code to edit. It is a simple page
    of links and text, but how do I find it? I have the IP address, but
    I see it anywhere and I have a drive mapped. Any suggestions?
    Thanks,
    Patty

    It should be in the Javascript Toolkit Guide which can be found in your Adobe install folder:
    ..Adobe\Adobe Utilities\ExtendScript Toolkit 2\SDK\
    good luck.

  • Document.write("xyz");

    Hello,
    I have written a CFML document that gives dynamic outputs
    which are written inside
    document.write("xyz");
    So that users can use this to connect and display the
    information on their sites:
    <script type="text/javascript" src="
    http://ukgl.co.uk/leader/rank.cfm?LadderID=2&Clan=11"></script>
    However, it doesn't work. but when i remove all CFML script
    it does. Why and how can I fix this thanks.
    - Hugh

    I don't know the syntax for CF
    but you just want to include the file. You're saying it's a
    javascript now,
    which it's not.
    Just include your CF file, and it will process the data.
    HTH<
    Jon
    "Hugh Neale" <[email protected]> wrote in
    message
    news:ebaacl$bv6$[email protected]..
    > Hello,
    >
    > I have written a CFML document that gives dynamic
    outputs which are
    > written
    > inside
    >
    > document.write("xyz");
    >
    > So that users can use this to connect and display the
    information on their
    > sites:
    >
    > <script type="text/javascript"
    > src="
    http://ukgl.co.uk/leader/rank.cfm?LadderID=2&Clan=11"></script>
    >
    > However, it doesn't work. but when i remove all CFML
    script it does. Why
    > and
    > how can I fix this thanks.
    >
    > - Hugh
    >
    >

  • FireFox 3.6.13 Locks up Microsoft XPS Document Writer, PDF995 (created Acrobat pdf file output) stops printing mid document, and Internet Explorer works fine

    Microsoft XPS Document Writer locks up and PDF995.com (creates acrabat pdf file) stops printing after the second page from this site http://super.nova.org/DPR/CinematicApproach/. This was a Windows 7, 64 bit machine that had the issue. Microsoft Internet explorer works fine and printed the document with Internet Explorer.
    The machine that displayed FireFox printing issues was a up to date Win 7, 64 bit, Quad Core, 8 Gig Ram. Don't really have a question just reporting a FireFox Bug.

    Hi,
    do you have a solution for the problem? We have actually a similar problem with locked IE8 when using a zoom factor > 100% (it's a customer WD4A).
    Regards,
    Steffen Brauner
    Edited by: Steffen Brauner on Jul 7, 2011 6:54 AM
    I found the notes 1534606+1534610 that solved my prob.
    Edited by: Steffen Brauner on Jul 7, 2011 6:55 AM

  • Javascript / document.write

    Is there a known problem with document.write in Safari.
    Looks like this command is not working properly any more in the 201 version.

    Although I haven't upgraded to Tiger, still I cannot imagine Safari no longer supporting document.write; so more than likely, it's the code.
    Do you have some code I can help you troubleshoot. A link will do.

  • AJAX and javascript document.write

    I have a region template on my page which uses javascript to generate part of the template depending on item values using document.write
    I am using the htmldb_get function to refresh this region (the whole template). I am able to retrieve and display everything apart from the javascript document.writes these do not seem to be retrieved by the htmldb_get.
    (i'm guesssing that the htmldb_get only retrieves what you would see if you did a view > source from your browser menu?? any javascript changes to the html are not visible in the source and so are not retrieved..)
    any body got any ideas as to how i would retrieve the region with the javascript document.write changes included??

    Hello,
    It's not going to work all you can do is pull and insert the content.
    Carl

  • Acrobat 8 pro printer issue started today, auto scrolls to Microsoft XPS Document writer.

    I have used Acrobat 8 Pro for many years with no problems. Yesterday, when I went to print a document, it auto scrolled down to Microsoft XPS document writer. I could not select my installed Brothers Printer.
    I have also encountered auto scroll issues when opening my C drive.
    I have installed Adobe Acrobat 8 updates, have run virus and malware software programs and they show no infections.
    Nothing I have tried corrects this issue.
    Has anyone else run into this ?
    Any suggestions as to how this issue can be corrected?
    Thanks,

    Hi Auto5starz,
    For the printer issue ,please take the following steps to have a check :
    1. Run the tool in the link to have a check
    Troubleshoot printer problems
    http://windows.microsoft.com/en-HK/windows/printer-problems-in-windows-help#fix-printer-problems=windows-7&v1h=win8tab2&v2h=win7tab3&v3h=winvistatab1&v4h=winxptab1
    2.Clear the spooler cache to have a check .
       a. Search “Service.msc” and navigate to “Printer Spooler” service and stop it.
        b. Look for this folder "%WINDIR%\system32\spool\printers" and delete all files in it.
        c. Restart “Printer Spooler” service.
    3.Update the printer driver or reinstall it ,you may need to download the manufacturer driver for it.
    For the second issue ,apart from Rob`s suggestion ,please reset the Internet Explorer to have a check .( Tools>Internet Options>Advanced tab>Reset)
    Best regards

Maybe you are looking for

  • How do i set up ipad 2

    im trying to set up ipad 2

  • AppleScript to batch change 'Initial View' of PDF Documents Acrobat 9 Pro

    Hi I'm struggling to write a script that takes a bunch of PDF documents and opens those in Acrobat 9 Pro. Changes the Inital View settings (ie. Page layout = Single Page and Magnification = Fit Page) and saves the changes. Is this possible with Acrob

  • I can't create apple ID in app store

    I can't create apple ID in app store because it need to contact itune support.what should I do?

  • Icon DLL in Java

    I have a lot of icons I use for my java application and instead of having all the icons in the directory whether I could use microangelo to put them all in a DLL and then use that DLL in java to access the relevant icon I want, any help one this woul

  • Configuring HP Photosmart C6180 AIO in Windows 8.1

    Hi, i need some help here, how do  i install/configure HP Photosmart C6180 AIO in Windows 8.1 via wireless???. I've been searching around, using NETSH...., but i can't get anywhere. Regardss