Including flash from different directory

hi. I want to include swf file from another directory. I'm
including flash in this way:
*** file: flash/flash.cfm
<script type="text/javascript"
src="swfobject.js"></script>
<div id="flashcontent"><strong>no
flash</strong></div>
<script type="text/javascript>
var so = new SWFObject("flash.swf", "flash", "111", "200",
"8.0.0", "#00000");
so.addParam("allowScriptAccess", "sameDomain");
so.addParam("menu", "false");
so.write("flashcontent");
</script>
this file is located in directory flash with flash.swf file.
Now, I wish to inlude the flash object into page from up
directory. I try somthing like this:
*** /test.cfm
<cfinlude template="flash/flash.cfm>
but i get message: no flash (from div). My question is: how
to attach swf file from another directory?

hi. I want to include swf file from another directory. I'm
including flash in this way:
*** file: flash/flash.cfm
<script type="text/javascript"
src="swfobject.js"></script>
<div id="flashcontent"><strong>no
flash</strong></div>
<script type="text/javascript>
var so = new SWFObject("flash.swf", "flash", "111", "200",
"8.0.0", "#00000");
so.addParam("allowScriptAccess", "sameDomain");
so.addParam("menu", "false");
so.write("flashcontent");
</script>
this file is located in directory flash with flash.swf file.
Now, I wish to inlude the flash object into page from up
directory. I try somthing like this:
*** /test.cfm
<cfinlude template="flash/flash.cfm>
but i get message: no flash (from div). My question is: how
to attach swf file from another directory?

Similar Messages

  • Running a java application from different directory

    I have the file in my
    c:/Folder/Program.java
    I want to compile and run it from D:/ (drive)i.e from different directory.
    Thanks in advance,
    Praveen.

    javac -cp c:\Folder c:\Folder\Program.java
    java -cp c:\Folder Program

  • Importing class from different directory

    Hi, Can anyone tell me how to import a class from a different directory? I have a DGenerator class in ./generator directory.
    I have tried Import generator.DGenerator; to use the DGenerator class. However. I got the error:
    cannot access generator.DGenerator
    bad class file: ./generator/DGenerator.class
    class file contains wrong class: DGenerator
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    Help please.
    Thank you!

    I don't understand why this is a Swing question, but at any rate if you want your DGenerator class to be found in a particular directory, you must do one of two things:
    1. Put that directory in your classpath and just refer to the class as DGenerator.
    2. Make the class belong to the package "generator".

  • Running  sql scripts from different directory

    Hi
    I have sql scripts in different directories as follows:
    D:\myapp\sql
    - load.sql
    - init.sql
    D:\myapp\sql\schema
    -users.sql
    -structure.sql
    D:\myapp\sql\populate\
    - data1.sql
    - data2/sql
    load.sql call all the other scripts as below:
    @init.sql
    @schema\users.sql
    @schema\structure.sql
    @populate\data1.sql
    @populate\data2.sql
    All my scripts run correctly when I run load.sql from D:\myapp\sql on comand prompt.
    I need a way to run this script from a different directory say D:\ or C:\
    I am writing a installer which will execute from a different directory.
    Right now I get a file not found error for scripts within schema an populate folder.
    Please let me know how can I make this work from a different directory.
    Thanks
    kelvin

    Hi peter. i think you cannot run files spread across different locations.
    --the method which u specified always looks to the defined path                                                                                                                                                                                                                                                                                       

  • All labview Vi's load from different directory

    OK this may be a stupid question but I done a save with options/ include VI.llbs. on my machine and now when I create a new vi whenever I try to put something on the block diagram it tells me that it is loading the files from the library that i saved for distribution. It only does this when I have the top level vi open of the library and try to open a new blank vi. It even does it when I open labview then open a blank vi and put anything down on the diagram and it does not give me this. then I can open up the top level vi from the library in question and put the same thing on the diagram and it will give me the warning. Maybe this is normal behavior, I don't know.
    It just seams kind of funny that it would try to lo
    ad NI VI's from the llb instead of mine. Hope some can shed some light on this. I do not want to mess anything up.
    thanks in advance.
    Joe
    Joe.
    "NOTHING IS EVER EASY"
    Attachments:
    labview.jpg ‏32 KB

    If I understand what you are saying, this is annoying, but normal behavior.
    LabVIEW can only have one VI of a specific name in memory at a time. So if you have the top level VI in question open, all of it's sub-vis get loaded into memory. So then if you create a new VI and drop the 'General Error Handler.vi' from the palette, it will use the one already in memory from your library.
    Creating a new VI right after you start LabVIEW will let you use the vi.lib files, but then when you open your application from the library, it must use any vi.lib files that are in memory first.
    Usually it's best not to save a .llb with the vi.lib files unless it's required for source code control. Then it's a good idea to use the Development Environment Applicaiton
    Builder from OpenG to build the library for you. This will add a suffix you specify to every VI in the library and relink them to their callers. This way, other VIs you open will use the vi.lib files.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • Jsp run from Different directory

    It is possible to run .jsp file from some other directory not from webapps dir?
    And i don't want to put my directory in webapps folder.
    And if it is possible how ?

    On Tomcat at least, /webapps is the deployment master directory for all apps. I don't know if Tomcat offers you an override of that directory name in server.xml or anywhere else.
    As for JSP files, you can save them anywhere you want under your application directory (which yes, goes under /webapps/) and then map them using the <jsp-config> and <url-pattern> elements of your application's web.xml.
    Here are a few possible resources:
    [http://www.datadisk.co.uk/html_docs/java_app/tomcat6/tomcat6_web_config.htm|http://www.datadisk.co.uk/html_docs/java_app/tomcat6/tomcat6_web_config.htm]
    [http://caucho.com/resin-4.0/admin/deploy-ref.xtp|http://caucho.com/resin-4.0/admin/deploy-ref.xtp]
    [http://docs.oracle.com/cd/E12840_01/wls/docs103/webapp/web_xml.html|http://docs.oracle.com/cd/E12840_01/wls/docs103/webapp/web_xml.html]

  • How to include a template from a different directory

    Hi,
    I have a page navigation menu that I placed in a template file.  All the browsing files would then call this template file using cfinclude. 
    I now want to call this file from a different directory.  However, this causes all the url and image links to be wrong because the template file uses relative path off of root directory.
    I have looked at using cfmodule, but it seems that I would have the same issues unless I make the paths absolute, which I am trying to avoid.
    I also thought of prepending to every link in the template file with a directory prefix variable which I passes from the calling files.
    Is there an easy and better way to solve this?
    Thanks!
    Min

    To dynamically get the absolute path from a relative path take a look at expandPath()
    http://livedocs.adobe.com/coldfusion/8/htmldocs/functions_e-g_05.html

  • How to include header files from different directories?

    Hi,
    Sorry for the newb question, but I can't figure this out. I'm trying to compile a simple piece of code (C++) that uses header files in a directory different from the Project directory; header files are in /opt/csw/postgresql/include/pqxx. I've tried a few different things, adding that directory to the include directives under Resource Files, add existing files from a folder, etc etc. Whenever I try to build, dmake bails with status -1. I can't seem to get this working, can someone explain how to use header files from different directories?
    Thanks,
    SlowToady

    Header files are usually specified relative to a base directory. If the base directory is not a system directory -- /usr/include or the compiler installation directory -- add a command-line directive
    -I path/to/base/dirfor each such directory.
    The path can be absolute, such as
    -i /opt/csw/postgresql/includeor relative, such as
    -I ../../my/includeIn your source code, specify the header file relative to the base directory, and be sure to use quotes, not angle brackets. Example:
    #include "header.h"  // right
    #include <header.h>  // wrongThe angle brackets are used for system headers, like <iostream> or <stdlib.h>.
    The rules above are common to all compilers on Unix and Linux, and generally to all C and C++ compilers.
    For more details, read about the -I option in the C++ Users Guide. You can find the guide by pointing your browser to the "docs" directory in the compiler installation, or go here:
    http://docs.sun.com/app/docs/doc/819-5267
    All command-line options are described in Appendix A.

  • How can I include a jsp file in other jsp from different applications?

              Hi,
              I'd like know if it´s possible to include jsp or servlet from different applications.
              

              Thanks Deepak but I think you don´t understand me.
              I would like the include works like a normal include. I have a jsp in my application
              and , when the client requests this jsp, in the jsp should be added the result
              of the other jsp ejecution that belong to other application in the same domain.
              Is this possible?
              Thank you very much.
              Deepak Vohra <[email protected]> wrote:
              > A Jsp from a different application is included with a relative url to
              >th=
              >e Jsp.
              ><%@ include file=3D"relative url" %>
              >
              >A Jsp could be included with request parameter.
              > <jsp:include page=3D'<%=3D request.getParameter("incFile") %>' />
              >
              >javilla wrote:
              >
              >> Hi,
              >>
              >> I'd like know if it=B4s possible to include jsp or servlet from differe=
              >nt applications.
              >
              

  • Include files from a different project ...

    Hi,
    I have projects A and B.
    Project A contains "includes": a directory with several include files.
    Project A gets deployed as a JAR file (ProjectA.jar). Example content:
      /includes/menu.jspfThe target directory for Project A's deployment JAR file is set to: /
    Project A has the following HTML Root Directory: ...AppA\ProjectA\public_html
    Project B has the following HTML Root Directory: ...AppB\ProjectB\public_html
    Project B needs the include files from Project A.
    Project B has Project A as a dependency.
    Project B has ProjectA.jar within its WEB-INF\lib directory.
    The problems are:
    1. Project B does not see the "includes" directory within its "Web Content" folder from Project A. How do you make Project B see Project A's includes directory?
    2. Project B cannot compile the following code:
    <jsp:directive.include file="/includes/menu.jspf" />
      ...The error message: Include file not found: /includes/menu.jspf
    The error message is to be expected as Project B cannot currently see the files located within WEB-INF\lib\ProjectA.jar. How can this be fixed?
    3. I have tried changing the HTML Root Directory to the "public_html" directories from both Project A and Project B. JDeveloper then displays an error indicating that it cannot find <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>.
    There should be a way to do this, as the images and styles for ADF are successfully deployed and used within WEB-INF\temp\adf.
    Any ideas are greatly appreciated.
    Thanks!

    Hi,
    I used a program called "Junction" to resolve this issue. It is a temporary solution.
    http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx
    The program makes a true symbolic link. This allowed me to link the includes directory from ProjectA into ProjectB. Linking this way will not work when we go to deploy a suite of applications. We would prefer to package the includes in a single JAR file, then redeploy the JAR file everywhere.
    Any other ideas?

  • Is it too much to ask from apple, an option for different volumes levels from different apps, including alarm, text, email, basically from every posible app?

    Is it too much to ask from apple, an option for different volumes levels from different apps, including alarm, text, email, basically from every posible app?

    My daughter has had her Razr for about 9 months now.  About two weeks ago she picked up her phone in the morning on her way to school when she noticed two cracks, both starting at the camera lens. One goes completely to the bottom and the other goes sharply to the side. She has never dropped it and me and my husband went over it with a fine tooth comb. We looked under a magnifying glass and could no find any reason for the glass to crack. Not one ding, scratch or bang. Our daughter really takes good care of her stuff, but we still wanted to make sure before we sent it in for repairs. Well we did and we got a reply from Motorola with a picture of the cracks saying this was customer abuse and that it is not covered under warranty. Even though they did not find any physical damage to back it up. Well I e-mailed them back and told them I did a little research and found pages of people having the same problems. Well I did not hear from them until I received a notice from Fed Ex that they were sending the phone back. NOT FIXED!!! I went to look up why and guess what there is no case open any more for the phone. It has been wiped clean. I put in the RMA # it comes back not found, I put in the ID #, the SN# and all comes back not found. Yet a day earlier all the info was there. I know there is a lot more people like me and all of you, but they just don't want to be bothered so they pay to have it fix, just to have it do it again. Unless they have found the problem and only fixing it on a customer pay only set up. I am furious and will not be recommending this phone to anyone. And to think I was considering this phone for my next up grade! NOT!!!!

  • URGENT: How to run a Java program from a different directory?

    Hi.
    How do I run a Java program from a directory that the file is not located in? So lets say im in c:\Java. But the file is in c:\Java\abc\efg\.
    What would be the command to run the Java file from c:\Java.
    I can't remember it and I need it asap.
    Cheers.

    If the class you are trying to run is MyApp.class, try
    c:\Java\>java -cp abc\efg MyAppThe actual classpath you specify will depend on whether or not MyApp.class is in a package (I've assumed it isn't) and whether or not any 3rd party jars are involbed (I've assumed not).
    Edited by: pbrockway2 on Apr 1, 2008 6:42 PM
    The command arguments read as "Run the MyApp class using as a classpath abc\efg relative to here (c:\Java)".

  • How to call java files from different directories

    hi, how do i call java files from a different directory??
    let say i got partA.java, and i need to include functions from partB.java which is in a different folder. how can i do that?

    Chicon wrote:
    Hi nuttynibbles,
    Before the class declaration in partA.java, you must have an import statement like :
    import someDirectory.partB;
    public class partA {
    ... and before you ask... you'll probably want to read through this http://java.sun.com/docs/books/tutorial/java/package/index.html

  • How to include flash object in web page

    Hi,
    I am using the code below:
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="626"
    height="159">
    <param name="movie" value="menu_application.swf" />
    <param name="wmode" value="transparent" />
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash"
    wmode="transparent" data="/portal/nam/swf/menu_application.swf"
    width="626" height="159">
    <!--<![endif]-->
    <ul>
    <li id="home"><a href="../"
    onmouseover="swap_main_navigation_class(event, this)"
    onmouseout="swap_main_navigation_class(event,
    this)">Nakheel</a> <span id="tag_line">Where vision
    inspires humanity</span></li>
    <li id="corporate" class="active"><a
    href="../corporate/" onmouseover="swap_main_navigation_class(event,
    this)" onmouseout="swap_main_navigation_class(event,
    this)">Corporate</a></li>
    <li id="news"><a href="../news/"
    onmouseover="swap_main_navigation_class(event, this)"
    onmouseout="swap_main_navigation_class(event,
    this)">News</a></li>
    <li id="blue_responsibility"><a
    href="../blue_responsibility/"
    onmouseover="swap_main_navigation_class(event, this)"
    onmouseout="swap_main_navigation_class(event, this)">Blue
    Responsibility</a></li>
    <li id="developments"><a href="../developments/"
    onmouseover="swap_main_navigation_class(event, this)"
    onmouseout="swap_main_navigation_class(event,
    this)">Developments</a></li>
    <li id="living"><a href="../living/"
    onmouseover="swap_main_navigation_class(event, this)"
    onmouseout="swap_main_navigation_class(event,
    this)">Living</a></li>
    </ul>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
    </object>
    Before invoking the code, I have registered the web object
    as,
    swfobject.registerObject("flash_scroll", "9.0.0",
    "/portal/nam/swf/index.swf"); // path is relative to my app server.
    Now when I put the same code in single directory, everything
    goes smooth, but once I decompse the code and when it loads this
    code from different places, it does not work out.
    Please guide me as I am a Java guy, but I am suppose to solve
    this asap :( some fire on my back...
    thank you for the help.

    Hi,
    I am using the code below:
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="626"
    height="159">
    <param name="movie" value="menu_application.swf" />
    <param name="wmode" value="transparent" />
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash"
    wmode="transparent" data="/portal/nam/swf/menu_application.swf"
    width="626" height="159">
    <!--<![endif]-->
    <ul>
    <li id="home"><a href="../"
    onmouseover="swap_main_navigation_class(event, this)"
    onmouseout="swap_main_navigation_class(event,
    this)">Nakheel</a> <span id="tag_line">Where vision
    inspires humanity</span></li>
    <li id="corporate" class="active"><a
    href="../corporate/" onmouseover="swap_main_navigation_class(event,
    this)" onmouseout="swap_main_navigation_class(event,
    this)">Corporate</a></li>
    <li id="news"><a href="../news/"
    onmouseover="swap_main_navigation_class(event, this)"
    onmouseout="swap_main_navigation_class(event,
    this)">News</a></li>
    <li id="blue_responsibility"><a
    href="../blue_responsibility/"
    onmouseover="swap_main_navigation_class(event, this)"
    onmouseout="swap_main_navigation_class(event, this)">Blue
    Responsibility</a></li>
    <li id="developments"><a href="../developments/"
    onmouseover="swap_main_navigation_class(event, this)"
    onmouseout="swap_main_navigation_class(event,
    this)">Developments</a></li>
    <li id="living"><a href="../living/"
    onmouseover="swap_main_navigation_class(event, this)"
    onmouseout="swap_main_navigation_class(event,
    this)">Living</a></li>
    </ul>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
    </object>
    Before invoking the code, I have registered the web object
    as,
    swfobject.registerObject("flash_scroll", "9.0.0",
    "/portal/nam/swf/index.swf"); // path is relative to my app server.
    Now when I put the same code in single directory, everything
    goes smooth, but once I decompse the code and when it loads this
    code from different places, it does not work out.
    Please guide me as I am a Java guy, but I am suppose to solve
    this asap :( some fire on my back...
    thank you for the help.

  • How duplicate ora11 on windows to another host with different directory structure

    Hi,
    I need help.
    I want to duplicate db (11.2) running on windows from server A to Server B
    Directory structures on server A and Server B are different;
    my steps
    on server A
    1.backup database plus archivelog delete input;
    2.insert into table t values(1);
    3.commit;
    4.backup archive log all;
    On Server B
    5.copy backup and archive logs from server A to server B (c:\backup\temp)
    6.create folders C:\oracle\oradata\bamboo
    7.oradim –new –sid bamboo -- (verified service is running)
    8. created pfile.ora with param (db_name=bamboo)
    9.SET oracle_SID=bamboo
    10.sqlplus  /as sysdba
    11.startup nomount pfile='(c:\backup\temp\pfile.ora'
    12.C:\oracle\product\11.2.0\db_1\database>rman auxiliary /
    result
    ..connected to auxiliary database: SBDBT02W (DBID=186082786, not open)  --could it be the fact that I tried to execute code bellow?
    My understanding at this point I should be connected to 'bamboo' -- my new database, what steps did I miss?
    I expect
    ..connected to auxiliary database: bamboo ( not mounted)
    bellow is code that I was going to run on Server B
    RUN
      SET NEWNAME FOR DATAFILE 1 TO 'C:\oracle\oradata\bamboo\SYSTEM01.DBF';
      SET NEWNAME FOR DATAFILE 2 TO 'C:\oracle\oradata\bamboo\SYSAUX01.DBF';
      SET NEWNAME FOR DATAFILE 3 TO 'C:\oracle\oradata\bamboo\UNDOTBS01.DBF';
      SET NEWNAME FOR DATAFILE 4 TO 'C:\oracle\oradata\bamboo\USERS01.DBF';
      SET NEWNAME FOR DATAFILE 5 TO 'C:\oracle\oradata\bamboo\EXAMPLE01.DBF';
      DUPLICATE DATABASE TO bamboo
      UNTIL TIME "TO_DATE('11/24/2013 13:18:02', 'MM/DD/YYYY HH24:MI:SS')"
      BACKUP LOCATION 'C:\backup\temp'
      NOFILENAMECHECK;
    when I executed it on Server B ,I got following error
    Starting Duplicate Db at 25-NOV-13
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 11/25/2013 11:27:36
    RMAN-05500: the auxiliary database must be not mounted when issuing a DUPLICATE
    command
    I looking for steps by step instruction for duplicating db to another windows host with different directory structure.
    Thank you
    Alex

    The topic, "Duplicating a Database on a Remote Host with a Different Directory Structure" can be found at http://docs.oracle.com/cd/B19306_01/backup.102/b14191/rcmdupdb.htm#i1006672
    This information should provide you the step by step process to follow including when on Windows.
    HTH -- Mark D Powell --

Maybe you are looking for

  • Is there a way of not displaying entries in the Blog based on today's date

    Hi, I'm using the Blog layout in iWeb for a calendar. Somewhere in this discussion forum, I found how to sort the entries by increasing date (many thanks for that). The question I have: Is there a way of not displaying entries in the Blog overview of

  • The best way to enlarge an image for print?

    Hello I've been designing for print for several years. Occasionally I design large display posters/banners (A0, 6-sheet, billboard etc) which use a photographic image. Assuming that the image I have is smaller at 300ppi than the final print, what is

  • Fax Attachments

    Hi all, we have a problem with display of fax attachments in the view FaxDispLrg, instead in the view FaxPreview they are displayed properly. The table is always empty: i try to debug it but i can't find the problem. Has anyone ever encountered this

  • Lost my BB 9800, Unable to restore my contacts

    Hi, I lost my bb 9800, i think i have data somewhere on bb server because when i login on BB protect website i can see that in archived back up details but i'm unable to restore it. And when i try to restore on my new 9810 it says "This data is alrea

  • Replica Planned Failover - Reverse Replication Fails

    Replication was created successfully from server HV1 to HV2.  Both HV servers are domain members, with valid DNS.  I can add HV2 to the Hyper-V management console on HV1, and vice versa, so I can manage both servers from either console. (i.e., they t