How to create a link in the head section of BC template?
Can anyone please explain so that even I can understand the reason why the following script does not work as I would expect?
I am trying to append a line of html code to the <head> section of a Page Template.
<script type="text/javascript">
function loadScript() {
if(window.location.href.indexOf("fish") > -1) {
alert("the url contains the string fish");
var csslink = document.createElement("link");
csslink.setAttribute("rel", "canonical");
csslink.setAttribute("type", "text/css");
csslink.setAttribute("href", "http://www.xyz.com/fish/herring");
document.getElementsByTagName("head")[0].appendChild(csslink);
window.onload = loadScript();
</script>
Secondly if one cannot append to the <head> can one append to the <body> ?
Any help appreciated.
Kind regards
PW
Hello peterwulf,
Looks like you're missing a } above the widow.onload. That should fix it.
Hope this helps,
Chad Smith - BC Gurus
Similar Messages
-
How to create customized link in global header?
Hi gurus,
I had a requirement to create a customized link in global header beside administration link, so when we click that link it should navigate into my client webpage.
Please help me out in achieving this.
Thanks.
Edited by: 934322 on May 8, 2013 12:15 AM
Edited by: 934322 on May 8, 2013 1:22 AMCheck these
http://docs.oracle.com/cd/E25178_01/bi.1111/e10541/answersconfigset.htm#BABHAEIF
http://obieetipsandconcepts.blogspot.com/2012/04/customized-links-on-header-obiee-11116.html
mark if helps
Edited by: Srini VEERAVALLI on May 8, 2013 5:59 AM -
How to create hard links in the Finder?
Does OS X provide any way to create hard links for files, or is using the Terminal and the "ln" command the only way to do so?
You can create an alias in the Finder using File -> Make Alias or by command-option-dragging a file. An alias is similar to a hard link. If you're already aware of this and specifically want to make a hard link and not an alias, that's something you'll have to do in the Terminal.
-
How to add a table in the header section
I would like it to look similar to this:
I would like for this to show on each page of the document. This would be a multi-page standalone document.As Arnis says, this is a routine way of organizing header and footer content.
The H/F text frames typically exist by default in newly created documents. if not, be sure they are Background frames.
You may need to pull up the top edge of the text frame to account for the usually empty paragraph to which the table is anchored.
You can use separate tables for Left and Right page layouts, so that edge-sensitive content like Page# is where you want it on facing pages.
The table can be bordered or borderless.
If you need a date cell that is specific to the revision of that page, well, that's another matter. -
How to add a link in a header created only of a background image
Hi, I created my website with CSS in Dreamweaver. Here is a sample page:
http://www.bfranklincrafts.com/NewSite/BonneyLCalendar.html
The header is created with a background image. How do I put in a link in the header that when they click on Ben Franklin Crafts & Frames would take them to the home page? I have nothing to attach my link to?!?!
Thanks.
LioleePutting a clearpixel or transparent.gif over your background image won't work very well if CSS is turned off.
My preference would be to take your Business Name out of the background image and replace it with real text inside an <h1> tag in the foreground - where it will be visible to search engines, screen readers and translators.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com -
Creating a Link on the Column Heading
Good afternoon,
I know with reports, you can create a link for each cell in the report attributes section. My question is it there's any way to create a link for the column header without hard coding it into the query that generating the results.
Thanks in advance,
IvanIvan,
If you are using the classical reports, you have the option of creating column header using pl-sql block which will be dynamic. Thanks
Regards,
Manish -
Is it possible to create a link on the content of a text annotation??
Is it possible to create a link on the content of a annotation??? Like the content of an annotation is some notes as well as a link...
content -
this is my first annotation(notes)
http://www.google.co.in/(link)
is it possible to create a link for the url given in the content of an annotation??? On click on the url...it should get opened...
please reply its really urgent....How/where do you want to accomplish it?
Within the document? Using Acrobat? Using another application?
Using Acrobat within the document would be possible using Acrobat JavaScript. You can access the annotation objects of your document, and you then can evaluate the properties of each of these objects. Have a closer look at the Annotation Object section in the Acrobat JavaScript documentation.
You will look for the contents property, and evaluate its content. When you have found something looking like a URL, you can create a link (using the rect property of the annotation), and you have what you want; you might then think to destroy the annotation, as it may overlay the link.
Hope this can help.
Max Wyss. -
Can I create multiple links to the same file without duplicating file?
does anyone know if it is possible to create multiple links to the same file using iWeb without the program automatically making multiple copies of that file in the published output? It seems that one file is created for each link.
Thanks!Hi Franz,
have a look at the second method on this page
http://alyeska.altervista.org/en/iWeb_Downloads.html
see if you understand how it works (if you don't, please ask me)
Regards,
Cédric -
How to Show total value in the header 2nd page but based on 1st page footer
How to show total value in header in report builder but i have the total have related with the total in footer.
Example
===============================================
Page 1
Empno Ename Sal
1 Scott 1000
2 ALlen 2000
3 Susi 1000
Total Sal Page 1: 4000
===============================================
Page 2
Total Sal Page 1: 4000 --> How to get it?????
Empno Ename Sal
4 Budi 1000
5 Roger 200
6 George 2000
Total Sal Page 2: 3200
Please Help..
Thankshmm .. what i would do is
- create a placeholder column
- create a field in the header and one in the footer
- have the footer field reference the summary column
- have the header field reference the placeholder column
- create a fromat trigger on the footer field to
store the value of the footer into the placeholder column
so when the report is executed and the footer field is formatted, the format trigger stores the current value of the summary in the placeholder. then the pagebreak occures and the header field is formatted .. printing the value.
there might actually be an easier way, just reference the two fields to the same summary column and in theory, since there is nothing happening between the time when the footer is formatted and the header is formatted, the values should be the same .. however this is a theory and i have not actually tested this. since reports does all kinds of fancy optimization this might have unexpected results, but it's worth a try.
thanks,
ph. -
Is it possible to create a link to the bibliographies ?
is it possible to create a link to the bibliographies ?
How/where do you want to accomplish it?
Within the document? Using Acrobat? Using another application?
Using Acrobat within the document would be possible using Acrobat JavaScript. You can access the annotation objects of your document, and you then can evaluate the properties of each of these objects. Have a closer look at the Annotation Object section in the Acrobat JavaScript documentation.
You will look for the contents property, and evaluate its content. When you have found something looking like a URL, you can create a link (using the rect property of the annotation), and you have what you want; you might then think to destroy the annotation, as it may overlay the link.
Hope this can help.
Max Wyss. -
How to Create a Link to a Discoverer Workbook in Apps11i?-[solved]
I tried to create a link to a disco workbook in apps 11i using metalink document 278095.1. It seems to be working ok for discoverer which is installed on the same machine as the apps11i is on(because when I clicked on the link which I have created in apps11i, I see a default disco4i welcome page which got installed out of the box with apps11i). But we are using discoverer version 10g which is on a different server. Does anyone has ideas on how to create a link for a disco workbook which is on a different server other than apps11i.
Discoverer version is 10g
Apps version is 11.5.10.2
Thanks in advancehi Rod,
I did as you said and it seems to be connecting to the right server. But I have one more problem. In metalink document it says I have to enter the following in the Parameters text field of Function form in apps:
workbook=<(workbook identifier from step2) &PARAMETERS=param_parameter name One~Parameter One Value*param_parameter name Two~Parameter Two Value*
But I dont understand what should I have in place of param_parameter name One~Parameter One Value. Is it the name of the parameter given in discoverer, if so can you give me an example of how to write it. Because when I typed the name of the parameter like &PARAMETERS=Client Id, where client Id is the name of the parameter, it is giving me the following error
ORA-06502: PL/SQL: numeric or value error
Thanks for your help -
How to create a link to Bar Graph......?
Hi,
Can any body tell me how to create a link to a bar graph such that on clicking, it should navigate to specified page in the same application or different application.
I've written the following Region Source for creating link on Graph. Correct if it is wrong.
function onDynamicaBarGraphClick(e)
// Read point name
name=e.data.Name;
// Read point value
value=e.data.YValue;
// You can add onclick even here using the values name and value
link='f?p=&APP_ID.:4:'||:app_session||'::::::';
Thanks in Advance....
Regards,
Manoj
Edited by: user12873839 on Apr 12, 2010 12:11 AMI have replied to you in another post. Help Needed : Changing the Color of Bar Graph Dynamically
Please don't open multiple posts for the same question. Thanks.
--Manish -
How To: Create a link to gatewayed content (e.g. in email)
I apologize if this is too basic of a question but I can't find any results after looking for several hours.
I would like to generate a URL in an email that points to the portal and a specific portlet in the portal. The portlet has limited access rights so the URL should cause the portal to go through the login page and then redirect to the portlet. Can anyone point me to the documentation that describes this or give me an example?
Thanks in advance!
MikeUsing the PTARGS might also solve another difficulty I've encountered passing (dynamic) querystring parms to portlets through the gateway. Your example seems to work great for portlets, but now trying to access a Community page containing a portlet to retain branding elements.
For portal pages, should the ObjectID be the pageID (i.e PageID=0 for the default page) or is the ObjectID for a community page some other value (where in PlumDB is this stored) ? I changed the ClassIDView to 514 which should indicate a Community Page but it's still not loading my page. Adding to my confusion, the PTCOMMPAGES table stores the PageID as a negative value.
Here's my example:
http://portalserver/portal/server.pt/gateway/PTARGS_0_0_0_201_0_514/http%3B/portletserver/ApplicationName/default.aspx?querystring=value
Any thoughts?
re: How To: Create a link to gatewayed content (e.g. in email) Posted by Mike Beniston 5/5/05 9:45:40 AM It turned out that I was pretty close.
If anyone else is interested, here is one way that works.
The PTARGS are _0_userid(leave at 0)_objectid(of portlet)_communityID(if any)_0_ClassIDView(43 = view for portlet)
"http://portalserver/portal/server.pt/gateway/PTARGS_0_0_348_208_0_43/http://portletserver/ApplicationName/pagename?querystring arguments. -
How to create a link between 2 cells in different spreadsheets?
when using numbers on MacBook Pro/IOS X - how to create a link between 2 cells in different spreadsheets?
In the cell where you want the duplicate data to appear from another sheet/table do the following:
type the equal sign ("=") then click the cell you in the sheet table while contents you want to appear in the cell where you just typed the equal sign"
it reads "The cell I click equals the result of the formula or the contents of the next cell I click" -
How to create a link to multiple links in pdf file
how to create a link to multiple links or a button to multiple links in pdf file. this links is goto diferent pages, no web. sorry for my english.
You can print to PDF from the Print Module .
Do you have Adobe Acrobat?
Otherwise install (free) Bullzip Free PDF printer.
http://www.bullzip.com/
Maybe you are looking for
-
Cannot authorize my mac and all iphone apps will be deleted!
As I sync my iphone to my mac, at the end of the syncing process, I get the message: (My OS is in Swedish, so these are my own translations into English.) "This mac is no longer authorized for apps installed on the iphone device. Do you want to autor
-
Password Protection of PDF file generated thru SAP
Hi, I have written a program to send payslip through email . This mail sends the payslip as a PDF attachment. I want to password protect that PDF document, so that it asks for a password before being opened by the employee. Your suggestions will be h
-
WRT150N loses internet only when encrypted
I have a new150N, v1.1, latest firmware that works great when unsecured. When I apply any encryption the router periodically loses its connection with the internet requiring a power off reboot. Is there a solution to this or should I burn it with DD-
-
Like I mentioned above, I followed everything in the instructions but when I view the flash in apps it still says plugin is needed. I still can't view any flash program.
-
SAP REFX - HOW TO RAISE PROFORMA INVOICE FOR CONTRACT
Dear Experts, I am looking for a clarification WRT to REFX - lease in scenario. Actually we are using REFX for paying RENTALS / CAM charges.....etc for the rental objects. I would like to know if i want to Raise a Proforma invoice / Invoice based o