Adding Javascript to pages

Hi,
I'm trying to add Javascript-function to the standard OIM-catalog-page. But I haven't had any success yet.
I'm trying to do this by adding <ad:resource type=""javascript>MyJavaScript< ad:resource>in an exported sandbox. When I import the sandbox and activate it, the page crashes saying Stream Closed - ADF_Faces-60096 Server Exception during PPR#21
What am I doing wrong? I have tried to remove everything within ad:resource. But I still get the same exception.
Here is the xml.
+<?xml version='1.0' encoding='UTF-8'?>+
+<mds:customization version="11.1.1.61.92" xmlns:mds="http://xmlns.oracle.com/mds" motype_local_name="root" motype_nsuri="http://java.sun.com/JSP/Page">+
+<mds:insert parent="pgl2" position="first">+
+<af:inputText xmlns:af="http://xmlns.oracle.com/adf/faces/rich" label="Label" id="e9368104424" visible="true" value="#{pageFlowScope.catStateBean.searchExpr}"/>+
+</mds:insert>+
+<mds:insert parent="pgl2" position="first">+
+<af:resource type="javascript">+
function handleBlur(componentEvent)
+{+
var blurComp = componentEvent.getSource();
var updateComp = AdfPage.PAGE.findComponentByAbsoluteLocator("e9368104424");
updateComp.setValue(blurComp.getValue());
+}+
+     </af:resource>+
+</mds:insert>+
+<mds:modify element="ph1">+
+<mds:attribute name="text" value="#{catalogResolverBean.kekst}"/>+
+</mds:modify>+
+</mds:customization>+
Regards,
Kenneth

Do you need to add a js function to within the head section?
There should be an editable region in the head section named
"head" already.
If not- add one in code view.
Or- do you need to add a trigger to the body tag?
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/

Similar Messages

  • Adding javascript to page open and page close in acrobat 8.1.2

    Reading the Acrobat Javascript Object Specification on page 22 it says that you can add javascript to the "page open" and "page close" events of a document.
    It then says that under the menu "Document -> Set page action" you can add scripts for those events
    I am using Acrobat 8.1.2 and under the document menu there is no "Set page action". And there is nowhere where I can find any "set page action" menu...
    whats the deal?
    How can i set the page open and page close events in acrobat professional 8.1.2?????????????
    Marc

    - open the Navigation Panel 'Pages'
    - select the page and open the page properties
    - in the actions tab you can set the page actions

  • Adding ana archive page with a link in the Navigation bar

    I am really new to all this so don't think that I'm a 'tard. I am building a blog on '06 and I like most of what I can do, but I can't figure out a couple of things. My current blog is with Godaddy (pronounced blow-daddy) and with that blog I have archives, recent entries and a calendar. Is there any way that I can duplicate that here? If not, how about just adding a blank page that I use for archives. I know that I already have one but I can't seem to make it visible in the navigation bar. Any help?

    No, you have to have a page for it to show up in navbar.
    The work around is to use refresh tag to redirect to your email address, here is how:
    http://www.geocities.com/[email protected]/Test/Front.html
    1) make a Front page
    2) make a Contact page, link Contact page to Front page's navbar
    3) editing Front page: search for href="Contact.html" change to target="_blank" href="Contact.html"
    4) copy contents of index.html
    5) editing Contact page: replace contents of Contact the contents of index.html
    6) search for http-equiv="refresh" content="0;url= some page.html" change it to http-equiv="refresh" content="0;url=mailto:[email protected]"
    7) add the following to the end of Contact.html
    <script language="Javascript">
    <!--
    setInterval("window.close()",2000);
    -->
    </script>

  • Stand alone region not seeing AM definition when added to seeded page...

    I have created a stand alone region of type stackLayout that contains a messageLOVInput and a table for employee selection and forwarding to predefined pages. I then created a test page in JDeveloper where I added a FlexLayout region and extended my stackLayout region. This works as desired.
    I then wished to test my stand alone region by adding it via personalization to a seeded page. I first copied the files to the appropriate directory in $JAVA_TOP into my custom directory. Then I loadd into the MDS, then bounced apache and OC4J. The controls renders as desired. However clicking upon the messageLOVInput in my stand alone region it opens a window and I get "Cannot find LOV in ... AM". Looking at the About this page link, I see that it is not recognizing my AM even though when I added the item via personalization (SITE LEVEL) I specified it. What am I missing here? This should be reusable functionality that can be added to any page, seeded or custom. But for whatever reason it fails to see my AM and thus cannot find the LOV. I know I didn't get the AM reference wrong during the personalization because it would throw an error if I had (ask me how I know this).
    Has anyone ever done this before?

    Hi,
    If your issue is resolved, you can close the thread so that it can be helpful for others :)
    --Sushant                                                                                                                                                                                                                               

  • How do i set colors on javascript coding page, colors are not seen after installing Firefox version 8

    How do i set colors on javascript coding page, colors are not seen after installing Firefox version 8 . I am using WaveMaker application for web development

    Make sure that you allow pages to choose their colors and that you haven't enabled High Contrast in the Accessibility settings.
    *Tools > Options > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
    *http://kb.mozillazine.org/Website_colors_are_wrong
    *http://kb.mozillazine.org/Websites_look_wrong

  • Hi. I've added a new page to my iWeb '08 version 2.0.4 website but can't seem to select the top menu pages to make a rollover color change. I can select them on the original pages. What am I doing wrong?

    Hi. I've added a new page to my iWeb '08 version 2.0.4 website, but can't seem to select the top menu items to make a rollover color change. I can select them on the original pages. What am I forgetting to do?

    Old Toad has a tutorial about changing the colors in the iWeb default menu...
    http://oldtoadstutorials.net/No.24.html
    If you want your website to be found by search engines you would be better to follow Ethmoid's suggestion of creating your own navigation...
    http://www.iwebformusicians.com/iWeb/Navigation.html

  • CS4 is adding a blank page, throwing off the printing

    I am creating a 40-page booklet to be printed 2-up saddle-stitch
    In the Pages layout, it says i have 40 pages in 21 spreads. 1 page on the top is the front cover and 1 page on the bottom is the back cover and 19 double-page spreads inbetween. Pages 2 and 39 are the respective inside covers. Page 1 is aligned on the right and page 40 is aligned on the left. It should be printing fine, I would think.
    But in the Print Booklet-Preview Pane, it gives a message that it has added 1 blank page to creat the booklet, and it was added before page one, so I now have no back cover, and my inside covers and page layouts are all wonky now.
    I noticed that in the Pages flyout there is a small square to the right of Page 40, where page 41 would be. A small square that I can't highlight.
    A few more items of interest, all pages have both Allow Document Pages to Shuffle and Allow Selected Spreads to Shuffle checked.
    I am at a total loss. Any help would be greatly appreciated.
    gw

    Keep in mind that everyone here is a volunteer. Most of the regulars, like myself, drop in at least once a day, as we have time, and offer advice and solutions when we have them.
    That said, I saw your post when it first was listed, and saw that you seemed to finding your way, and didn't have anything more to add at that point, as I suspect was the case with a lot of others. I'm sorry it never occurred to me to ask if you had any blank pages in the document, but there was nothing in the original post to suggest that, and including blank pages in a booklet print job is a pretty standard thing to do. If you know enough to have already added blanks to fix the page count, one would presume you also know enough to include them in the print job.
    As far as the forum organization, we're about to go into a new version of the forum software, and many of the regulars are looking on that with some trepidation. Most of us actually LIKE the way things are now -- functional and uncluttered with extraneous nonsense like avatars and ratings points -- but it seems much of that is going to be creeping in. An attempt to unify the Adobe and Macromedia forums last year was an utter disaster, and we've all got our fingers crossed it won't happen again, but we'll be living with it no matter what as the Webcrossing contract is up and Adobe has signed on with Jive. You might want to take another look when the changeover is complete.
    And, I'll repeat, these forums are probably the BEST source of FREE and accurate expert information on Adobe applications on the planet. You'll find users (and even some Adobe employees) from all over the world with vast experience in some pretty esoteric and specialized techniques. I find I still learn something new almost every week, and I've been making my living with InDesign since version 2.0 was released. I hope you'll come back if you have more questions.
    Peter

  • InDesign CC crashes when i adding a new page

    Hi together!
    When I adding a new page InDesgin CC crashed. I tested it on two PC with Windows 7 and Windows 8. I also created a new document. Always the same problem when adding a new page. Can anyone help me?
    Regards
    Christian

    Having similar problem for second time (different files, different content) in the past two months.
    Using IDCC2014 (10.2.0.69) on Mac OS 10.10.3.
    When inserting a new frame (whether a newly placed image or an empty frame) with text wrap, text reflows (as expected) but InDesign quits (no warning or error, it just quits).
    Inserting a new page and reflowing text also causes ID to quit.
    Finding earliest page in document where the problem begins (similar to above reply; in my two cases that is p. 2 and p. 23) and deleting the text frame on that page causes ID to quit.
    I work on quite a few books with many elements, but the files in question are just straight text with page numbers (not even running heads) and some illustrations to be inserted.
    Saving as IDML does not resolve the issue. Trashing preference does not resolve the issue.
    Dragging pages to a new file does not resolve the issue. But if text is copied-and-pasted into a new file then that new file will work fine.
    The problem is consistent at various work stations across three different locations/networks.
    The only fix has been to delete ALL of the document pages from the affected area on and do the work again, i.e., redraw new pages and apply the chapter opening master pages again. Deleting just the first page where problem is found or the first two pages where problem is found or first four pages where problem is found, etc., causes ID to quit.
    In the case of this second file (I don't have the first file onhand right now), it does not have a long save history; it's not from a legacy template file or something like that. Cracking open the IDML file confirms only four saves beyond the initial creation and all in IDCC2014.
    Anyone else coming across this problem? Any suggestions?

  • Cannot preview ASP JavaScript database pages anymore

    I've lost my ability to preview my ASP JavaScript database
    pages on MX 2004. They upload fine, just can't preview them. Error
    ASP 0129 - The scripting language 'JAVASCRIPT' is not found on the
    server.
    I recently installed a trial version of DW CS4 on an external
    drive, but am now wondering if dll files were overwritten in the
    process that affected MX 2004. I've since uninstalled CS4 and
    cleaned up the registry, but the problem still exists.
    My other computer previews fine with same IIS settings and AV
    protection. So it’s something within DW on my computer that
    has a glitch and the only thing I can think of is the installation
    of CS4 jolted MX 2004 and now ASP JavaScript is not recognized.
    Is there a repair tool for Dreamweaver? If not, and I
    reinstall OVER the current installation of MX 2004, will I lose any
    settings, and will I have to reinstall updates and extensions? Any
    other suggestions are appreciated!

    I've lost my ability to preview my ASP JavaScript database
    pages on MX 2004. They upload fine, just can't preview them. Error
    ASP 0129 - The scripting language 'JAVASCRIPT' is not found on the
    server.
    I recently installed a trial version of DW CS4 on an external
    drive, but am now wondering if dll files were overwritten in the
    process that affected MX 2004. I've since uninstalled CS4 and
    cleaned up the registry, but the problem still exists.
    My other computer previews fine with same IIS settings and AV
    protection. So it’s something within DW on my computer that
    has a glitch and the only thing I can think of is the installation
    of CS4 jolted MX 2004 and now ASP JavaScript is not recognized.
    Is there a repair tool for Dreamweaver? If not, and I
    reinstall OVER the current installation of MX 2004, will I lose any
    settings, and will I have to reinstall updates and extensions? Any
    other suggestions are appreciated!

  • After installing Firefox6 many sites will not finish loading. I click on "stop loading this page" and then click on "reload this page" and the page loads. Also if I disable javascript the page will load.

    After installing Firefox 6 MANY web site will not finish loading. I disabled all add-ons and still have the problem. If I disable javascript, the pages will load. When the page is trying to load, if I hit "stop loading this page" and then hit "reload this page", the page will load; but sometimes I have to do this 2-3 times for the page to finish loading. No problem with these pages using IE8.

    I see that you ave changed some network.http prefs.<br />
    Doing that can cause all kinds of problems because not all servers like such changes, so you can try to reset those prefs on the about:config page.<br />
    network.http.max-connections 48<br />
    network.http.max-connections-per-server 16<br />
    network.http.max-persistent-connections-per-proxy 16<br />
    network.http.max-persistent-connections-per-server 8<br />
    network.http.pipelining true<br />
    network.http.pipelining.firstrequest true<br />
    network.http.pipelining.maxrequests 8<br />
    network.http.proxy.pipelining true<br />
    network.http.request.max-start-delay 0<br />
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • HT2881 Have accidentally added a blank page to resume.  How delete it?

    Help, please for a newbie.
    In Pages, have by accident added a blank page to a resume.
    How delete?
    Thx

    Depends on how the additional page got there. It this at the end of the document of somewhere in the middle?
    Assuming it isn't due to peculiar formatting of a text element, you should be able to tap in the top line of the blank page and tap the backspace key until you get back to the preceding text.

  • Easy way adding javascript to portal pages?!?

    Hi,
    I know (because I've tested it) that I can put some java script into portal pages. It's easy to use them as javascript functins, but if I try to use tag to get some data from base... it's doesn't work and generate some errors...
    Please help me!
    Krzysiek
    null

    I know that easier is adding script functions as portal functions/procedures... but HOW can I add characters like " ' " inside htp.p(' '); ??? Is it POSSIBLE or NOT? maybe some other characters are required before (if I dont want to use this inside ' ' as oracle variable, but javascript variable ???
    Krzysiek

  • Adding javascript to sherpoint master page

    How can i include this in a master page ?  This code should hide the empty lists , but since i noob , i don't now how and where to add this script.
    Thanks
    <script type="text/javascript">
    function HideEmptyWebParts()
    var itemsfound = new Array;
    var elements = document.getElementsByTagName('*');
    for(var i=0;i<elements.length;i++)
    if(elements[i].className == 'ms-vb')
    itemsfound.push(elements[i]);
    for (var i=0;i<itemsfound.length;i++)
    if (itemsfound[i].innerHTML.indexOf("There are no items to show in this view of the")>-1)
    itemsfound[i].parentNode.parentNode.parentNode.parentNode.innerHTML="<div class='ms- vb'>Not enough data to produce a dashboard.</div>";
    _spBodyOnLoadFunctionNames.push("HideEmptyWebParts")
    </script>

    Hi,
    Please upload js file in Sharepoint style library and on master page add the reference of JS like below
    <script type="text/javascript" src="../jQuery/jquery-1.3.2.js"></script>

  • Adding JavaScript Code dynmically to a JSF page

    Hi all;
    I have a JSF page where I have a dropdown list (<h:selectOneMenu). on the cnahgeEvent of this menu a JavaScript code is called and another dropdown list is displayed with populated data (depending on the selection of the first drop down).
    My quesiton is how I can inject the array (of data used by the first dropdown list) (dynamically) . This is because this data is read from the DB and then injected into the JSF page at run time.
    any smart ideas ?

    If you are looking for a dependent dropdownlist you can use AJAX to accomplish your goal. the onChange event binded to the first list can trigger an ajax request to the server and get the list of data that can be used to populate the second list.

  • Input File on a Popup doesn't render after adding Javascript

    Hi,
    I have a very tricky problem.
    I have added a javascript function on component initialization to validate a "ADF Input file on a Popup". Popup is opened on clicking a link. Unfortunately Popup doesn't seem to render but the javascript function is getting invoked.
    What could be wrong?
    This is my JSPX code:
    <af:popup childCreation="deferred" autoCancel="disabled" id="p1">
    <af:panelWindow id="pw1">
    <af:inputFile label="My File4" id="myFile" binding="#{fileBean.myFile}"/>
    </af:panelWindow>
    </af:popup>
    This is my javascript:
    function ootbValidateFileScript(maxSize) {
    alert("ootbValidateFileScript script invoked maxSize: " + maxSize);
    return true;
    If I avoid the popup and directly put the Input file on the page, everything works fine.
    I strongly feel my Javascript is interfering with normal execution of the Popup. What am I doing wrong?
    Regards,
    PS
    Edited by: user13722524 on Aug 23, 2012 11:16 PM

    Hi,
    As mentioned before javascript is added at component initialization (setter in the bean). something like this:
    public void setMyFile(RichInputFile myFile) {
    this.myFile = myFile;
    myFile.setClientComponent(true);
    ClientListenerSet clientListenerSet = myFile.getClientListeners();
    if (clientListenerSet == null) {
    clientListenerSet = new ClientListenerSet();
    clientListenerSet.addBehavior("new ootbValidateFileScript(99)");
    myFile.setClientListeners(clientListenerSet);
    myFile.setVisible(true);
    Jdeveloper version: 12.1.2.0.0
    Regards,
    PS

Maybe you are looking for

  • How to reuse a jar file in another application

    i have created a jar file.Now i want to reuse this jar file in another java program.Could anyone please guide me with the steps of how to reuse a jar file

  • Custom logon module not called by the portal

    Hi, all. I need some help urgently on this new portal requirement. There are some sensitive ESS/MSS iviews that we need to give the users an additional logon challenge. The normal ESS/MSS iviews will be using SSO. This one will still use SSO, but hav

  • It is possible to unable the printscren key

    Hello, I am looking for a way that when we press printscreen, nothing appen. I look on the forum and i found nothing . I am using LV 6.1 but if neccesary i can upload to 8.5 

  • Noise on K7N420.

    Has anyone experienced this? I am using analog stereo output of nForce on-board audio and I get a hissing sound on my Creative 2.1 analog speakers when I turn the volume all the way up. It's not there when I pull the speakers out from the jack so it'

  • JComboBox Help!

    Hi All, can anyone show me some good examples of how to fill up one combo Box with all the table names in a database, and when I select a table display all the column names in the another combo Box. Thanks Dave