Easy "Add Page to Your Favs" JavaScript

Hi all,
I created this script and thought I would share. Not sure if there is a better way to do this, but this is how I did it.
I wanted to create a link that would automatically add the page the user is on to the Portal favorites making easier to get to that page. Here is what I came up with. What is neat about this script is that you should just be able to drop it in a Text item or HTML portlet and it will just work. No coding other than maybe the formatting at the bottom.
- Paul
===============================================
<SCRIPT TYPE="text/javascript">
function add_to_favs() {
var ThePage = prompt ('What do you want to call your shortcut?','')
if ( (ThePage == null) || (ThePage == "") ){
alert('Shortcut not saved');
} else { 
var URL = location.href
var page_link = "/pls/portal/PORTAL.wwv_component_control.add_to_favorite?"
page_link = page_link + "p_module_id=4686602048";
page_link = page_link + "&p_name=" + escape(ThePage);
URL = URL.substring(URL.indexOf('//')+2, URL.length);
URL = URL.substring(URL.indexOf('/'), URL.length);
page_link = page_link + "&p_url=" + escape(URL);
alert("Your shortcut to " + ThePage + " has been saved.\n Click refresh after your click ok to see the link in your favs.\n " + URL);
window.location.href = page_link;
</SCRIPT>
<font color="#FFFFFF" style="font-size: 11px;font-weight: normal;text-decoration: underline;vertical-align: top;" face="arial">
Add to Favs</font>

Your're in luck; we already have one:
http://www.oracle.com/technology/syndication/rss_otn_dev.xml
(needs an update however)
Regards, OTN

Similar Messages

  • How can i optimize my SEARCH ENGINE???I use godaddy.i contact them and they give me this conclusion:Search engines are not pulling up your other pages on your website because it is created with javascript. the content on the pages, (photo gallery.....

    conclusion from godaddy:
    Search engines are not pulling up your other pages on your website because it is created with javascript.
    the content on the pages, (photo gallery, My Recipes/Blog, History, Friends) need to be formatted to HTML, PHP or CSS. No search engines (google, Yahoo, Bing) can crawl//analyze webpages built with javascript.
    See if Apple allows iweb to create the pages in HTML format and ask how to make those changes.
    I spend more then 1 hour on the phone with them but we didn't find the solution...
    please i need help because like this nobody can rich my website...
    www.chefdiego.com
    thank you

    The part of iWeb pages that give the search engines problem is the navbar.  That's javascript based.  One way to get around that is to create another blank page in the site that's not  included in the navbar. 
    Add a text based navbar in that page with just the other pages in the site. 
    Also you can use that page for creating the sitemap for Google at Create your Google Sitemap Online - XML Sitemaps Generator.
    Have you let Google know your site exists? This website describes how to get it recognized: Get your iWeb website found in search engines like Google Yahoo MSN and Bing.
    OT

  • Acrobat XI Pro - can't add pages :(

    I was using Acrobat 9 Pro - I could add pages easily. With XI - it hangs or crashes just before the screen "add pages before or after" - it's driving me mad - might uninstall it and go back to 9 which was quite stable. Lots of other new features/layouts I hate. Especially the small space available for tools you use regularly

    You will need to get LiveCycle Designer, which is now a separate product.
    XFA forms created with LiveCycle Designer can be either static or dynamic. Static ones are very similar to forms created in Acrobat (AcroForms) in their behavior. Dynamic forms can have auto-expnding text fields, rows added to and removed from tables, entire sections generated and removed at run time, and a number of other dynamic behavior. So which you choose really depends on what your needs are. Many static XFA forms could be created as AcroForms with no loss in functionality. A big downside to XFA forms nowadays is the lack of PDF viewers for mobile devices that support them. AcroForms have always had more support in general.
    JavaScript is used in both XFA and AcroForms, but each has it's own object models. XFA forms also support FormCalc, which isn't a full blown programming language like JavaScript, but it does have a number of useful features.The types of controls are pretty much the same, though an XFA forms support an image field and a good number of 1D barcode types with bar code fields.

  • Is it possible to make one page of your website private?

    i have a public website but want to make one photo page password protected so i can test the images out with select friends (artwork). is this possible or is password for the entire site only?

    No. But you can create a second site with those photos, protect it and link to it from your public site.
    You can even have the page of the protected site appear in the navbar of your public site this way:
    1 - create and publish the protected site
    2 - in your public site create a blank page and name it for the protected page.
    2 - add an HTML snippet with the following code to the blank page:
    <script type="text/javascript">
    parent.window.location = "URL TO SITE/PAGE YOU WANT TO REDIRET TO"; </script>
    Thanks to Cyclosaurus for the code
    When a visitor clicks on the link in the public site they will be immediately redirected to the protected site/page. You can add a similar blank page to the protected site to send visitors back to the public site.
    The Contents page of my demo sites (3 of them) are setup that way. I only have to edit one page (in the Contents site) instead of the Contents page of each of the three demo sites. Go to this page in Demo_1 (Embedtests) and click on the Contents link. Watch the URL field as you're taken to the Contents page.
    OT

  • Add pages to community links -- what's missing

    Community links display external links, documents, and users fairly reliably. I'm having trouble linking to an internal page, though, with the "Add Page" control. I can launch the page browser and select the page I want, but when I click OK, I'm getting a very descriptive message: "Error - The server has experienced an error. Try again or contact your portal administrator if you continue experiencing problems."

    Here is the info on the case I filed
    Problem Description:
    I am trying to add the pages to the community links portlet.
    It is not working
    I am getting
    Error - The server has experienced an error. Try again or contact your portal administrator if you continue experiencing problems.
    ### Detailed Problem Statement ###
    ptspy has the following error
    ptspy has the following error
    549 portal.ssurapan-d5a940.Administrator 3-9-2009 0:32:58.469 Error Portal_Browsing ACTIVE ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' com.plumtree.portalpages.browsing.editors.sitemap.sitemapfolderplugin.SiteMapFolderPlugInView FeaturesView::DisplayJavascript The following error occured when trying to display the JavaScript: null
    java.lang.NullPointerException
    at com.plumtree.uiinfrastructure.statichelpers.GeneralHelpers.Replace(GeneralHelpers.java:85)
    at com.plumtree.portalpages.browsing.sitemap.linkselector.SiteMapLinkContainer.GetSelectedCommPagesAsStringForTree(SiteMapLinkContainer.java:206)
    at com.plumtree.portalpages.browsing.editors.sitemap.sitemapfolderplugin.SiteMapFolderPlugInModel.GetSelectedCommPagesAsString(SiteMapFolderPlugInModel.java:744)
    at com.plumtree.portalpages.browsing.editors.sitemap.sitemapfolderplugin.SiteMapFolderPlugInView.DisplayJavascript(SiteMapFolderPlugInView.java:493)
    at com.plumtree.portalpages.portlets.sitemap.prefs.SiteMapPortletPrefsDP.DisplayJavaScriptFromChild(SiteMapPortletPrefsDP.java:92)
    at com.plumtree.uiinfrastructure.form.AFormDP.Display(AFormDP.java:499)
    at com.plumtree.uiinfrastructure.interpreter.Interpreter.HandleDisplayPage(Interpreter.java:2140)
    at com.plumtree.uiinfrastructure.interpreter.Interpreter.HandleRequest(Interpreter.java:659)
    at com.plumtree.uiinfrastructure.interpreter.Interpreter.DoService(Interpreter.java:191)
    at com.plumtree.uiinfrastructure.web.XPPage.service(XPPage.java:300)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:176)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3495)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    here is the answer from support
    As we discussed, this issue has been reported as bug # 7824743. The bug is still open and the current workaround from the bug notes is to use the ‘Add Links’ button and paste in the url from the desired page you want to add. This works fine, however you will need to have the url beforehand.
    I have documented the bug number in your ticket and also added your ticket to the bug notes. As per Oracle policy I will now place the case in soft close status. You can check the status of the bug directly on metalink if you are looking for status in the future.

  • Page 0 : HTML Header : Javascript

    Hello,
    I've written a little bit of Javascript that pops up a custom window.
    Now, I can put this in the html header of an individual page and it works.
    However, I thought that I could put this in the html header of page 0 and it would then be inherited by every other page in the application.
    This would then mean if I needed to change it, I could change one reference, as opposed to one reference per page.
    It would also mean I could keep all my javascript in one place.
    This doesn't work for me, does this mean that only page items are inherited onto every page?
    Thanks.

    Hello,
    Page 0 will not replicate JavaScript code in the HTML header page or the On Load section. It will replicate JavaScript code within a region's HTML header or footer.
    However, I don't think using page 0 to make JavaScript code available to all pages is the right way to go. The "best practice" is to maintain an external JavaScript code file, and load it on every page using the page template. This is the technique the APEX builder using to load its built-in JavaScript functions. In the Header section of your relevant page template, just add something similar to the following:
    <script src="/i/javascript/MyScripts.js" type="text/javascript"></script>This will give you all the benefits you mentioned in your post.
    Regards,
    Arie.

  • Automatically add page numbers to PDF

    Hi all,
    I've got a pdf document with forms which also contains a "Add Page" button which adds another matching page.
    What I would like to add to is a "Page 1 of n" type field that auto updates with the amount of pages in the document.
    I have seen something similiar in previous posts but these were dependent on pressing a button to update the page numbers or was implemented in a way I do not understand.
    Please keep in mind I have no clue about Javascript, the only reason I have gotten so far is info from these forums!
    I have access to the Adobe Creative Cloud Suite of tools so Acrobat Pro, Illustrator etc is at my disposal for the above.
    Hope ive added enough info, thanks in advance

    Hi gilad,
    Thanks for your reply.
    I added your script and it worked on the first page, but as soon as I click my add page button the first pages numbers goes from "page 1 of 1" to "page 0'11 of 2". The second page, which I added via a template, then shows "page 1 of 1".
    Any thougts on this?
    I apprediate your help so far

  • ? how to add page numbers in pages 5.2, starting with 2.  Pages '09 had an option to not show folio on page one.  Also any how to do left and right folios for a Tabloid?  Many trhanks

    ? how to add page numbers in pages 5.2, starting with page 2.  Pages '09 had an option to not show folio on page one.  Also any idea how to do left and right folios for a Tabloid?  Many thanks  . . .

    Hello jacquemac,
    Your first question:
    There might be a better way of achieving what you wish to do, but following these steps could help you out.
    You might want to blend in Thumbnails and Invisibles either with (cmd+shift+i and cmd+alt+p) or over the View section in the Menubar.
    1. go for Documents (right end of the Toolbar) -> Section
    2. place your cursor at the very top of your second page and click "Create new Section->Starting with this page" in the side bar on your right.
    (what you are actually doing next is setting the pagenumbers for each section you created. You can see your sections in the Thumbnail view.)
    3. click on your first page (the first and only page of your first section) and mark the checkbox "Hide on first page of section"
    4. click on your second page (the first page of your second section) and  "Insert page number" -> start at 1
    Your second question:
    Im not quite sure i understand what exactly you want to do here. One page, two columns, each column with another page number? As far as i know this is not possible.
    greetings jl

  • Add page break to tables in a section report

    I have one sectioned report when I export to excel I can manually add page breaks so that different regions print on a seperate page. However I want to do this in webi.
    In webi when i highlight the table in the section that i want to have on a seperate page the break icon is greyed out so not sure if its possible to add breaks to a report that contains only 1 section? if so how to do it?

    hi,
    I think your requirement is to display each table on a separate page.
    If so, then select the table in section, Go to properties tab, Check the option 'Start on new Page'.
    Now each sectioned table will be displayed in each page.
    Regards,
    Vamsee

  • Can you add page numbers to the PDF version?

    Can you add page numbers to the PDF version?

    Hello saradianapasik,
    If you start with a document created with Acrobat Pro, or exported from your word processor as a .pdf, then you should include page numbers in that originating application. After you have exported a .pdf form from FormsCentral, it is no longer editable.
    I hope that helps,
    Brian

  • How do I Add Pages to Chapters?

    I am trying to lay out a book with about 15 chapters.  I start by ading some text to a chapter page but that only accepts a few lines.  I thought iBooks Author would add pages automatically as I added more text but that doesn't seem to be the case.
    I added Section pages after the Chapter page but that format is different and it seems that Sections are for a different purpose than Chapters.
    I know iBooks Author is intended to be for textbooks so maybe I am using Chapters in the wrong way.  Should I not use Chapters and just use Sections to build my book?  If I do that, with the TOC still recognize those different sections as Chapters?
    What is really the different between Chapters and Sections?
    I could really use some help.
    Thanks,
    David

    David,
    Download this book Publishing With iBooks Author, from O'Rilley, it's free.
    http://shop.oreilly.com/product/0636920025597.do
    There is a section in this book addressing Chapter & Section titles and how we can screw things up. I don't know if this applies to your situation, but the book is filled with good advice.
    As for redoing the book, set u the new book with blank chapters, sections, pages and then just copy & past between. It goes very fast.
    All the best,
    - Fabe

  • Besides a PDF Portfolio is there another way to add Pages to a PDF that have fields of the same name and still have them Unique?

    Besides the PDF portfolio is there another way to add pages to a PDF file that have the same name in form fields and still keep the different pages unique

    ■ Use '''Tools -> Options -> Applications ->''' <br> then look under content for Adobe Acrobat forms etc;
    <br> note a choice of options is usually available
    * see [[Options window - Applications panel]]
    Firefox is of course a web browser. <br>Acrobat reader is Adobe's program used to read and display the pfd files on your computer. Other programs may be used instead of Acrobat reader. You would normally have the Acrobat program and the pdf file present on the local computer, often both on the same hard drive, if you were opening individual pdf files directly with Acrobat.
    Firefox uses a plugin so that it may use Acrobat to open pdf files and display the results within a firefox window or tab. If you do not have that plugin installed, or it is not enabled firefox may be unsure what to do with the file and offer to save it to whatever your default local download location is, without attempting to open the file in firefox.
    ■Also see
    * [[Opening pdf files within firefox ]]
    *[[Using the Adobe Reader plugin with Firefox]]

  • What is an easy web-page creation program for use with MacBook Pro?

    Can anyone suggest an easy web-page creation program for use with MacBook Pro?  I have used FrontPage with my PC, but am changing to a MacBook Pro.

    It largely depends on your skill level. Do you want to write web page code, or do you want to just design something and have it turn into a web page automatically?
    If you are more of a designer, try these:
    RapidWeaver
    Freeway Pro
    Muse
    If you want to write web page code, try these:
    Coda
    BBEdit
    Dreamweaver
    If you really don't want to write the code and want the best experience for your viewers, and you want to spend the least amount of time on it, my recommendation is:
    No program at all.
    Instead, sign up with a web site company like:
    WordPress.com (hosted by them) or WordPress.org (hosted on your server)
    Squarespace
    Wix
    The reason is that these companies have fully operational, nicely designed web site templates that you just fill in with your words and pictures, and they are ready to go. They also give you these benefits:
    Already designed to the latest web standards
    Already designed to resist hackers
    Already designed to work on all browsers
    Already designed to automatically adjust the page for readability on desktop, laptop, tablet, and smartphone screen sizes
    Already designed for accessibility
    Already designed for Search Engine Optimization so that your page will be found on Google
    Already designed with social media links built in if you want
    It is not like the old days where you build a site in Front Page and you assume it will only be seen on a desktop computer. If you build it yourself with a web page program, do you have the knowledge to make a site that works on all of the different web browsers and mobile devices, and is friendly to search engines and social media? If you don't have those skills, working with a website company can be a lot better, faster, and more reliable than trying to hammer all of that out yourself using code in some app.

  • Page menubar with/without javascript

    Hello All,
    I have a basic question.  I am designing a website, where the same spry menubar will be at the top of every page.  And each page of the site will have that same menu.  Now, as time goes, that menubar will change here, and there.  I wanted to know, is there any way I can create this setup without having to copy/paste all the menubar info on every page.  This wouldn't be a problem if it was a one time deal, but as changes are made to the menubar, EVERY page will have to be updated.  Is there a way around this, not using javascript (of course I can make a function to write directly to the page and call that on each individual page)?  Please let me know.  If this question is unclear, please ask me to clarify whatever is unclear. 
    Thanks in advance!
    -R

    Efficiently setting up and maintaining repetitive sitewide content (headers, footers, navbars, sidebars, banners etc) is an issue faced by all web designers.
    Some use Dreamweaver Templates and Library items.
    However, the best solution by far is to set up repetitive content as a Server Side Include (SSI), as Nancy mentions.
    SSIs are a generic web technology (not a Dreamweaver feature) implemented slightly differently on different web servers. But the end result is the same.
    Converting a Spry Menu Bar to a Server-Side Include
    http://foundationphp.com/tutorials/sprymenu/ssi.php
    Once you've added the Include code (single line) to each page of your website, you can forget about updating each individual page. All you then update is a tiny file containing a HTML fragment and upload that file to your server. For example, a Spry menu bar implemented as an SSI is reduced to a simple unordered HTML list.
    Note that SSIs can be used for any repetitive page elements and you can set up as many SSIs per page as you like (5 or 6 per page is not uncommon).
    Note: There is a tiny performance hit on the server whenever an Include is called in the page code. Each Include in the code asks the server to perform a task, such as finding another file, before sending the page to the browser but I've never found Includes to adversely affect any pages download times because I use so few per page.

  • SDN - Wiki - Add page permission

    Hi,
    I wish to add a page in ABAP Development and Programming area, but it says that "You dont have permissions to add pages in this topic". Instead the topics which are not relevant to my domain are permitted. What should be done ?
    Please advice.
    Regards,
    Keshav.

    Hi Keshav,
    You can submit your Wiki Contribution in [Wiki Stage - Add Page|http://wiki.sdn.sap.com/wiki/pages/createpage-entervariables.action?spaceKey=stage&templateId=113147905].  Wiki Moderators will review the content and will move it to the relevant Development Area.
    Regards
    Vinod

Maybe you are looking for

  • GUI_DOWNLOAD blank lines in the middle

    Hi All, I am using 'GUI_DOWNLOAD' FM to create excel file of my internal table data; Internal table is having 220 fields and expects to create 220 columns in excel file; In the middle of the excel file I get several blank lines on and off with only v

  • Scanning photos and Adobe Photoshop Elements 9 system requirements

    Hello all- A long, involved question here, so bear with me. I have a Power Mac G4, still working fine even though it's almost 8 years old. I want to scan a number of photos for use in a Final Cut Pro 5 project. (I have an Epson Workforce 610 all-in-o

  • Report for payment made to vendors

    Hi I have made 100 payments (through F-53) to 20-30 vendors. Some were paid on due date and some were paid after due date. So i want the report which will show List of payments made within & over due dates. Please let me know the TCode for the same

  • Using dll in a procedure

    Hi All ! Is there some way to use a dll file in the oracle stored procedure? Any Oracle supplied Package? and can i have a site for the material regarding "Oracle Supplied PL/SQL Packages Reference"

  • How do I add music to a PDF presentation

    I am making a presentation of a yearbook for our school reunion and wanted to add the school song, fight song to the presentaion. Is there an easy way to do this?