Where to include java script file in JHS

Hi All,
Please help me solving this below issue.
I have to implement format mask for phone. So wat I did is, wrote an JS file and placed it under webcontent/javascript/masks.js and also in my jspx generated by JHS, in the head i wrote <afh:script src="location of script file"/>
In the phone no. field i placed onFocus, where i load my managed bean Formatmask from the session scope to call the script..
Same code our team did in ADF, its working where as the same in JHS is not. Can any one pls help me out to solve the issue.
Thx in advance
VinothGan-IFLEX

JHeadstart generates normal ADF pages, it should work the same way as drag and drop ADF page. Did you accidentally regenerate the page loosing the script import?
What error message do you get at runtime when you open the Firefox Javascript console?
Anyway, the best place to add the library import is in /common/regions/pageConfig.jspx
which also holds the JHeadstart js libs. By adding it there, you do not need to generate your application again.
Steven Davelaar,
JHeadstart team.

Similar Messages

  • Problem to include java script file in servlet

    I couldn’t use any functions included in java servlet file using servlet. I made a test in jsp and it work fine but in servlet not.
    Here my code
    out.println("<jsp:include page=\"C:/path/file.js\" flush=\"true\" />");
         or          
         out.println("<script language=\"javascript\" src=\"c:/path/file.js\">");
    Although was no error but using both didn’t let me use any function inside the java script file. As I said using the same command in JSP works fine.
    How I can include the file.js correctly ?

    [email protected] wrote:
    server machineOK, imagine that I am the server and you are the client.
    I have a file "c:/documents and settings/balusc/passwords.txt".
    So now you have the path. Can you tell me the contents of the file?

  • Including java script in struts

    Hii All,
    I wanted to use some java script function on onclick of button. like on click on calendar image i should invoke the cal control writtern in java script.
    Its a pure struts application. can any1 tell me how to include java script in struts ?

    it depends on the javascript file you are using as to how you are going to have to do it.. but I would imaging you will have to include the js file like this.
    <script type="text/javascript"
         src="<c:out value='${pageContext.request.contextPath}'/>/scripts/newCalendar/calendar.js"></script>then on how to call the javascript from the onclick it will completely depend on the actual calendar script.

  • How to Include JAVA script code in SAP BI7 web Reporting?

    How to Include JAVA script code in SAP BI7 web Reporting?

    In nw2004s there is a new web item called "Script" web item which lets you add javascript code. When you add javascript code in this web item, you don't need the opening and closing <script> tags...
    Hope it Helps
    Chetan
    @CP..

  • Where to find Java Class File Specification for Java 5.0?

    Where to find Java Class File Specification for Java 5.0?
    thank you in advance.

    same place you found it for 1.4Can u give more details? I thought the class spec for Java 1.4 is the same as Java 1.2.
    anyone can tell where to find Java Class File Specification for Java 5.0?
    Thanks.

  • How & where to use Java script to create new button in object detail page

    Hi All,
    I want to create "New/Add button" in object detail page. If i am not wrong i need to use java script for that but could you please let me know how & where to use Java script to create new button in object detail page in CRMOD.
    Thanks in advance.
    Regards,
    Manish

    Any related object on the detail page should have an "Add" or "New" or both buttons by default - This is vanilla functionality and will do the required action.
    If you want to modify this behaviour and do something tricky you will potentially have to go for javascript. You should add the javascript on a custom web tab on that Object.
    Admin --> Application Customization --> Contact -->Contact Web Applet
    Now, add your javascript in the code area, after you select the type = HTML for this web applet, expose this web applet on the Contact detail layout and your javascript will be invoked whenever this page is loaded.
    Check this online document to see how javascript can be embedded in CRM on Demand http://helponmyproject.com/TTOCOD/
    Cheers!
    Royston

  • Include Java script in the abap webdynpro

    Dear expert,
    Anyone know how can i include a java script in the abap web dynpro.
    Thanks
    Regards,
    Bryan

    Hi
    There is no way you can include Java Script in Web Dynpro ABAP. You can navigate to a BSP application and run your JavaScript.
    Abhi

  • Trying to access the java script files via jar file in WEB SERVER

    hi all,
    I am trying to access the java script files via jar file ,which is present in Apache webserver in order to minimise the number of hits to app server.some thing like cache ...
    in jsp the code goes like this...
         <script type="text/javascript"  archive="http://localhost:14000/dojo.jar!" src="dojo.jar/parser.js" " ></script>{code}
    But i am not able to access the js file which is put in jar file present in the  webserver.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    You can use DWR (Direct Web remoting) for that. It is easy AJAX for java. ou can directly call the java script function from java class and also java class from javaScripts..
    Regards,
    Hardik

  • Opening a java script file

    How do I use notepad to open a java script file.

    Encephalopathic wrote:
    This reminds me of one of my favorite urban legends, the "too stupid to own a computer" legend:
    http://www.snopes.com/humor/business/wordperfect.asp
    it's a classic!That made me remember back in the day when I was convinced you had to power cycle your monitor when you rebooted your computer. :( Ah, to be young and ignorant again.

  • How to use HTML and Java Script files in Portal

    Hi,
    I am trying to access a web application using iViews. My application contains JSP,HTML,Servlets,JS(java script), image files. I am using JSPDynPro to access the JSP files and I am putting servlets in the private/lib folder of the PORTAL-INF dir of Portal project. Now my problem is almost all the JSP files uses the HTML files, JS files and image files. Where can put these files in the portal project dir structure to give access to the JSP files when i am creating a iView for the JSPDynPro componenets in the irj.
    thanks,
    Ashok

    Hi,
    JSPDynpage is the controller, one JSPDynpage can call more than one jsp file according to the coding. Through the JSPDynpage's setJspName() function only you can display a jsp page.
    EX:
    public void doProcessBeforeOutput() throws PageException {
      this.setJspName("logon.jsp");
    if you put the JSPDynpage in the src.core then the JSPDynpage can be accessed only by this application.
    if you put the JSPDynpage in the src.api then other applications can access this component.
    You can put the jsp pages in the pagelet folder.
    xml file
    =========
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
        <property name="SharingReference" value="com.sap.portal.htmlb"/>
      </application-config>
      <components>
        <component name="jspdynpage name">
          <component-config>
            <property name="ClassName" value="package name.jspdynpagename"/>
          </component-config>
          <component-profile>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
      </components>
      <services/>
    </application>
    REWARD USEFUL ANSWERS

  • Where to keep java Servlet  files in  Oracle Apps R12 ??

    Hi all,
    We have custom java Servlet files .. can any body help me where exactly do we need to keep java servlet in Oracle applications R12.
    Regards
    Bala

    Create directory under $JAVA_TOP e.g. $JAVA_TOP/com/servlet/xxxx
    Create custom orion_web_xml_1013.tmp with servlets and mappings.
    Regards,
    Gareth

  • Where to put java.policy file?

    Under which directory the "java.policy" file must be kept in?

    Hi!
    The policy file must be indicated in the command line or by system property, when you starts the service, like the following: -Djava.security.policy = yourfile.policy. If you want to indicate another directory, you can do like this: -Djava.security.policy = C:\temp\yourfile.policy.
    I hope it helps you,
    Sandra.

  • Where to download java jar file with org.apache.xml.serialize.OutputFormat?

    Dear Friends,
    I try one program, it import org.apache.xml.serialize.OutputFormat;
    but I cannot fine it after I google a while.
    where can I find and download jar file that contain this:
    org.apache.xml.serialize.OutputFormat
    I use JDK1.6
    Thanks
    sunny

    So, to clear things up, there is no org.apache.xml.serialize.OutputFormat.JAR
    OutputFormat is a class.
    As I said in my previous post if you go at the xerces project home page (here) you will find a compiled version of xerces [here - direct link -> (fool proof)|http://archive.apache.org/dist/xml/xerces-j/Xerces-J-bin.1.4.4.zip]. If you extract the archive you will find a compiled jar called xerces.jar. Open that one with winrar/winzip or whatever, browse to org\apache\xml\serialize\OutputFormat.class and there you go, you have it, just link this xerces library to your project...
    PS. Try searching on Google for "Google tutorial"

  • Including a script file that's not a class

    I have some common code I would like to share between a few flash appliations, but this code is not a class, how do I include it?

    You should be able to save it as an.as file and use the #include directive to make it part of a file.

  • Where to keep the java class file which is being used from a form?

    Hi,
    Actually I am developing a form which has a bean area and the data will be displayed in the bean area in the form of grid. And I will register this form with apps and will run the from Oracle apps. I want to know that there is a java class file that is being refered by the form, where should this java class file be placed and is there any other places where any changes are required so that the form runs correctly from the Oracle apps and can find the java class file.
    I am very thankful to each and everyone who will be able answer this question of my.

    do you mean decompiling? there are tons of java decompilers available out there, what exactly are you trying to do here?

Maybe you are looking for

  • Oracle 10g - Vista Business - Agent unreachable in EM

    Hi, I can't seem to get the agent to be seen from EM. Here is my config: Windows Vista Business - Oracle 10g R2 I have done the following: - secured the dbconsole - made sure that the OS user has admin rights & can log on as a batch job - env. vars O

  • Apple TV won't wake up mac after Yosemite update

    Hi all, Yesterday, I upgraded to Yosemite and to iTunes 12.0.1.26. I have a mac mini (late 2012), an Airport Extreme Time Capsule (latest model), and an Apple TV 3 (A1469). I upgraded my Apple TV to the latest software version when iOS 8 came out. Wh

  • I need to do some work in Arabic language...

    Hi I need to do some work in Arabic language... Write text in Arabic language into a food product label I use Google translator for translation But when I copy and paste into illustrator cs4 which I use now Then the Arabic text comes the wrong way Do

  • Issues in using web service proxy

    Guys, I have created a web service proxy using jdeveloper 11g. I'm tried to call the web service. But my output is not getting populated as expected. I mean the objects on the response object is not getting populated as expected. I guess there is a i

  • MIRO Invoice Receipting Workflow Solution for unreceipted Goods / Services

    Hi We wish to improve the flow of Invoice Receipting (MIRO). Problem: Invoices are receipted centrally at head office Goods/Service Receipts are performed on location at site Some Invoices are received from the Vendor before site has goods/service re