Embedded Javascript and CSS removed from mail

Hey folks,
I wrote a small app to send a html email to myself.
When I sent it inline all the embedded javascript and css were removed.
When sent as a .html page attachment and opened from within the browser (Gmail, Mozilla 2.0)
all the embedded script and css were gone. However when downloaded to the machine, it was all there.
Looks like this is a browser issue, would anyone know how to get around it?
It's so that I can have collapsable headers in my email message.
Thanks,
Mark.

Hi Tony.
Yes, it's possible. Read [Wiki WPC FAQ|https://wiki.sdn.sap.com/wiki/display/KMC/WebPageComposer-FrequentlyAskedQuestions+%28FAQ%29#WebPageComposer-FrequentlyAskedQuestions%28FAQ%29-WhataboutusingstandardHTMLpagesinWPC%3F].
KM supports relative links in HTML documents so it may be necessary include any dependent files in the same folder as the HTML document.
In case of a web page and its dependent files are stored in different folders you need editing the source html code:
1. use Portal Drive and any text editor (I prefer Notepad++. It has the feature "Search and Replace in files") to open the html source file.
2. search for links to dependent files and add the following pattern: /irj/go/km/docs//<path to an dependent file>/ before a filename, for example:
You have a web page with css file. The page is stored in documents repository under the folder with ID old_pages. The css is resides in css folder.
So the existing code
<LINK REL=STYLESHEET TYPE="text/css" HREF="css/style.css">
should be replaced with the
<LINK REL=STYLESHEET TYPE="text/css" HREF="/irj/go/km/docs//documents/old_pages/css/style.css">
Best regards,
Aliaksandr

Similar Messages

  • 4.2 "Include Standard JavaScript and CSS" option removed ?

    Hi,
    APEX 4.2, Oracle 11g r2.
    I was using the option *"Include Standard JavaScript and CSS"* from the page attributes. It was set to *"No"* in all pages as I manage my own JQuery versions.
    We upgraded to 4.2 yesterday, and I see the option is still here on 4.2.
    I simply tried to set it to "Yes" for a test, but now the option has disappeared !! I can't set it back to "No"...
    In each page, if I set it to "Yes" and apply changes, the option is not here when I go back to the page attributes.
    Bug ?
    Or maybe this option has been removed from 4.2 ?

    Hi,
    yes this has intentionally been removed for applications / pages which do not use the feature. As you mentioned yourself and what we have seen from other customers is that someone doesn't just want to exclude that on a single page and instead want to control it for the application. Which made it a little bit cumbersome, because a developer had to set it for each new page.
    That's why we have created a page template placeholder for *#APEX_JAVASCRIPT#* and *#APEX_CSS#* to give you full control where to load the APEX libraries and if you don't want to load them, just remove them from the page template as Vikram already pointed out.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Including external javascript and css files in servlet

    Hello,
    I am struggling to generate an HTML page from within a servlet using external javascript and css files. I am not sure how to point the servlet to the external files.
    Any code sample to accomplish the above will be much appreciated.
    Thanks inadvance,
    Antana.

    Can't you just include the following in your servlet?
           response.setContentType("text/html");
            PrintWriter out = response.getWriter();
            out.println("<html>");
            out.println("<head>");
            out.println("<title>Getting CSS</title>");
            out.println("<link rel='stylesheet' type='text/css' href='yourCSS.css' />");
            out.println("<script language='JavaScript' SRC='yourScript.js'></script>");
            out.println("</head>");
           //...

  • How to optimize portal javascript and css - where is scriptset property ?

    Hi,
    I've downloaded <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d164c5ee-0901-0010-4fbf-d0856b5c8a84">How to Finetune Performance of Portal Platform</a> document,
    which contains portal performance optimization tips.
    In this pdf file there is a section about optimizing javascript and css code by using
    scriptset  property and there is also appropriate reference to the help.sap.com portal page.
    The problem is that this page is not there so I'm unable to configure this scriptset property.
    Any ideas where can it be found?
    Regards,
    Ladislav

    yes - go into System Adminstration --> System Configuration and then Service Configuration (in the detailed Nav).
    In there, find application com.sap.portal.epcf.loader - In Services --> epcfloader the property you seek is script.set and you should change from standard to optimize.  Then you need to restart the service.
    Hope that helps
    Haydn

  • A month ago my iPhone was stolen, I turned on Activation Lock but it never came out BUT an hour ago somehow my apple ID was changed and someone removed from the account both iPhone and iPad and the iPad was also removely wiped. Can Apple help me somehow?

    A month ago my iPhone was stolen, I turned on Activation Lock but it never came out BUT an hour ago somehow my apple ID was changed and someone removed from the account both my iPhone and iPad and the iPad was also remotely wiped. As soon as I saw it I recover the password and return the access to my iPad. But iPhone is not registered for my apple ID any longer. Can Apple help me somehow? I have all the documents and the iPhone box. Will they lock the iPhone and return me access to it. I'm sure it's been attached to another apple ID.
    PS. the apple ID I'm using on the discussons is not the hacked one.

    Try contacting the Apple account security team and ask: http://support.apple.com/kb/HT5699.

  • Vertical menu using javascript and css

    Hi all,
    I have to build a vertical top-level menu for a customer. for a few days I surfing the internet to find a good sample. The only sample I found is http://javascript.internet.com/navigation/expanding-menu.html. this is what the customer wants. But this sample has just one level of subitems. I need a sample or source with dynamical levels of subitems. I'am not so formiliar with javascript and css to build it by my own very quickly.
    Has someone a sample for me or can someone change the sample so that I can use it in my toplevel menu.
    Richard

    Richard,
           Are you trying to implement this vertical menu at Portal's Top Level Navigation? If so, please be aware that these menu's might run into issues which SAP will not support.
            Also, there might be issues with upgrades on your portal. We have encountered the same for your client implementation and had to finally decided against the idea until SAP released their own version.
           Hope this helps.
    Regards,
    Winston
    PS: reward points if you find this useful

  • Page-embedded Javascript and uploaded images are not cached.

    Hello All,
    I was reading in Wiki APEX and I found this line mentioned as cons: "Page-embedded Javascript and uploaded images are not cached".
    The question that I have posted many questions here how to enable the cache for Images and Javascripts but didn't get it right, is the wiki info right about the cache for images and JS?
    thanks,
    Fadi.

    Look at the bottom of this page as well [http://carlback.blogspot.com/2007/12/apex-and-3rd-party-js-libraries.html]
    Patrick Wolf
    Carl,
    the only drawback with #WORKSPACE_IMAGES# and #APP_IMAGES# is that it doesn't get cached by the browser. So each page request will transmit the hole file again. A caching option for the "Static Files" in the Shared Components would be nice :-)
    About lazy loading with the #WORKSPACE_IMAGES#. I could think about a mod_rewrite rule which translates the additional file request of the JS library into a valid request for APEX.
    Carl Backstrom
    In 3.1 we emit a last modified header now for uploaded files so that should help with browser caching.
    I wonder if anything's changed since then.
    Kofi

  • Delivery and read receipts from mail - how do i do it?

    delivery and read receipts from mail - how do i do it? i used to do this on pc from outlook..... just new at this stuff... thanks

    Hmm, had a bit of a look round but it doesn't look like it's particularly straightforward, esp if you want to turn it on or off on a per mail basis:
    http://email.about.com/od/macosxmailtips/qt/et_request_recp.htm

  • Removing the BC generated JS and CSS files from pages

    Hi,
    We're working on a feature to allow you to generate pages without our styles and JS files. This is what we're planning to build, we need feedback on some automated JS/CSS generation for some pages and modules.
    We will add one flag per "Page Template" flag (to not output module CSS or our JS things)
    The Site Manager/Page Templates/Detail UI will have a new boolean control in the More Options sectionDon't include pre-generated HEAD elements
    Once you are on a page that uses a template with this flag set to on, you won't see in your HEAD the following/StyleSheets/ModuleStyleSheets.css
    We are wondering if you want us to include the validation JS files. Today, depending on the modules you have in the page or the type of overall layout (e-commerce, etc), we're adding the following files (click the image to see the code). Should we keep those or the flag should disable those, too?
    Sincerely,
    Alexandru

    This will be a great little tweak,
    Thank you Alexandru.
    Just to clarify, the tick opton will be on web pages UI?, Template UI?, And Detail layouts like web apps etc - Anywhere where you select a template?
    That would be great.
    I am a bit torn with the javascript, The CSS - Yep go for it, But while I could see some advantages turning that off too, it may cause more problems.
    I think a common use case is wanting to use CSS frameworks like foundation and Bootstrap. You will defiantly want to turn the modulestylesheets from rendering. But then if the javascript also got turned off, when you were doing eCommerce, and some other bits you would have to rebuild your own sollutions which would take up a lot of time.
    My feedback on possible options:
    - Two tick boxes to turn offf css or Javascript - this is a bit more messy though, It would solve the above dilema though.
    - Maybe for now the CSS would be enough for now? Maybe with the re-introduction of Liquid down the line there could be something using that developers can do with conditionals?
    - Both and provide documentation on how and where and when to include the javascripts back in. This would be a bit more messy support wise maybe?
    - A bit more work but could offer more options going forward could help in a lot of ways would be to turn the head into a layout under Layouts.
    This would have tags such as the BC javascript, a tag that renders the conditional .NET from your screenshot. A tag for the CSS and other elements, tag for the meta that is automatically generated etc.
    This would also have the added effect of allowing people to fix up some meta layout issues, and have a bit more control when using frameworks, HTML5 or XHTMl doctype varients etc.
    With Liquid in the future as well and conditionals this would also then allow more posibilities as well.
    The sollution I take it would also be on by default for BC App html pages Alexandru?
    Hopefully that is helpful and I hope others provide feedback for you as well.
    Thank you for the update.

  • Where to put own JavaScript and CSS-Stylesheets in GlassFish ?

    Hi out there,
    we have some applications which are using external JavaScript libraries, CSS-Stylesheets and Images.
    On OHS we had a directory for those files which we aliases in dads.conf.
    Where do we have to put this directory when switching to GlassFish and Apex Listener ?
    Regards and thanks
    Markus

    Hi Markus,
    if you use the "regular" GlassFish, this shouldn't be a big issue. Just create a subdirectory in the GlassFish's docroot-directory for each alias you have now and copy the corresponding content into that directory. See "Copy Oracle Application Express Images" in the Listener documentation - the handling for other static content is similar to the handling for images.
    If you plan to test this with the Embedded Web Container (embedded GlassFish), this will not work that way, because you only have the fixed contexts for images, apex and the listener-internal functions.
    -Udo

  • Mail accept Calendar request but don't remove from Mail

    I would like to keep the email in Mail.app if i accept an calendar invitation.
    currently it get removed when I accept it and places it in iCal.
    How can I do that.

    For POP type accounts, go to Mail > Preferences > Accounts and under the Advanced tab for the account preferences, deselect "Remove copy from server after retrieving a message" and no messages downloaded by Mail will be removed from the server.
    If you have multiple POP type accounts created and accessed with the Mail.app, this must be deselected under the Advanced tab for the account preferences for each account.
    Or select it and below, your options via the pop-up window are:
    Right Away
    After one day
    After one week
    After one month
    When move from Inbox

  • Deleting and realy removing e-mails form IPhone

    It seems that e-mails after deleting are not realy removed from my Iphone 3G (vs 3.0). I delete old e-mails from my wastebin. The wastebin is empty. But when I use the new search function I can see all that old mails again.
    Still the wastebin is empty.
    How to remove them completely from my Iphone ???

    I wonder if this is a temporary bug. Have you tried powering the iphone off and restarting. See if they're still there. Sometimes restarting, clears bugs. You'll be surprised how many DON'T restart their iPhone on a regular basis. For me, it keeps it running in tip top shape

  • HT5622 How can I SEE the hundreds of past apps I've purchased and then removed from my puny 10GB iPod Touch 4?

    I've spent hundreds of dollars on apps selected by 4 grandchildren, and I just as quickly I remove them when they're no longer visiting.  I assumed they were stored in the cloud (I've purchased extra space) and that I could always retrieve them.  But I need a reminder of all of these apps (mostly games) that I've already purchased.  (I even removed them from my Mac Air, which has only 60GB storage.)
    Do I need to perform an addtional operation--like select storage or back-up--to ensure all of these purchases go to the Cloud after the initial download?  Or are they they there "automatically," requiring perhaps my Apple ID and password?   And, if so, where--either on the tiny iPod or my computer or both--can I retrieve a list of my apps in the cloud.  (My reasons are simply:  1. to avoid repurchasing the same app; 2. to remind myself of the games preferred by my granddaughters.
    Thanks for any directions.
    Sam

    Hi Samuel.
    You can see and redownload your purchased apps at app store > updates > purchased.
    The Apps aren't actually in your iCloud storage, what you see is your purchase history with links to the originals in the app store, so you didn't need to purchase extra storage. However you should also be aware that if they are subsequently removed from the store, you wont be able to redownload them.

  • I can't uninstall Thunderbird from my Windows Programs "uninstall list"; why does it not uninstall and be removed from this list?

    Very frustrating...under the Windows "Programs/Uninstall a program" list, Mozilla Thunderbird is still listed AFTER I have removed it completely (I thought) from my computer. I have clicked on "uninstall" several times and nothing happens. I resent the fact that Mozilla has set this up so that it apparently can't be removed from that list.. What's that all about? I have tried to research the problem, even using your website to no avail. All I want to do is get it out of my uninstall/change list. I have not used that program AND won't use it. I don't want that program on my computer/list period. I would appreciate your help.

    This is a fault with Windows application management. Mozilla does nothing to interfere with the install/uninstall process.
    You could re-install Thunderbird to re-synch the applications list and then un-install it again, or you could use a utility to remove it from the list.
    A search for ''thunderbird.exe'' will confirm whether or not it has been truly removed, though you may need to disable all the idiot-proofing that Microsoft implement to stop us seeing the true state of the file system; set it to show hidden files and file extensions for starters.
    Thunderbird is pretty much self-contained. You are free to manually remove the folder the application lives in if Windows is unable to uninstall it for you, though that won't fix the incorrect appearance of thunderbird in the list of installed applications.

  • How to  include external javascript and css resources to a jsf?

    I need to include external css and javascript files to my jsf page. Using the code below does not work because all the styles on the css page are ignored and the functions within the js files are not executed.
    <link rel="stylesheet" type="text/css" href="/resources/styles/style.css" />
    <script language="JavaScript" src="/resources/javascript/util.js"></script>When I try to execute any js function within a script tag on a jsf page I get an object expected error.
    I googled about my problem and found this piece of code for importing styles for an external css.
    <style type="text/css">
    @import url("/resources/styles/style.css");
    </style>How could I add an external javascript file to my jsf?

    Used the relative urls in my first post as well as these, and both were not working.
    <link rel="stylesheet" type="text/css" href="./resources/styles/style.css" />
    <script language="JavaScript" src="./resources/javascript/util.js"></script>The ./ tells that the external file can be found by starting at the current directory and working down the path to the specified file. This is my directory structure. Index.jsf is the file that references the external js and css files.
    -Webcontent
    |_index.jsf
    |_resources
    |__styles
    | |__style.css
    |__javascript
    |__util.js
    Either way I still can't reference the files that I need. Calling a javascript function results in an object expected error, and the styles are ignored.
    If I include the js file directly in the jsf then I can get it to work. I don't want to do this because I have created a handful of seperate js files, and do not want to include all of them in one page. I am using myfaces and tomahawk if that helps.

Maybe you are looking for

  • Can IPod Video be used to store data?

    as topic

  • Any method to query inventory by period

    I need to get the inventory by specific date range, other than using material doc to calculate the inventory(I afraid the performance issue), Any other method can i use. Thanks!

  • Php --?-- xml

    the best way to edit and create xml files in php pages? thanx in advance

  • Wifi Plus Cellular and Bluetooth MAP Profile missing

    I upgraded my iPhone4 32GB from iOS 5.1.1 to iOS 6.0 Two of the main reasons I updated were to get the Wifi Plus Cellular option that was touted and the Bluetooth MAP Profile for text message support in my Acura. Upon updating I don't see either of t

  • Spry Tabbed Font Colours

    With a Spry Tabbed Panel: How can you make the selected panel have a different font colour to all the non-selected tabs? To be clear, it's not the content itself I am talking about, but the heading on the tabbed panel.