Including JavaScript in a .js File Referenced by the Page Template

http://download-uk.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28839/javascript.htm#BCEHEFGF
Hi trying to implament Patrick's Library
In the above it gives you the following to put into the template header
<script src="http://myserver.myport/my_images/custom.js" type="text/javascript"></script>
I take it
my server is server1.blahblah.co.uk
port is 1577 or somthing
my_images is the default image folder
so you would get somthing like ...
<script src"http://server1.blahblah.co.uk.1577/images/jquery_Compressed.js"type="text/javascript"></script>
<script src"http://server1.blahblah.co.uk.1577/images/ApexLib_Compressed.js"type="text/javascript"></script>
<script src"http://server1.blahblah.co.uk.1577/images/ApexLib.css"type="text/javascript"></script>
am I on the right lines?

Hello,
If you are using the base APEX images directory for the ApexLib JavaScript files, As Patrick recommends in his installation “How To” document, you can use the alias /i/ for your path. For example:
<script src="/i/apexlib/jquery_Compressed.js" type="text/javascript"></script> It’s simpler and portable this way.
CSS files should be loaded using the <link> tag (http://www.w3schools.com/tags/tag_link.asp). In your case, you should use something like this:
<link rel="stylesheet" href="/i/apexlib/ApexLib.css" type="text/css" /> Don’t skip the ‘=’ sign on your src attribute.
Regards,
Arie.

Similar Messages

  • JavaScript help Including JavaScript in a .js File Referenced by the Page

    I need help with JavaScript. I have been doing the Advanced Tutorial, and still don't feel that understand how to make it work.
    The example in "Oracle Database Application Express User's Guide" shows this line:
    <script src="http://myserver.myport/my_images/custom.js" type="text/javascript"></script>
    I understand that "my_images" is hypothetical, but where is the real equivalent to this?
    Is there a working example/tutorial of Including JavaScript?
    <li />Also how does one create AJAX functionality?
    If I want to do something like this http://www.w3schools.com/ajax/ajax_server.asp
    in APEX, where do I place the "time.asp" script?
    <li />Can we assume that the HTML and ASP file are in the same directory?
    Please any assistance with these topics are greatly appreciated.

    Hello,
    >> what is the directory structure you would use for /my_images/custom.js? Where does one load these .js files? where is it in the local machine?
    C:\oracle\product\10.2.0\db\Apache ?
    The documentation only gives you a possible example (and I might agree that it’s not the best one). You should put your external JS files (on the server OS file system) wherever it will be most accessible and maintainable for you. The best place, IMHO, is under the /images/javascript/ directory. The reason is very simple. You can use the alias /i/, which defined in your DAD file, to gain a very simple path to the file. In this case, the loading statement will look similar to the following:
    <script src="/i/javascript/custom.js" type="text/javascript"></script>
    >> Do you mean "Oracle Database PL/SQL Packages/Types and htp packages?"
    I’m assuming you are talking about the on-demand process. This is a regular PL/SQL anonymous block, which will be fired only upon specific request - http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/bldr.htm#BABEAIIE . This is the mechanism for handling the server side of AJAX.
    >>Anythig else available for us to levarage?
    Denes examples site can also be a valuable resource - http://htmldb.oracle.com/pls/otn/f?p=31517:1 .
    Regards,
    Arie.

  • Where are the "exercise files" referenced in the video tutorial for After Effects?

    Where are the "exercise files" referenced in the video tutorial for After Effects?  A search yielded no results.

    Creating your first project | Learn After Effects CC | Adobe TV

  • The data source "....." referenced in the form template is not valid or cannot be found

    Greetings,
    I have an InfoPath 2013 form that uses an external data connection.  The data connection became corrupt (somehow, no one knows who changed what).  A user went in to InfoPath designer and created a new data connection and changed all references
    to use that new data connection.  Now the form cannot be published at all with the error
    "The data source "GetUserProfileByName" referenced in the form template is not valid or cannot be found"
    The new data source they created is GetUserProfileByName2 and changed all references.
    Of course, since it is broke, they asked me to see if I can find the issue.  I went through the form looking to see if they missed any references to the old data connection and can't find anything.
    Where is InfoPath storing the old data connection information and where can I remote it?  I looked in the manifest and don't see it there either.
    Any thoughts?
    Thank you!

    Hi Bob,
    There are many XML schema files for the data connection, I recommend to check if the references to the XML files have been changed to the new schema files in the manifest file.
    For example, if we create a data connection called GetUserProfileByName, then there will be one XML file and three XML schema files for the data connection.
    Please make sure that all the references are updated in the manifest file.
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • Can I Save a Single .AI Document As Multiple Files, Seperated by the Page Tiling?

    There must be a way to save or output a single Adobe Illustrator file  into multiple files based on the "pages" I have created in the  document?
    For example, if I have tiled 10 tabloid-sized  pages onto a single Illustrator CS3 .AI file, is it possible to save  the file in a manner that will allow all of those tiled pages to be  saved as a seperated or individual files?
    I guess it  would be a similar concept to how in newer versions (like CS4) you can  export multiple jpegs of an illustrator file that contains several  artboards and it automatically assigns a number suffix to the filename  since multiple files were outputted from the single ai file.
    Any  help is MUCH appreciated. Thanks!

    Please post your question in the Illustrator forum. This forum is for suite specific issues only.
    Bob

  • Quicktime movie - publishes a ghost file, placing on the page

    I have two questions.
    First - the ghost file
    I dragged a Quicktime movie file to a page and then published to a folder. I realised that I had attached a 27Mb file instead of a smaller file (750k) that I had meant to. I deleted the large file (select/delete) and dragged the new file on to the page and published to a new folder. However the large file keeps publishing even though I thought I had deleted it. I always end up with the large file and small file in the published folder. How can I stop this happening?
    Secondly - placing on a page
    The QT movie has an area above the control bar for a graphic which I didn't fill. How can I accurately place the QT file on the page so I can line it up with text - the graphic box seems to stop text flowing around it or placing it where I want it.
    Thanks

    I suspect your ISP is serving you an older "cached" file instead of the new "fresh" one. More common overseas than here in the U.S. and some ISP's are worse than others.
    Try "refreshing" the page (Command-R in your browser) to see if it now finds the new page.
    If that fails (and it may because these ISP's are so aggressive about caching) try adding a question mark (?) to the end of the address in your browser:
    apple.com becomes apple.com?

  • Build an application installer and include files referenced in the code

    I want to make an application installer of my project, and I need to include a picture that I'm using in the code.
    This picture is used both in the vision assistant and in a low level color pattern match.
    What I need is some way to reference this picture in my code, so that when I create the installer and the project is installed on another computer, this file will always get referenced.
    Can someone please tell me how to do this?
    Thanks in advance!

    Your installer should be putting everything in the data folder you need.  So it should be fine.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How can I set #HOST# variable referenced in the Chart template?

    #HOST# and #HOST_PROTOCOL# are being set incorrectly by APEX from CGI variables when I create a chart. I am using APEX 4.1 and Oracle 11g. The get the continual "Loading data..." and then after it times out I get "Error loading file".
    Before we changed to a secure http environment, our charts worked. After we changed to the new web layer, the charts do not work. The #HOST# substitution was set to http://correctservername/ and #HOST_PROTOCOL# was set to http. We set PlsqlCGIEnvironmentList REQUEST_PROTOCOL=https in the dads configuration file and now the #HOST# displays https but it also includes the default port number which we do not want (https://correctservername:port/) The charts work without the port. REQUEST_PROTOCOL is not in the cgi list and setting this variable set #HOST_PROTOCOL#. What variable can we set to make #HOST# correct. It seems like #HOST# is being set by #REQUEST_PROTOCOL#'://'||HTTP_HOST||':'||SERVER_PORT||SCRIPT_NAME||'/'. SERVER_NAME could also be used in of HTTP_HOST. I don't know how APEX is setting #HOST#. Does it come from a host alias somewhere in the environment?
    I don't want to add a new cgi variable called HOST because HOST sounds so generic and it might interfere with something else running in our environment. Or, I don't want to change the plsql cgi environment variable (such as HTTP_HOST) because many developers may use owa_util.get_cgi_env('HTTP_HOST') to get the current server. If the SERVER_PORT is part of the #HOST# then what could I change it to if it needs to be null. If you leave it blank, then the default SERVER_PORT comes from the CGI variables.
    I would rather not create a global variable (hard-coding) and create a new chart template using the global variable or create a before header application process to re-direct url without a port.
    Edited by: Donna C-Houston on Oct 10, 2012 1:06 PM

    Hi Donna,
    changing the CGI environment variables HTTP_HOST, REQUEST_PROTOCOL and SERVER_PORT is the correct way how to resolve this, because it appears that your hiding the web server where you have installed mod_plsql or EPG by a different outside facing web server (also called reverse proxy). That's why APEX gets the host name, protocol and port of the internal web server, but should actually get the values of your reverse proxy web server. Can can fix that by changing the following CGI environment variables.
    HTTP_HOST should just contain the domain name (no protocol or port). For example: www.oracle.com
    REQUEST_PROTOCOL should contain http or https
    SERVER_PORT should be the port for https
    I don't want to add a new cgi variable called HOST because HOST sounds so generic and it might interfere with something else running in our environment. Or, I don't want to change the plsql cgi environment variable (such as HTTP_HOST) because many developers may use owa_util.get_cgi_env('HTTP_HOST') to get the current server. If the SERVER_PORT is part of the #HOST# then what could I change it to if it needs to be null. If you leave it blank, then the default SERVER_PORT comes from the CGI variables.The value of HTTP_HOST is wrong anyway and points to your internal web server, but I assume your developers actually want to get the host name of your external web server if they use it to generate absolute URLs. That's why I wouldn't bother and set it to the correct host name.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Why this site used php files in all the pages?

    Hola
    I download my friend's site and ALL the pages are in a folder with the file name index.php ... WHY?
    Example;
    Name of folder; gallery
    Inside this folder, a file with the name index.php
    Name of folder; contact
    Inside this folder, a file with the name index.php
    It has an "includes" folder with files for ;
    header.php, footer.php, content.php and functions.php
    and so on.
    Now, this site has ONLY 7 pages, it's not like it's a monster site, so
    what is the purpose of using php in every single page?
    I have to tell you that my friend has a program call CKeditor and CKfinder to
    edited her website.
    Not sure if this is the reason why this site has been coded all of it with php files.
    I'm waiting impatiently for your responce

    >Now, this site has ONLY 7 pages, it's not like it's a monster site, so
    >what is the purpose of using php in every single page?
    The reason for using php extension or not has absolutely nothing to do with the size of the site. If the site uses dynamic pages, then the page need a dynamic page extension. Even sites without dynamic pages often use .php in anticipation of using them so the file names won't need to be changed down the road.
    Now, if your question is more about why they created separate directories for each page, it's probably so the url's can be accessed without including the file extension, Ex
    example.com/contact
    instead of
    example.com/contact.php

  • How to get Bursting file to use the same template as selected by user

    I have created an XML publisher bursting control file for a standard Oracle report Direct Debit letter.
    The user wants to be able to select from a number of different letter templates which is ok except that the bursting control file is fixed to use one template.
    How can I get the bursting control file to use the same letter template as selected by the user when running the report ?
    I am using XML Publisher 5.6.3 with bursting patch.

    Try these following, which come to my mind now as of now.
    In the bursting file, you can do the filtering and apply different template..
    <xapi:template type="rtf" location="/usr/template1" filter=".//DIRECT_DEBIT[./parameter_or_element='first_template']"></xapi:template>
    <xapi:template type="rtf" location="/usr/template2" filter=".//DIRECT_DEBIT[./parameter_or_element='second_template']"></xapi:template>
    second option..
    you can replace the element from the xml in the bursting control file.
    ${ELEMENT_NAME}
    can be used in the template name i guess..
    <xapi:template type="rtf" locale=""
    location="xdo://AR.${SHORT_NAME}.en.US/?getSource=true" translation="" filter="">
    </xapi:template>
    But in this short name has to be in XML file...
    I haven;t tried it...wil try it wheni get time..

  • How can I name files separate from the page titles on the menu options?

    Ok, this is so much of a pain. I use a unix based web-server so the content is very case sensitive, and having spaces in the file names is just unmanageable. So.. how can I have pretty menu titles but have real world filenames?
    Presently I have to generate the pages, drop to vi and edit every frickin file to change the spaces to '_' characters and stuff. Depending on how many pages I have takes quite a long time.
    Anyone figured out a way to get around the stupid apple file naming convention ??
    /bk

    Thanks, I was afraid that was the case. So to have normal filenames that work cross platform I've got to manually tweak the pages once they are done. I suppose I was just hoping there was some 'expert' edit mode where I could have names for the files, vs names for the pretty menu items. Oh well, its not that bad I suppose it takes me say a day to manually code up a multi page site by hand, so if I can blow out a muliti page iWeb site in under an hour and then take another hour to tweak the code its still a win.
    Thanks again!!

  • Dreamweaver CS5 - Update Template Files after viewing the page in a browser

    Hi
    Just a quickie I hope someone can help me with.
    My site has been created using a Template. Everytime I look at a page in a browser, I get the UPDATE TEMPLATE FILES. Clicking update or don't update has no effect so I'm wondering why this message keeps appearing and how to stop it. I usually use Firefox on Windows 7 but it seems to happen with any browser.
    Any suggestions?
    Many thanks George

    Hi Murray
    This is erratic. I don't get it all the time but enough of the time for it to be an annoyance. If I've made a change to content in DW then chosen the Preview in Browser option then exited the browser to return to DW, the alert appears. And it has happened to my delegates in training sessions when they have repeated the same process but with IE.
    As I said, it doesn't happen all of the time - we seem to get a run of it then nothing.  For example, I was plagued with it all day yesterday but it hasn't occurred once today!!!
    Anyway I have temporarily published the site and here is the link - http://www.gbft.co.uk/orchestra/index.html.
    Many thanks
    George

  • Issue with LDT file generated for the XML Template

    Hi,
    I have defined a Template in 11i instance. Attached an .rtf file to the same. Now, I have to migrate the Template definition along with the .rtf assignment to the template to R12 Instance.
    I was able to download the Template definition using FNDLOAD command. LDT file got generated in the same directory where I executed the FNDLOAD DOWNLOAD command.
    But, I was trying to download the .rtf assignment using the command - java oracle.apps.xdo.oa.util.XDOLoader DOWNLOAD.
    I have specified a .ldt file along with the command, but the .ldt file doesnt gets generated. It says the default file is xdotmpl.ldt.
    Where does the .ldt file gets generated for this command?
    Thanks in advance.
    Kiran

    I gave the command as follows -
    java oracle.apps.xdo.oa.util.XDOLoader DOWNLOAD \
    -DB_USERNAME apps \
    -DB_PASSWORD apps \
    -JDBC_CONNECTION server1:1525:instance02 \
    -LOB_TYPE TEMPLATE \
    -APPS_SHORT_NAME IBY \
    -LCT_FILE $XDO_TOP/patch/115/import/xdotmpl.lct \
    -LDT_FILE AP_FORMAT.ldt
    I was expecting a ldt file - AP_FORMAT.ldt. But infact I get a AP_FORMAT.drvx file.
    Also, when the above command is executed, I am getting an error message -
    Calling FNDLOAD: FNDLOAD apps/apps@server1:1525:instance02 0 Y DOWNLOAD /backup1/anliv02/apps/apps_st/appl/xdo/12.0.0/patch/115/import/xdotmpl.lct AP_FORMAT.ldt XDO_DS_DEFINITIONS APPLICATION_SHORT_NAME=IBY
    APP-FND-01564: ORACLE error 12514 in AFPCOA
    Cause: AFPCOA failed due to ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    The SQL statement being executed at the time of the error was: and was executed from the file .
    Generating DRVX file: xdotmpl.drvx
    Any help on this appreciated.
    Thanks in advance.
    Kiran

  • Hi. I made a modern resume from the pages template and then made a modern letter from the templates, how do I combine the two into one PDF file in Pages? Thank you.

    Hi. I made a resume from the modern template in Pages, then I made a letter from the modern template in Pages. How do I combine the two (cover letter and resume) into one PDF file. Thanks in advance.

    Open them both in Preview.app and drag the thumbnail of one into the other,
    Peter

  • "a file referenced by the Pan and Zoom (Basic) plug-in is missing"

    I get this message a lot in the finder, and it's stubborn about being dismissed.  Any clues how to get rid of it?  I assume it has something to do with either Avid or Final Cut.

    When you download it, a file appears on your computer that is entitled
    installflash_player_osxub.dmg
    When you double-click that file, a disk image appears on your desktop called Flash Player. Double-click that, and a window opens that contains a folder called "Install Adobe Flash Player". Double-click that, and Adobe's proprietary installer application opens and invites you to download and read the Flash Player license agreement. When you've had enough of that, click the checkbox and then the Install button. Enter your administrator pasword and click OK, and the plug-in will be installed.

Maybe you are looking for