Insert some JavaScript inside a JSPX (JD11.1.1.3.0)

Hi all
I am trying to add some javascript on my pages. In particular, I would like to add the javascript popbox to zoom images.

So I found this page: http://adfcodebits.blogspot.com/2010/03/bit-3-adding-javascript-to-jspx-page.html

She seems perfet for me. I've added:

< f: facet name = "metaContainer" >
< af:group >
"< afh:script source="scripts/PopBox/scripts/PopBox.js "type =" text/javascript"/ >
< / af:group >
< / f: facet >

the PopBox in slot: public_html/scripts/PopBox/scripts/PopBox.js

If I sow the generated html code, I saw:

< head >
"< link href="/EdvaraTEST-ViewController-context-root/adf/styles/cache/fusion-desktop-ua1gw8-ltr-gecko-1.9.2.3-cmp.css "type =" text/css"charset =" UTF - 8 "rel ="stylesheet">".
< script...
.....
"< afh:script type =" text/javascript"source="scripts/PopBox/scripts/PopBox.js "> < / afh:script >
< / head >

So it seems that the system recognizes the < afh:script

I have tryied with < afh:script rather < script but javascript doesn't work...
Any suggest?

So should I use another library?

Thank you
Cristian

Have you tried using af:resource?

SID

Tags: Java

Similar Questions

  • ADF faces: how to insert a HREF inside an array element

    Hello
    I have a web service data command, and this web service returns the email of a Department.

    I have this message within a table, but because this email is used to integrate the Microsoft OCS application, email must be inside a HREF tag, for example:
    <a href='sip:"+employeeBean.getEmail()+"'><img src='images/OCS.png'/></a>
    How can I insert this HREF inside the table, and the table then displays the image and the href attribute works?

    Use a goimageLink component.
    http://jdevadf.Oracle.com/ADF-richclient-demo/components/goImageLink.JSPX

  • I want to insert some .mp4 videos? Without HTML code! Full screen! Can you help me, please?

    Hello

    I read how integrated a YouTube video. But this is not my option. I have six videos in mp4 format.

    I don't want to insert some .mp4 videos? Without HTML code! Full screen!

    Can you help me, please?

    Best,

    Pasca

    Hello

    You can try the widgets listed in the link below

    http://musewidgets.com/search?q=fullscreen

    Concerning

    Vivek

  • Insert some values into the database of field boxes




    I had a similar probem and error when you use the drop-down list instead of a checkbox. It was solved by putting the SELECT name = "CarMake in the menu dropdown.

    But in the box, I don't know?
    I seem that the problem is the action page has the Form.carmake, but the page does not work. What Miss me and where should I put in the entry below page.


    The main objective is to have checked checkboxes to insert some values into the database field carmake based on what is checked.


    If the Honda checkbox is checked then
    It inserts into the carmake field value Honda.

    If the Toyota checkbox is checked then
    It inserts into the carmake field the value of Toyota.

    If both are true then 2 rows are inserted two values
    Honda and Toyota.

    Ditto for the last option.

    Thanks for your help


    Here's the error again

    error:
    Error occurred while processing request
    CARMAKE element is not defined in the FORM.

    12:21:50.050 - term Exception - in C:\CFusionMX7\wwwroot\Author\CarAddAction.cfm: line 16
    CARMAKE element is not defined in the FORM.

    line 16 is:
    "#Trim (Form.carmake), #
    Join the Code


    <! - Here is the form - >
    < html >
    < head >
    < / head >

    < body >


    < h1 > < / h1 >

    < table >
    < action = "CarAddAction.cfm cfform" method = "POST" > "
    < b >
    < td > Honda: < table >
    < td > < Center > < input type = "checkbox" name = "HONDA_MODEL" value = "HONDA" checked > < / center > < table >
    < /tr >
    < b >
    < td > Toyota: < table >
    < td > < Center > < input type = "checkbox" name = "Toyota_MODEL" value = "Toyota" Unchecked > < / center > < table >
    < /tr >
    < b >
    < td > SUBARU: < table >
    < td > < Center > < input type = "checkbox" name = "SUBARU_MODEL" value = "SUBARU" unchecked > < / center > < table >
    < /tr >



    < Tr > < td > < table > Honda model
    < td >
    < input type = "Text".
    name = "Honda_Model".
    Value =""
    size = "22".
    MaxLength = "20" >
    < table >
    < tr > < /tr >
    < Tr > < td > < table > Toyota model
    < td >
    < input type = "Text".
    name = "Toyota_Model".
    Value =""
    size = "22" >
    < table >
    < tr > < /tr >
    < Tr > < td > < table > Subaru model
    < td >
    < input type = "Text".
    name = "Subaru_Model".
    Value =""
    size = "22" >
    < table >
    < tr > < /tr >
    < td > < table >
    < td >
    < input type is 'submit' value is "Take Add to database" >
    < table >
    < /tr >

    < / cfform >
    < /table >

    < / body >
    < / html >



    <!-action page
    --------->
    < cfdump var = "#form #" >
    < name cfquery = "InsertCarInfo."
    DataSource = "#request. MainDSN #">"
    INSERT INTO Car_tab)
    car_Make,
    Honda_Model,
    Toyota_Model,
    Subaru_Model

    )
    VALUES)

    "#Trim (Form.carmake), #
    "#Trim (Form.Honda_Model), #
    "#Trim (Form.Toyota_Model), #
    "#Trim (Form.Subaru_Model) #
    )
    < / cfquery >

    You check in one or more of the boxes before continuing? Remember what I said about the form field box existing only on the page of treatment at least 1 or more checkboxes are checked on your form. Make sure you use to avoid this problem.

    What happens when you take a look at the output of your dump of form? Your fields are present?

  • Auto insert some text in a text box, via a selection of the option button

    Hi all

    I'm quite new to work with Adobe Acrobat Pro DC, in fact, I'm new to working with Adobe period. I also took on the task to work to turn a fillable bunch of Word documents as pdf documents on the screen. Through tutorials online, trial & error and videos YouTube, I became accustomed to some of the basics for the preparation and editing of pdf documents.

    What I find much more difficult is where the tutorials on how java script commands is added to a form. Is there somewhere I can learn how to add JavaScript for, say, a radio button? I can locate the "execute a JavaScript script" tab Radio button Properties Action but in the past, it is not a lot out there.

    My ultimate desire is to be able to have a line of automatic text to insert in a text (results of the APC) box after selecting the radio (WI_0) button. If someone could write the code for this, it would be very appreciated, but above all that, I'd love to learn how JavaScript is used in a form.

    Thank you for your time,

    BobbyD

    OK, in this case you can use the MouseUp event of the fields radio button with this code:

    If (event.target.value == "in spec") this.getField("APC_Results").value = "see attached results;

  • Download clipart inserted with text inside to the email as a copy?

    I want to copy a piece of clipart with text inside, to e-mail but not as an attachment?

    Hello
    Here are a couple to repeat about adding clip art to e-mail:
    http://Office.Microsoft.com/en-us/help/insert-a-picture-or-clip-art-HA010079409.aspx
    http://Office.Microsoft.com/en-us/Outlook-help/insert-a-picture-or-clip-art-HA010208650.aspx
    Eddie B.

  • JavaScript in my .jspx page does not work in IE 9, but works in Chrome and Mozilla why?

    Hello

    I use Oracle JDeveloper ADF 12.1.2.0.0. I was trying example ADF Insider Essentials Table column filter customization followed the steps, but made a small change to the JavaScript to filter numbers only. When tested my application in the browser Chrome and Mozilla, functionality works as expected, its only numbers to enter in the filter field.

    But the same functionality does not work in IE 9. Is something needs to be done to solve my browser.

    JavaScript below.

    function allowNumbers (evt) {}

    var _keyCode = evt.getKeyCode ();

    Other than the number keys, arrow, delete and backspace when used

    event will be cancelled.

    If (!) () (_keyCode > 37 & & _keyCode < 58) |

    (_keyCode == AdfKeyStroke.ENTER_KEY).

    (_keyCode == AdfKeyStroke.DELETE).

    (_keyCode == AdfKeyStroke.BACKSPACE_KEY).

    (_keyCode > 95 et & _keyCode < 106))) {

    evt. Cancel();

    }

    }

    This script is enabled in my IE.

  • Insert some values into multiple tables. One of the tables has a complex primary key.

    Hello, I am using Jdeveloper version 11.1.2.3.0

    I have a FORM_TYPE table and another table Str. The table of Str is used to translate the strings from the name of the table which are read from another program from the database and used to generate forms...

    The FORM_TYPE table has a relationship with the table of STR via formtype.title_str_id = str.str_id.

    STR. table has a primary key which is based on the mf_language and str_id. columns I generated the entity for the table of STR, but impossible to insert new values of add-on application for some reason any... It is said that recording invalidates its own entity...

    I am trying to create a table that will be editable and will have the column Description, name, cdes in English, Str in French etc...

    To create a Form_Type and at the same time insert new values for each language. But can not do the inserts of the new work of STR...

    Also the FormType.TITLE_STR_ID already has a lot of null values in the database.

    SELECT FormType.DESCRIPTION,

    FormType.FORM_TYPE_ID,

    FormType.NAME,

    FormType.PAPER_REPORT_FORMAT,

    FormType.PAPER_REPORT_NAME,

    FormType.TITLE_STR_ID,

    in. En_str str,

    in. STR_ID,

    en.object_name en_object_name,

    Fr. Str,

    Fr. STR_ID,

    Fr.object_name,

    of the. Str,

    of the. STR_ID,

    du.object_name,

    BG.Str,

    BG. STR_ID,

    BG.object_name

    OF FORM_TYPE FormType.

    (select str.str_id, str.mf_language_id, str.str, str.object_name

    of mf_language ml, str

    where ml.mf_language_id = str.mf_language_id

    and ml.code = 'fr') en

    (select str.str_id, str.str, str.object_name

    of mf_language ml, str

    where ml.mf_language_id = str.mf_language_id

    and ml.code = 'fr') en,.

    (select str.str_id, str.str, str.object_name

    of mf_language ml, str

    where ml.mf_language_id = str.mf_language_id

    and ml.code = 'from'),

    (select str.str_id, str.str, str.object_name

    of mf_language ml, str

    where ml.mf_language_id = str.mf_language_id

    and ml.code = 'bg') bg

    WHERE

    FormType.title_str_id = en.str_id and

    FormType.title_str_id = fr.str_id and

    FormType.title_str_id = du.str_id and

    FormType.title_str_id = bg.str_id

    Each table that you want to update must have its own entity object. You need to connect it to an another VO/OS using the associations/view links

  • SDK allows the doc to edit and add links and insert the javascript code?

    Hello

    I am a student using the SDK to perform the following tasks.  It supports doing so?

    * Change a source PDF to insert hyperlinks to certain texts and change the formatting of text.

    * Add a javascript such that I can release a dynamic http action REMAINS (with the appropriate confirmation dialog) when text is selected which provides the text selected the REST call.

    Thanks in advance.  I could not determine that a scan of high-level documentation.

    -martin

    You can create a plugin for Adobe Acrobat without any authorization from Adobe.

    Only the plugins for Adobe Reader must be approved.  But the player does not editing in any case, these features apply.

  • insertion of javascript in the template

    I want to do is to have the slideshow even play on the right sidebar on all pages of the Web site.  It's Javascript.  Data files and the engine are already on the server.

    www.wranglergirl.NET

    The directions say to publish the slide show to take the html code of the generated code and enter it in the tags of the head and the body (where I want displayed, which is the sidebar) respectively.  Now, I open the .dwt file and deleted the existing content of the sidebar, but after recording, the html pages still had the content here - I have since removed from every page, but don't want to continue to do.

    However, The Missing Manual to... Insert HTML, Script objects, Script.  What is the point of insertion on the exact model?  Do I always have to enter the HTML code of the slideshow software?  Confused!

    It is a free template I received Adobe.

    Amy

    so...

    If you put the slideshow in a part NOT editable on the page of the model and then save the page, this slideshow code will then spread to all the child pages automatically.  This is the basic concept of the use of models - it is important that you really understand it.

  • How to export some Javascript online to print materials?

    Hi people,

    I work in Robohelp 8 HTML and have created these wonderful javascript includes files that allow me to generate instructions that are numbered and bulleted list and insert them into my pages to help guide.

    Basically, the instructions are the same and repeated throughout the guide.  What changes are the field names, and the numbering sequence.

    Ah, you say, why not use excerpts for this?  I don't use it when the block of information is identical and should repeat.

    Well, my intelligence ended when I started to generate documents printed and discovered that my javascript online inserts and my include files are ignored in the export process.

    Examples:

    In my HTML Robohelp document, include a javascript file that contains my procedures and functions.  Then, in the HTML document, I insert the call, surrounded by all the wrappers needed < script >:

    document. Write (how_to_get_to("Manufacturing,reports",","));

    This produces something like this on the Web page:

    Measures

    1 open the main menu.

    2. click on the record of manufacturing to develop.

    3. double-click on the menu item reports to open the window.

    When generated printed documentation, it is just missing.

    Issues related to the:

    1 anyone else having the same problem?

    2. creative suggestions on how to generate printed documentation.

    I already know I can print from the web page.

    Thank you!!

    If I understand your process, I would say that everyone would have the problem. Javascript code only runs when you open the topic in a browser. Happens when you generate printed Documentation.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • "Extract all...". "request password on some files inside the zip, but no password was used to create the zip file

    I created a zip of a directory tree file using "send to...". "'Compressed (zipped) folder '. When I try to "extract all...". ", he asks me a password for some (not all) of the files in the zip file. I does not have a password for the zip file. I didn't even know it was possible to have a password on a specific file in a zip! Needless to say, I can not give the password because I don't know what it is.

    I tried the following:

    (1) created with "send to...". "Excerpt from" compressed (zipped) folder ', with 'extract all... '. ». Result: request password.
    (2) created with "send to...". "" Compressed (zipped) folder ", extract with 7 - zip. Result: No password query. All the files extracted intact.
    (3) created with 7 - zip, extract with "extract all...". ». Result: request password.
    (4) created with 7-zip, extract with 7 - zip. Result: No password query. All the files extracted intact.

    What I find most interesting is (3).

    Does anyone have an idea of what's going on? Is there some kind of security on the files meta-data that could / should cause this behavior?

    System information:

    XP Pro 2002 SP3 on MS network (I have no idea what server, etc..)

    Hi ruborg,

    Your Windows XP question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the forum TechNet for assistance:

    http://social.technet.Microsoft.com/forums/en/itproxpsp/threads

    Hope the helps of information.

  • Insert the sequence inside the string number

    Hello

    What is the easiest way to insert sequences of numbers within the string, example

    Can I have numbers of from 1 to 25, but I can't for the 'gaps', when this happens I filled with X

    01020304050607080910 = > > > 01020304050607080910XXXXXXXXXXXXXXX
    01030405060708091112 is > 01X03040506070809X1112XXXXXXXXXXXXX

    How do I, I tried to use the TRANSLATE function, but no way






    WITH the DATA (str) AS (SELECT ' 010203070911131516' FROM dual UNION ALL

    SELECT "0205060809" FROM dual UNION ALL

    SELECT '03050608091012' FROM dual)

    , decompose AS (SELECT str, substr (str, (LEVEL - 1) * 2 + 1, 2) as ELEMENT, LENGTH (str) / 2 as items)

    , MIN (substr (str, (LEVEL - 1) * 2 + 1, 2)) OVER (PARTITION BY str) AS min_element

    , max (substr (str, (LEVEL - 1) * 2 + 1, 2)) OVER (PARTITION BY str) AS max_element

    FROM THE DATA

    CONNECT BY LEVEL<=>

    and prior str = str

    AND PRIOR sys_guid() IS NOT NULL)

    COMPLETE AS (SELECT str, level elem

    FROM (SELECT DISTINCT min_element, max_element, str

    TO decompose) x

    CONNECT BY LEVEL<= to_number(max_element)="" -="" least(to_number(min_element),1)="" +="">

    AND str = str PRIOR

    AND PRIOR sys_guid() IS NOT NULL)

    SELECT c.str, listagg (NVL (d.element, 'X')) within the Group (order by c.elem)

    C COMPLETE

    LEFT OUTER JOIN decompose d ON (c.str = d.str

    AND c.elem = to_number (d.ELEMENT))

    C.str group

    order of c.str;

    HTH

  • Insert some values into the type defined by the user in the table column?

    Hello

    I've created a type

    CREATE TYPE COURSE_OBJ1 AS OBJECT)
    course_code char (8),
    course_name varchar (35)
    );

    Then set up a table with the type as one of the columns

    CREATE TABLE NEW_COURSE1)
    course COURSE_OBJ1,
    date of course_date,
    course_instructor varchar (35),
    course_location varchar (20)
    );

    Now, it makes me error: column not allowed here

    INSERT INTO NEW_COURSE1 (courses, course_date, course_instructor, course_location)
    VALUES (course ('DBA12345', '101 S/n'), October 3, 2005, "Phung',"Kaanapali")

    Can someone show me please the correct way to insert these data? He's not from another table. This is a file txt nothing else than values.

    Thank you

    You created type COURSE_OBJ1, but in the instructions wrote courses("DBA12345",'s / n 101')
    (1) course replace ('DBA12345', '101 S/n') COURSE_OBJ1 ('DBA12345','s / n 101')
    (2) add citations to 3 October 2005 or replace to 'to_date('03-OCT-2005','dd-mon-yyyy') '.

    INSERT INTO NEW_COURSE1(course, course_date, course_instructor, course_location)
    VALUES(COURSE_OBJ1('DBA12345', 'DBA 101'), to_date('03-OCT-2005','dd-mon-yyyy'), 'Phung', 'Kaanapali');
    

    Kind regards
    Sayan M.

  • Run a script javascript inside a script?

    Can I run a JavaScript from within another javascript?

    If so, how can I do it?

    thnX

    Hey!

    You can use app.doScript () like this:

    var myJSXfile = File('/c/myExternalFile.jsx');app.doScript(myJSXfile);
    

    Hope that helps.

    --

    Marijan (tomaxxi)

    http://indisnip.WordPress.com

    http://inditip.WordPress.com

Maybe you are looking for

  • An error occurred installing iOS 10 / can't update via iTunes

    I have the same problem as many others displaying without finding an answer. My iPhone 6 has not been able to update since iOS 9.3.2. The obvious solution is updated via iTunes, but when I try it, iTunes says "this version of the iPhone (9.3.2) softw

  • Reminders to reappear

    My operating system is up-to-date, iPhone 6plus. I had clear my reminders several times a day. For example, I had an appointment yesterday. I put my application of reminder to remind me of him an hour before. The time has come and it reminded me, I e

  • Windows Update error Code 646 KB978382, KB978380

    I tried to install these two updates for days and nothing I try to help. I was able to install other updates, but these two are impossible. What can I do if these will be installed? Windows Update 646 (KB978382, KB978380) error code. The description

  • Acer liquid gallant duo, E350 and no internet

    I have a new Acer E350 liquid Gallant Duo. A SIM (vodafone) is my work and only for telephone conversations, the other that I bought is a prepaid internet SIM (AH). With both I can't get a connection to the internet. What I am doing wrong? Vodafone i

  • Event to minimize / focusing on the App

    Hey guys. I'm looking through the qnx API and I will try to find an event when an application gets reduced to a minimum, and when he gets was consecrated again. I guess it was in qnx.events, but either I'm not looking right, or he's not here. Can som