Access to the head tag in a portal generated page

We have a situation where we need to put some javascript in the <head> tag of a page so that it can be accessed by a javascript portlet. Any ideas?
-Rob

This capability is not there in 3.0.6 and 3.0.7. In 3.0.8 (due out end of this month), we have added a template capability which allows you to assign an html template to a page. The template could contain the javascript.
In the interim, others have created an html portlet that contains the javascript, placed it on the page and turned it off by default. This works, but any user with customization rights to the page could remove it, so the title should read something like 'Do Not Remove!'

Similar Messages

  • How to print between head-Tags of a Portal component

    Hello,
    is it possible to print between the -Tags of the generated HTML-Code? I need to insert a JAVAScript between the tags.
    Currently i am simply using the Writer-Object in the doContent() to print out the HTML-Code. But i found nothing how to access the head?
    With best regards
    Edited by: Björn Karpenstein on Aug 19, 2008 9:12 AM

    Hi,
    One way of doing this is by creating a new Servlet Responce in doContent method. This way you can set the head tag by yourself.
    Here is the code:
    // get the reference to the ServletResponse (exclusivly) and set the content type to HTML                         
    ServletResponse sResponse = portalComponentRequest.getServletResponse(true);                                                    
    sResponse.setContentType("text/html");                                                                           
    // get the reference to the PrintWriter                                                                         
      PrintWriter writer = sResponse.getWriter();                                                                               
    // write the HTML header                                                                               
    writer.write("<html><head></head><body>\n");
    Check if this suites your requirement, if not let me know.
    Regards,
    Praveen Gudapati

  • Can I prevent the #HEAD# tag from loading jQuery in APEX 4?

    I am using APEX to generate a report that is specifically designed to be viewed on a BlackBerry phone.
    When accessing the APEX 3.2 version of the application from a BlackBerry phone it works fine.
    When accessing the APEX 4.0 version (exported from 3.2 and imported to 4.0) the BlackBerry browser reports the following error:
    HTTP Error 413: Request Entity Too Large
    The page you requested could not be loaded. Please try loading a different page.
    I have tracked this down to the use of jQuery-UI by APEX 4.0.
    I can reproduce the error in APEX 3.2 by loading the jquery-ui.min.js file in the Page Template.
    So, is there any way of preventing APEX 4.0 from loading jQuery or jQuery-UI by default in the #HEAD# tag of the page template?
    Richard

    Hi,
    You can set page attribute Include Standard JavaScript and CSS to No.
    http://download.oracle.com/docs/cd/E23903_01/doc/doc.41/e21674/bldr_pg_edit_att.htm#BACHFFBE
    Of course then any of Apex JavaScripts are not loaded
    Regards,
    Jari

  • How to remove the header tag in the XML data ?

    Hi All,
    I am sending an XML data from SFTP to Proxy, in that I want to remove the header tag (first tag) from the xml, while loading the data. how to do that ?

    Hi,
          It is not about the thing that, whether your source is XML or flat file. If you dont want some thing in your source file , dont consider it and dont map it with your target structure. think that, your not getting the header in your source.  What is the header here.
    <Emp_details>
    <Emp_Id> Employee No </Emp_Id>
    <Emp_Name> Employee Name </Emp_Name>
    </Emp_details>
    <Emp_details>
    <Emp_Id> 1234 </Emp_Id>
    <Emp_Name> xxxx </Emp_Name>
    </Emp_details>
    <Emp_details>
    <Emp_Id> 5678 </Emp_Id>
    <Emp_Name> yyy </Emp_Name>
    </Emp_details>
    you have two fields under node Emp_details. What do u want to avoid here?
    Regards,
    Reyaz

  • Problem applying Spry tool tips to child pages because the head tag is in a locked region

    I’m new to DW and migrating a site from GoLive CS2 to DW CS5. The site uses templates created in GL CS2. I have stripped out as much GL stuff as possible.
    I want to use the SPRY tooltips as a way to show captions for graphics that are on some of the pages (I used to use an Open New Browser window for that but I don’t have as much control in DW as I did in GL). But when I try to apply SPRY tooltips (or any SPRY widget for that matter) I get the following message:
    “Required links could not be added to this file because the <head> tag is in a locked region. To insert this content, open the template file ‘xyz.dwt’ and either unlock the <head> tag or add this content to the template.”
    I am not sure how to go about solving this problem. In the template there is an editable region for adding graphics but in the template itself there are no graphics or anything else to apply a tooltip too. Also in the child pages there may be more than one place to use a tooltip. So that suggests to me that I should not add a tooltip to the template. That brings me to the other option.
    How would I go about unlocking the  <head> tag in the template, without messing everything up?
    Or, should I detach any page from the template when I want to add tooltips then reapply the template? I am planning to ditch the GL template anyway and apply a DW template to all the pages anyway.
    Any suggestions as to what I should do?
    Yours faithfully
    Branko
    PS I’m using Mac with Snow Leopard.

    I found a solution.
    I just made a transparent PNG. Put it in an inconspicuous part of the template. On the child page I could make as many copies as I needed making sure I provided id tags for each use etc.

  • I can't print web pages or emails. All I get is a blank page with nothing but the headed tag at top.

    I can't print my emails. Tried to get help from my email provider. They asked if I could print pages. I tried and found out that didn't work either. All I get is a blank page with the header tag at the top.

    Hi,
    Please see [http://kb.mozillazine.org/Problems_printing_web_pages this]. If the web page has a Print button/icon you can try to use that. You can also try right-clicking on the relevant section of the page > '''This Frame''' > '''Print Frame'''.
    [https://support.mozilla.org/en-US/kb/fix-printing-problems-firefox?e=sph&redirectlocale=en-US&as=s&s=printing&r=0&redirectslug=Firefox+prints+incorrectly Fix printing problems]

  • Need to remove the header and footer regions on one page

    Hi,
    I have a requirement to remove the header and footer regions on one page only. The regions I'm referring to contain the following:
    Header:
    Company logo, Home link, Logout link, Preferences link
    Footer:
    Copyright info, Privacy Statement, Home link, Logout link, Preferences link
    These are the standard Oracle header and footer regions/page items, so I am not specifying a particular page name, although it would be the create time cards page we want to modify.
    Also, we only want to remove these regions/items from ONE page, not an entire responsibility.
    Any help is greatly appreciated.
    Thanks!
    Suzanne

    Hi,
    In order to hide,
    Home link, Logout link, Preferences link
    Use this code in the processrequest of the controller on the page on which you want tohide these
    OAPageLayoutBean page = pageContext.getPageLayoutBean();
    page.prepareForRendering(pageContext);
    page.setGlobalButtons((oracle.cabo.ui.UINode)null);
    And for hiding the Copyright info, Privacy Statement:
    Click on Personalise page link
    then Click on Choose Context
    Choose "OAFooter" as Scope
    and click "Apply"
    and then Personalise the Copyright and Privay Statememnt icon and set rendered as False.
    Thanks,
    Gaurav
    Edited by: Gauravv on Aug 25, 2009 8:36 PM

  • Is there a site-wide title tag that I can edit or are the title tags specific to each individual page?

    Is there a site-wide title tag that I can edit or are the title tags specific to each individual page?  I'm working on my title tags for Destination West at http://xibuhaohua.com and as you can see, it is in Chinese here as 西部豪华 but it's English here at Destination West.  So, I'd like to know if I can edit each separately because I think they should be in different languages.

    You can set the title for each page in the Page Properties dialog.
    Note that on a master page, you can set a page title prefix or suffix if you'd like all your pages using that master to share a title prefix or suffix.

  • Is the license terms allow you to generate pages using Wizzard Business Catalyst and publish them on other servers. As the export side and run?

    Is the license terms allow you to generate pages using Wizzard Business Catalyst and publish them on other servers. As the export side and run?

    Our iPads work just fine behind a firewall and the Lightspeed filtering solution in an education environment.  If your proxy solution cannot be configured to support IOS maybe you should be looking at another vendor.  Products such as 8e6 and Lightspeed can be deployed without the use of a traditional proxy set up.
    http://www.m86security.com/products/web_security/m86-web-filtering-reporting-sui te-deployment.asp
    http://www.lightspeedsystems.com/products/Web-Filter.aspx

  • 10.6.8 upgrade - I want Apple to fix it, not me have to do the work.  I no longer have access to the header menu for the desktop.  No History, no QUIT.  Is Apple aware? Planning a fix for the fix?

    I installed the 10.6.8 upgrade over the weekend and now have no access so the main desktop menu.  I am having to hit power off button to power down.  The links work for one application load after I boot up.  Cannot tell if it is is just Safari or not.  DOes Apple monitor these postings and do additional testing to correct?

    balto,
    You'll have to forgive me but being from an IT background there are certain things you take for granted, such as backups!
    That said when I really needed my Time Machine backup a couple of years ago, it did an epic fail on me.  Ever since I have been backup paranoid.
    I now have approx 6 current backups of data including one offsite.  Call me over cautious but its better to be safe than sorry!!  I now use a combination on Time Machine and Carbon Copy Cloner to produce periodic backups and also bootable clones.  With external drives being so cheap these days there really is no excuse.
    So taking on board your comments and those of others  :-
    i)     Take a backup, either via Time Machine or some other cloning route such as Carbon Copy Cloner.
    ii)     Repeat step i) but to another disk.
    iii)     Download the COMBO OS update - NOT the delta one.  It will take longer but its worth it.
    iv)     Turn off Mac
    v)     Disconnect ALL external peripherals except keyboard/mouse e.g those devices required to boot.
    Vi)     Turn off Mac
    vii)     Boot Mac in Safe mode by press shift key whilst switching on the Mac and leave shift pressed until Apple logo appears.  Mac will take longer to boot but will present user login with red Safe mode tag.  Login.
    viii)     Run a permissions repair from Disk Utility.
    ix)     Run COMBO updater and allow the Mac to reboot.
    x)     Login as normal but immediately run permissions repair again from Disk Utility.
    xi)     Reboot Mac for final time again and all should now be well.
    Think that should just about do it though as with everything be careful and use at your own risk.
    Regards
    NIALL 8-)

  • PLease Help: Does anyone know how to retain the Scope in the Header Tag when converting a table in

    I am trying to convert aa Word Document with Tables containing Data and Header Columns to retain the Scope="col" when it is converted to PDF.
    After the PDF is created, I check my Header Tags and everything looks fine however the Scope is null and I need to somehow retain scope=columes in order to certify this report is 508 compliant.
    For those who are interested; the html should be:
    <th scope="col"> Color </th>
    My html is coming across the PDF distiller is only <th >     </th>
    Maybe there is another piece of software that does this correctly? I tried OpenOffice - the same problem occurs.
    Thank you
    Mark

    Please post in the Acrobat forum. This forum is for the Adobe Distiller SERVER product. Your question does not involve Distiller Server.

  • Put this in the head tags if I don't want page to index?

    Hi!
    Is this the line of code I paste in my
    <HEAD></HEAD> tags if I do not want the page to index
    at all (ie: no robots finding it)?
    <meta name="robots" content="noindex,nofollow">
    Is that all?
    Thanks!

    actually, the best method is put a file called robots.txt in
    the root of
    your site.
    content looks like this:
    User-agent: *
    Disallow: /filename.htm (this prevents a file from being
    indexed)
    Disallow: /foldername/ (this prevents a folder from being
    indexed)
    Google robots.txt for many more options.

  • How to insert a script code before the /head tag?

    Would like to insert a <script> code inside all the pages of my website, and it has to be placed before the </head> code.
    Can I manage this with muse? Else, each time when I export the site as HTML, I need to open the updated file(s) and copy and paste again the SCRIPT code in the HEAD.

    Adding scripts to the head section of your documents is not currently supported in Muse, however it is planned for future versions of Muse.
    You can add links for scripts using Object -> Insert HTML, but they will be inserted roughly at the position of the HTML page item.

  • I am trying to use the embed tag - to embed an html page with in a page embed src="page.html" /

    <pre><nowiki><!DOCTYPE HTML>
    <html>
    <body>
    <embed src="page.html" />
    </body>
    </html></nowiki></pre>

    The <embed> tag works in Windows IE 9, and Opera, Now! But not in Firefox yet. Whats up with that? I guess we will see who is going to be left behind.

  • How can i change the Oracle applicaiton server 10g portal home page

    I have this page http://<site>/portal/page?_pageid=#,#&_dad=portal&_schema=PORTAL and i want to change the page . i can go to the edit mode and change it but i want to really change at the code level. THanks in advance

    You can accomplish this via Portal. Log in as a site administrator (Portal or Portal_Admin). On the Portal Builder page, go to the Services portlet & click on the Global Settings link. Here you can set the Default Home Page from a list of pages in Portal.
    If you change the default home page, this will also impact your administration accounts. I strongly recommend changing their profiles to use the Portal Builder home. Otherwise you may lock your admin accounts out from being able to make changes. You can either 1) create a group, add admins to group, & create a group profile or 2) modify the admin account's profile(s) In the main Portal Builder page, on the right you should see portlets for Portal User Profile and Portal Group Profile & they each have a Default Home Page settings. The order of precendence is Global -> Group -> User.

Maybe you are looking for

  • "Access denied" when opening report on RAS Server

    I'm sure I'm doing something wrong, but I've only been able to open a report using the rassdk protocol from the server where my java code is running.    This is fine, but I was hoping for efficiency sake that I could have reports reside on the RAS se

  • Labels created in appleworks need to be converted for printing shop

    I have about 100 labels to send to a printer but I am told that a graphic artist must redo these as they cannot be converted as quality would be mediocre if saved from Appleworks to pdf or Jpeg.  Does anyone know how the quality of each label can be

  • Mac pro part# FA356LL/A - need to add compatible Airport card?

    Mac pro part# FA356LL/A (refurbished i think changes the part number from MA356LL/A)- but im not sure... I need to know what airport card it can take?  802.11b/g/ or n It never had one and was always used via network cable. Now i want it to have wire

  • Number of Vendor in the given date range

    Hi All, I have a requirement like I need to calculate Total Number of Vendors in a given Date in Report Level. Could anyone please let me know how to do this? Thanks in advance. with Regards, Mahi.S

  • Oracle 8i for Novell Netware

    I am trying to find a trial version of Oracle 8i (8.1.5.0.4) Enterprise Edition for Netware to test with Novell Zenworks for Servers 3.0. We currently use the Unix/Solaris versions of Oracle, but want to test on our NetWare servers. Can someone direc