Using .js file in dynamic page

In 9.02 i created a portal dynamic page. I would like to include .js file (overlib.js). Can you do this?
I have tried using the "src=" but it did not work.
If I try to include the .js code directly in the dynamic page, I get an error. I assume it is a size limitation.
Help.

When you say "source=", are you talking about this usage for instance?
<script type="text/javascript" language="JavaScript1.2"
src="http://mysite.com/js/myjavascript.js">
</script>
Did you get a runtime error after putting that in the dynamic page?

Similar Messages

  • How do i read a context of text file within Dynamic Page of portal ?

    Dear sir,
    I have a text file in client computer. I hope i can transfer the context words of this text file to oracle database. How do i coding this script in dynamic page of portal?
    Can Oaracle 9ias script read and draw the context of a document. Thank you ver much!
    Ghia Liu

    Great questions, Rik, and I understand how this might seem bizarre. Here's the story... these 2500 files were authored with a built-in authoring tool of our current knowledge management system. This KMS is about to be replaced with a new one and because the new KMS needs content within the <head> tag instead of where it was in the <body> tag and redefined as meta data, I repuposed the content in those files using Dreamweaver and regular expressions.  However, the one remaining <h3> and <p> content is in the middle of the newly tagged meta data and it must be moved from the <head> area and into the <body> area.
    Because these were authored in the built-in KMS authoring tool, there is no style sheet and no, we do not manage our content with a CMS.
    You are correct, if the <h3> and <p> were at the end of the data, I could simply move the </head> and <body> tags, but unfortunately that is not the case.  They are consistenly in the same place in all 2500 files, but in the middle of the data. Following is an example:
    <html>
    <head>
    <title>Title here</title>
    <meta name="XYZ" content="Something here...">
    <h3> Blah blah</h3> <p>More blah blah</p>
    <meta name="123" content="More somthing here">
    <meta name="456" content="More somthing here">
    </head>
    <body>
    </body>
    </html>
    Again, I can find the block using a regular expression <h3>(.*?)</p>, but dont know what to do after that.
    I've been told that perl or grep might do the needed task, but that requires outside resources and I have no budget for that.
    Any suggestions are greatly appreciated.
    thanks,
    Rick

  • How to use Custom Search in Dynamic Page or HTML Portlet ?

    Gurus,
    1. I have a tab called My Space in the portal web site, where user gets a personalized view of the content.
    2. I am using custom attributes and custom item types. I have a custom attribute called 'Location', which is a attribute of custom item types.
    3. I have 2 pages - News and Events.
    4. All the content in News and Events page is tagged by the attribute 'Location'.
    5. The requirement is to let the user search the News and Events by Location.
    6. To achieve this I used the Custom Search portlet and the user can select the attribute Location and see the resultant News and Event items by location in the Search portlet.
    7. The requirement is to present the News items and Event items in separate regions on the page and show only the first 5 News and Event items in the result and show a More link which would guide the user to rest of the News and Event items.
    8. Eventually there may be more content other than News and Events tagged by location. If so, the requirement is to create a new region and display the new content.
    9. How would I do this using custom search ? I was thinking if there is anyway I could use the custom search api (where can i find it ?) in the HTML portlet or Dynamic page and submit the result to IFRAMES in each region and show the output ?
    Pls advise.
    Thanx a bunch.

    I would suggest that you use two custom search portlets; one for the news items and one for the events items. Switch the custom search portlets to "AutoQuery" mode and add the relevant criteria. On the results display tab of the the "edit defaults" screen, choose to show just 5 items.
    To add a link to show the user mode results, I'd create two new pages that have just a single custom search portlet on it that is customised to show more of the results and maybe has the pagination links enabled.
    Then I'd add two "Page Link" items underneath the two news and events portlets on the first page in an item region.
    I'm sure there are other ways of doing this as well. Hope that helps to get you started.

  • Using Template information in dynamic pages

    Having created some interface templates for my current project, I find I am not able to readiily use them in dynamic pages.
    Is there a technique for this, that allows me to get the details from my page styles / Interface templates and combine them with output dynamic pages?
    I am able to associate backgrounds ( for example ) with customization forms, but not output.

    I understand the desire to not use an applet. Have you tried an html pop-up? This will create a separate http request through to your server on the user's same session. This allows your server to do the required processing to display the data to the user via html.
    Use the target="_blank" attribute of the anchor tag, or a window.open JavaScript method.

  • Not getting connection using DBC file in JSP page

    Hi,
    I have a custom page. I am trying to open a JDBC connection using DBC file. Below is the command I am using for that -
    ctx = new WebAppsContext(dbfilename);
    Connection conn = ctx.getJDBCConnection();
    My dbc file location is 'C:\OA\jdevhome\jdev\dbc_files\secure'.
    the code is raising exception after getJDBCConnection is called.
    Any Idea where I am missing?
    Regards,
    Adarsh

    This is not an OA question...
    The DBC information is already set in the JVM for the Oracle Application Server:
    WebAppsContext ctx = new WebAppsContext(System.getProperty("JTFDBCFILE"));
    Connection conn = ctx.getJDBCConnection();
    And always check for if the WebAppsContext or the Connection objects are null.

  • Using .smil files for dynamic streaming in playlists

    I have multiple questions, but I feel I would make more sense to explain my intentions.
    I have a video player with a playlist written with AS3, along with an .XML settings file to edit the playlist.  I can successfully play rtmp:/ streams from my FMS server on the video player.
    Though, I would like to use dynamic streaming using the dynamicStream.smil file with my existing video player/playlist.  Is this a proper approach for what I am trying to achieve?
    Lastly, I have been unsuccessful taking the snippet code from the FMS, Dynamic Streaming sample page, and using it within an HTML document.  I assumed all I would need to change were the paths to where the rtmp:// video file, .smil, and the video player files were located on the FMS.  Any ideas?
    Any help will be greatly appreciated.
    Using: Linux, FMS 3.5, CS4

    But DynamicStream.as is part of the code base and the does get executed.   Jody, which version of DynamicStream.as is more current?   The one that ships with FMS 3.5 or the one in tools?
    Can anyone answer my original question (I think) which is: should I be able to switch source = http://dynamicStream1.smil -> source = http://dynamicStream2.smil and back and forth etc.  It seems to work.    Are there any caveats?  I am not switching back and forth between flv-s and smil-s
    It turns out that there are a couple of lines of code in NCManger.as::bitrateMatch() which is concatenating the streamName and this results in 404 on the FMS side.   I'm not sure what this is supposed to do or if this is just a bug, but the upshot was that I could not specify source = http://dynamicStream.smil on a remote server.  The uncanny part of this issue is if I serve the same smil locally, referencing remote remote smil and media, it works.  Maybe this has something to do with the bit rate.    Bottom line is that this cost me 3 days, becuase I was under the incorrect impression that you could not reference *.smil directly and I blindly followed the handrail provided by the the FMS videoPlayer sample.  Shame on me for trying to leverage working code shipped with a production version.
    NCManger.as::bitrateMatch()
    if  
    (_streamName != null
    ) {_streamName += _streams[whichStream].src;
    My incling is to change the += above to an = and get on with it.
    If someone at adobe or anywhere can have a look and give me some other guidance, it would be much appreciated.
    Thanks to Sean for the kind and detailed responses and giving me the green light that source=http://dynamicStream.smil _should_ work.
    Thanks to all.

  • How use class file in jsp(very urgent)

    i have class file called birds (birds is actually a xslt file transformed to java class file) now this class file i have to use in my jsp file. how can i use them. if possible can any one give me sample code please very urgent
    can any one help me

    java files
    import org.w3c.dom.*;
    import javax.servlet.http.*;
    import javax.xml.transform.*;
    import javax.xml.transform.stream.*;
    import java.io.*;
    public class XmlParser
         public String XmlParser()
              try
    String strXML= "employee.xml";
                   String xslFile = "employeeId.xsl";
                   TransformerFactory tFactory = TransformerFactory.newInstance();
                   StreamResult theTransformationResult = new StreamResult( new ByteArrayOutputStream() );
                   Transformer transformer = tFactory.newTransformer(new StreamSource(xslFile));
                   transformer.transform(new StreamSource(new StringReader(strXML)), theTransformationResult);
                   String output = theTransformationResult.getOutputStream().toString()
              catch(Exception e)
                   System.out.println(" ***** XmlParser.XmlParser ERROR ***** " + e);
    return output;
    using class files in jsp
    <%@ page import="com.qqqq.aaaa.XmlParser"%>
    <%
         XmlParser xmlParser          =     new XmlParser();
    out.println(xmlParser.XmlParser());
    %>
    i think it will help you.

  • Passing URL's as Parameters to Dynamic Pages

    Hi Everyone,
    I'm trying to pass a full URL (including protocol http:// or https://) to a dynamic page as a parameter. The problem is that when the customization form is submitted, the ":" character in the URL is changed to "*!" and the page won't display. I tried using "REPLACE" in my dynamic page PL/SQL code to change the "*!" back into a ":" but to no avail.
    Any suggestions?
    Thanks in advance,
    Wayne

    I have the same issue... Did you find a way to do this?

  • Managing recorded files using dynamic page.

    Hi all,
    I have an app that record the user's voice, each time in one
    different file
    adding an index to the end of the file name.
    rec_tom1.flv, rec_tom2.flv....
    I'm having some problems trying to recover this names
    I need to know if it's possible list this recorded files
    using a dynamic
    page. I have a web host at host A that will have an asp page
    pointing to my
    FMS host B, this page will list the flies and return it to my
    flash app,
    then I 'll load this in a list box.
    in the dynamic page at some point I'll need the PATH to the
    FMS server....
    this is where thigns fail....
    I've tried to point using as path the "rtmp + account name"
    without success.
    So, I need to know if first this is possible, then if so, try
    to figure out
    the correct path to it.
    best
    rodrigo.

    Central comes with predefined tasks PGCNTGET and PGCNTSET (see below). Create a job that includes both thses JFMERGE steps. PGCNTGET will run through the job, count pages and direct output to -zNUL. PGCNTSET will run through the job again and this time have the number of pages stored in variable @pagecount and direct the output to -z@PhysicalDev
    If you create a data field PAGES on your template you can pass this into the field:
    ^GLOBAL PAGES
    Page @$PAGE. of @PAGECOUNT
    Tasks:
    PGCNTGET "@MDFName." "@InFile." -l -apr"@PreambleName." -all"@LogFileName." -asl@SkipLines -amq@ManagedMem -ams"@MSTName." -m@Macro#.@LoadFlag -z"@PhysicalDev." @PrintDirectorParms. @OtherJobTokens. -aii"@IniFileName."
    PGCNTSET "@MDFName." "@InFile." -l -apr"@PreambleName." -all"@LogFileName." -asl@SkipLines -amq@ManagedMem -ams"@MSTName." -m@Macro#.@LoadFlag -z"@PhysicalDev." @PrintDirectorParms. @OtherJobTokens. -aii"@IniFileName." -advglobal:pagecount=@NumberPages.

  • Dynamic include file in JSP page

    <span class="value">Hi
    i have index.jsp , this page can include jsp
    pages dynamically by passing the name of the page to be included to the
    index page with out .jsp , so if i want to include page "code.jsp" i
    put: .../index.jsp?page=code , this have to include code.jsp page
    i made the following code , but it did not find the file
    so can any one help plz ?
            String pg=request.getParameter("page");
            if( pg!= null && ! "".equals(pg)){
                    File f=new File(request.getParameter("page")+".jsp");
                    if(f.exists()){
                            out.print("file exist");
                            %>
                            <jsp:include page="<%=request.getParameter("page")+".jsp" %>" />
            <%
                    }else{
                            out.print("file not exist");
         

    What does the file existing or not really have to do with it?
    You can try it like this:
    String pg=request.getParameter("page");
            if( pg!= null && ! "".equals(pg)){
                    String webPath = pg + " .jsp";
                    String realPath = request.getRealPath(webPath);
                    File f=new File(realPath);
                    if(f.exists()){
                            out.print("file exist");
                            %>
                            <jsp:include page="<%= webPath %>" />
            <%
                    }else{
                            out.print("file not exist");
            }Alternatively you could try using a request dispatcher:
    RequestDispatcher rd = request.getRequestDispatcher(webPath);
    if (rd == null){
      // doesn't exist
    }

  • How can i render a dynamic html file in jsp page

    Hi everybody,
    i am trying to render a dynamic html file in jsp page with the result of querying a database.
    The response of the query is a xml document. And i have a stylesheet to transfer it to html.
    How can i render the html in a jsp file?

    I am using below code for HTML files
    private var appFile:String="index.html";
    if (StageWebView.isSupported)
                        currentState = "normal";
                        webView.stage = stage;
                        webView.viewPort = new Rectangle( 10, 130, (stage.stageWidth)-20, 750 );
                        var fPath:String = new File(new File("app:/assets/html/aboutus/"+ appFile).nativePath).url; 
                        webView.loadURL(fPath);
                        addEventListener(ViewNavigatorEvent.REMOVING,onRemove);
                    else {
                        currentState = "unsupported";
                        lblSupport.text = "StageWebView feature not supported";
    above code is working fine for me.

  • Dynamic Page that uses javascript to run an executable on the client's pc

    I have an .exe file on a shared network that has to be called and executed from portal. The below code works as standalone but not from a dynamic page or an HTML portlet. Any ideas?
    <html>
    <script language="javascript" type="text/javascript">
    function runApp()
    var shell = new ActiveXObject("WScript.shell");
    shell.run('"c:/CstatsWeeklyreport.exe"',1,true);
    </script>
    <body>
    <input type="button" name="button1" value="Run Notepad" onClick="runApp()" >
    </INPUT>
    </body>
    </html>

    Thanks D, but that's not what I'm looking for. That changes which application a file opens with when you download it. That's not what I need for this situation. Here's a little more detail.
    The clients will have an application on their hard drive; it can be any application, even a custom application that they developed themselves. Then, they open a web page with a listbox full of items. Depending on which item they select, a query will return a file path to the .exe file itself. The .exe file resides on the client's hard drive, not on the server. So they're not downloading anything. Depending on the filepath returned by the query, the browser needs to start the process and open the .exe file for them.
    So let's say I have developed a simple text editor called Tedit. I have a file on my hard drive - "C:\TextEditor\bin\debug\TEdit.exe". When they click the open button, that file path is returned from the database. Then the javascript is called to start the process and open that program.
    Again, nothing is getting downloaded, the application resides on the user's hard drive and there is no file to associate it with.
    This can be done in IE using an ActiveX control. And it used to be possible in Firefox using the nsIFile or nsIProcess objects. But since FF15 that's not available anymore, so the javascript throws an error telling them that their permission is denied.
    What I need, is a javascript that will launch the .exe file from the user's hard drive without downloading anything.

  • 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

  • Using a dynamic page in an enclosure url tag.

    I am trying to use a dynamic page (e.g. asp, jsp, .cfm) to stream content to itunes as part of a podcast.
    So... the ASP file opens an mp3 file on the server-side, and sends it in binary format down to itunes. I setup the correct file type in the header (e.g. application/octet-stream) in the , but it does not show up in the podcast (everything else does).
    The question is, if itunes sees something other than "mp3, m4a, m4b, m4p, etc." in the <enclosure url> tag, is it just rejecting it based on the name?
    If I just take the URL that is in the enclosure and paste it in a browser, the file comes up fine with no dialog, etc., it just streams to the browser which invokes itunes which plays it.
    But again, the podcast is not loading it.
    Any help appreciated.
    Scott.

    I don't know anything about asp or javareg.
    In Java, if classes are in a jar file, the jar file must be specified explicitly in the classpath, not just the directory containing the jar file. Maybe you already know this, but worth a shot.

  • How to create a form based on table using dynamic page?

    Hi,
    I need to create a form using dynamic page. How do you pass values from the html form to a oracle procedure that will get executed on submission of the form ? I could not find any documents which shows how to do that. Can anyone please help me out with an example ?
    thanks,
    Mainak

    Hi,
    Something seems to get added to the form action because of "http". Hence I am removing it.
    You need to write a procedure with the values in the as parameters. Say for example you want to insert a record into dept
    table then
    Dynamic page code
    <html>
    <body>
    <form action="portalschema.insert_dept">
    <input type="text" name="p_deptno">
    <input type="text" name="p_dname">
    <input type="submit" name="p_action" value="save">
    </form>
    </body>
    </html>
    Procedure code.
    create or replace procedure insert_dept
    (p_deptno in number,
    p_dname in varchar2,
    p_action in varchar2)
    is begin
    if p_action = 'save' then
    insert into scott.dept(deptno,dname) values(p_deptno,p_dname);
    commit;
    end if;
    end;
    grant execute on insert_dept to public;
    Hope this helps.
    Thanks,
    Sharmila

Maybe you are looking for