How space image of reference in static file work?

I created a .js file and loaded components shared as a static file.

It works very well... Except that... my images referenced in the code are not displayed.

My images are found in the #WORKSPACE_IMAGES #. My code for referencing them is:

document.getElementById("box").style.background = "url('#WORKSPACE_IMAGES#Page_1.jpg')"; "

When I put the javascript code in the < head > of apex, you can find the images very well using the code above. But, when I try this code in an external .js file, it does not find the images.

Can someone help me understand this and provide the code that I need to get my pictures is displayed?

Thank you very much in advance,

Maggie

You made the change to remove the reference to the ' #WORKSPACE_IMAGES # in the JS in the external file?

document.getElementById("box").style.background="url('" + img_dir + ".Page_1.jpg')";

Tags: Database

Similar Questions

  • How to remove missing references and audio files or instruments that popup at launch I need is no longer?

    How to remove missing references and audio files or instruments that popup at launch I need is no longer?

    For audfio missing files: go to the Project Audio Bin, mouse control select unused , and then press DELETE. And then click Save.

    Missing instruments or plugins, go to your mixer and remove/Exchange any plugins that have a '!"in all of their slot. And then click Save.

  • How can I get a. PNg file works as a low third?

    I make videos of news for a site and they sent me their lower third graphic with their logo and it's in. PNG format.  I imported, but when I put it in a layer 2 video above the video I want on nothing!  How can I fix it?

    What is your setting sequence.

    What is the size of the png?

    If the png is superior then put it the sequence settings to match the framesize.

  • How to set up * application and the workspace of static files after upgrade from 4.2 to 5.0?

    Hello.

    I just upgraded from 4.6 to 5.0 on Windows 7 64 bit.  ADR 2 and Tomcat running.  The APEX and my app runs.  Images of the APEX are OK.

    Problem: Application and do not display images of working space.

    Here are the different paths:

    • C:\apache-Tomcat-7.0.59\webapps\i
    • C:\APEX\images

    I copied the content of the APEX webapps\i images directory to the tomcat directory.

    I ran the two flavors of the loading image script, and each completed without error.

    • SQL > @apxldimg.sql c:
    • SQL > @apex_epg_config.sql c:

    I am able to log in administrator mode or developer APEX, and everything looks very good and works well.

    I can't connect to my request and it works, but the images, for example, the logo is not displayed.  The application CSS file is not currently in use.

    The source of the page shows that in the head of <>, where "pva" is the name of workspace:

    "" < link rel= "shortcut icon" href= "pva/static-files-not-configured/files/static/v4Y/eprentise_favicon-32x.png" type= "image/x-icon" / > "
    < link rel =" style sheet " href =" PVA/static-files-not-configured/Files/static/v4Y/epr_4_6.CSS " type of =" text/css " />

    This is the logo of the hgroup > < body > <

    "" "< a href="f? p = 520:1:1212525121720" id="uLogo"> < img src="pva/static-files-not-configured/files/static/v4Y/eprentise_default-logo.png" alt="eprentise demo" title= 'eprentise demo" height= "50" / > < /a > "

    #WORKSPACE_IMAGES # = pva/static-files-non-configured/files/static/v4Y /, which is considered in the places above.


    #APP_IMAGES # = pva/static-files-non-configured/520/files/static/v2Y /, where the application_id is 520.  These images are not either


    My understanding is that the images of the workspace and the app are not stored in the file system in the results directory.


    Advice or a pointer to the documentation on how to configure static files for application and space images of work and for the application CSS file?


    Thank you

    Skip

    Hi Skip,

    If you are using ADR the next chapter in the ADR of the installation guide part is important to you. https://docs.Oracle.com/CD/E59726_01/install.50/e39144/listener.htm#HTMIG29472

    In particular, the following note in "on the configuration of the RESTful Services.

    RESTful services ask Oracle 2.0 or subsequent REST Data Services. RESTful Services configuration is necessary when upgrading to Oracle Application Express version 5.0 and RESTful Services were not configured in a previous version.

    Concerning

    Patrick

    Member of the APEX development team

  • Difference between downloading a file JS under "Static files" and "Images".

    I got to know of 2 ways in which the "JS" files can be downloaded in application APEX "Shared Files" and "Images".

    I would like to know the difference and how it should be used once its downloaded through "Static Files".

    I don't think it makes a difference when you download your JS files, but you would link/load them in your pages in the same way it is using WORKSPACE_IMAGES and APP_IMAGES, prefix depending on how your downloaded.

    Not just one of these methods, the images in the comic book extractions/stores and therefore a DB connection is open when the resource is requested. A better option is to load it into the file system HTTP (prefix of image or less/i) directory server so that a direct URL can be used.

  • How to free up space in a drive by deleting files hidden from the previous operating system?

    Original title: my vista home c drive now have very low free space.there is some files hidden from the previous operatnig system busy space that are useless.how can I delete these files?

    my laptop is slow due to the very low free space in c drive. How can I remove the unnecessary files from c drive or increase the volume of drive c?

    Download a program like TreeSize Free (http://www.jam-software.com/treesize_free/) to see where the files take up a lot of space.  Be aware that deleting files without knowing what you're doing can cause your system to be unable to restart or cause instability can so be sure you know that you are deleting before you start.  There is no way to extend one hard disk other than to replace it, in which case you need to copy all the files from your old drive to the new.

  • During startup, I get an error message that the registry database cannot find a file and modify registry to delete the reference to the file in the registry. How can I do this?

    Original title: Registery Error Message

    During startup, I get an error message that the registry database cannot find a file and modify registry to delete the reference to the file in the registry.  How can I do this?

    Hello

    • What were the changes made before the problem occurred?

    I recommend you perform the clean boot.
     
    Configuration of your system in a clean boot state helps determine if third-party applications or startup items are causing the problem. If so, you need to maybe contact the manufacturer of the program for updates or uninstall and reinstall the program.
     
    See the following article in the Microsoft KB for more information on how to solve a problem by performing a clean boot in Windows Vista or Windows 7:
     
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135 
     
    Note: After troubleshooting, be sure to set the computer to start as usual as mentioned in step 7 in the above article.

  • How to determine the size of the file and the pixel of an image?

    How to determine the size of the file and the pixel of an image?

    1 MB is 2 ^ 20 bytes. It is easy to represent long:

    final long MegaByte = 1048576L; //1048576 is 2^20 and L denotes that this is a long
    if(fileConn.fileSize() > MegaByte)
    {
    do something here
    }
    
  • How to use static files

    Hello world

    I have a html file that I have uploaded to static files section in the apex.

    So now I want to use this html as inline frame or iframe as file
    <iframe src="#...#new1.html" height="400" width="600"></iframe>
    for the image I use #WORKSPACE_IMAGES #.
    But for static files, which is the prefix I'll use.
    I downloaded this file html image section and tried #WORKSPACE_IMAGES #new1.htm but does not work.

    So is there another way to do this?
    Please help me.

    Thank you
    Concerning
    Paul

    Hi Paul,

    Is the static file that you downloaded is associated with any application? then
    use

    #APP_IMAGES#
    

    Otherwise it will be available for the entire workspace, so you can use #WORKSPACE_IMAGES #.

  • "One-click" How do I export an image to a set of files with different resolutions .png?

    Hello

    How far is 'one-click' export an image to a set of files with different resolutions .png? (I need for a set of iOS app icons).

    For example: export a file MyAppIcon.psd in the following:

    MyAppIcon_29x29.png

    MyAppIcon_57x57.png

    MyAppIcon_114x114.png

    MyAppIcon_512x512.png

    MyAppIcon_48x48.png

    MyAppIcon_72x72.png

    I almost managed to do with the Actions of Photoshop, but does not know how the names of files to include the name of the original image file. In other words, the NewApp.psd file should export to NewApp_29x29.png, not MyAppIcon_29x29.png.

    Thank you!

    No problem, please try this...

    #target photoshop
    app.bringToFront();
    main();
    function main(){
    if(!documents.length) return;
    var Name = app.activeDocument.name.replace(/\.[^\.]+$/, '');
    try{
       var Path = activeDocument.path;
        }catch(e){
            alert("Please save this file then re-run the script!");
            return;
            }
    var strtRulerUnits = app.preferences.rulerUnits;
    var strtTypeUnits = app.preferences.typeUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    snapShot();
    var saveFile = File(Path + "/" + Name + "_512x512.png");
    activeDocument.resizeImage(512, 512, undefined, ResampleMethod.BICUBICSHARPER);
    SavePNG(saveFile);
    revertToLastSnapshot();
    var saveFile = File(Path + "/" + Name + "_114x114.png");
    activeDocument.resizeImage(114, 114, undefined, ResampleMethod.BICUBICSHARPER);
    SavePNG(saveFile);
    revertToLastSnapshot();
    var saveFile = File(Path + "/" + Name + "_72x72.png");
    activeDocument.resizeImage(72, 72, undefined, ResampleMethod.BICUBICSHARPER);
    SavePNG(saveFile);
    revertToLastSnapshot();
    var saveFile = File(Path + "/" + Name + "_57x57.png");
    activeDocument.resizeImage(57, 57, undefined, ResampleMethod.BICUBICSHARPER);
    SavePNG(saveFile);
    revertToLastSnapshot();
    var saveFile = File(Path + "/" + Name + "_48x48.png");
    activeDocument.resizeImage(48, 48, undefined, ResampleMethod.BICUBICSHARPER);
    SavePNG(saveFile);
    revertToLastSnapshot();
    var saveFile = File(Path + "/" + Name + "_29x29.png");
    activeDocument.resizeImage(29,29, undefined, ResampleMethod.BICUBICSHARPER);
    SavePNG(saveFile);
    app.preferences.rulerUnits = strtRulerUnits;
    app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
    }
    function SavePNG(saveFile){
    var pngOpts = new ExportOptionsSaveForWeb;
    pngOpts.format = SaveDocumentType.PNG;
    pngOpts.PNG8 = false;
    pngOpts.transparency = true;
    pngOpts.interlaced = false;
    pngOpts.quality = 100;
    activeDocument.exportDocument(new File(saveFile),ExportType.SAVEFORWEB,pngOpts);
    }
    function snapShot() {
        var desc9 = new ActionDescriptor();
            var ref5 = new ActionReference();
            ref5.putClass( charIDToTypeID('SnpS') );
        desc9.putReference( charIDToTypeID('null'), ref5 );
            var ref6 = new ActionReference();
            ref6.putProperty( charIDToTypeID('HstS'), charIDToTypeID('CrnH') );
        desc9.putReference( charIDToTypeID('From'), ref6 );
        desc9.putEnumerated( charIDToTypeID('Usng'), charIDToTypeID('HstS'), charIDToTypeID('FllD') );
        executeAction( charIDToTypeID('Mk  '), desc9, DialogModes.NO );
    };
    function revertToLastSnapshot() {
       var doc = app.activeDocument;
       var hsObj = doc.historyStates;
       var hsLength = hsObj.length;
       for (var i=hsLength - 1;i>-1;i--) {
         if (hsObj[i].snapshot) {
           doc.activeHistoryState = doc.historyStates.getByName('Snapshot ' + i);
           break;
         }
       }
    };
    
  • How can I specify the static files in XE 11

    Hi guys,.

    I installed Oracle XE 11 g. According to the steps of the earpiece of the APEX facility, I have to feed the CMD with the path of static files.
    What is the path to the static files in Oracle XE 11 g.

    Thanks in advance,
    Fateh

    Hi Fateh,

    Oracle XE stores static files for APEX within the database by default, as it comes with APEX preinstalled and accessible through the embedded PL/SQL Server.
    If you plan to use APEX listener to host this SUMMIT, the simplest would be to download the corresponding version of the APEX (4.0.2) and unzip the "images" - directory contained in this installation package to a place that you can refer to your listener APEX. Another option would be to "unload" the images to the database.

    -Udo

  • How to determine the total number of images in the external .swf file loaded

    I have to be able to load both external .swf files and make them play in order. To do this, I need to know the number of images in the first .swf file so I can check _currentframe against _totalframes to determine when he is finished playing so that I can load another.

    Most of the stuff I see indicate that _totalframes on an external .swf can be determined by loading the .swf in a container clip and then check using a listener in the .onLoadInit. Like this:

    ------------------------------------------------------------------------------------------ ----------------------------

    this.createEmptyMovieClip ("tester_mc", 1);
    var mcListener:Object = new Object();

    mcListener.onLoadInit = {function (target_mc:MovieClip)}
    target_mc.onEnterFrame = function() {}
    If (this ._currentframe > = this ._totalframes) {}
    trace ("total frames =" + this ._totalframes);
    delete this.onEnterFrame;
    } else {}
    trace (target_mc._currentframe + "OF" + target_mc._totalframes);
    }
    }
    }

    var test_mc:MovieClipLoader = new MovieClipLoader();
    test_mc. AddListener (mcListener);
    test_mc.loadClip ("Ad_Group.swf", tester_mc);

    ------------------------------------------------------------------------------------------ -------------------------------------

    Unfortunately, this doesn't seem to work. The trace will always return a total number of frames of 1.

    I guess it's because the container clip has only 1 frame, and the external .swf timeline seems to be ignored.

    I would appreciate any ideas on how to raise the total number of frames of an external .swf file or, Alternatively, put it another way when it's done playing. (Not only the loading, but play until the end.)

    TIA,

    C

    I guess it's because the container clip has only 1 frame, and the external .swf timeline seems to be ignored.

    I wouldn't imagine. My guess is that the main scenario for the external swf file has only 1 frame and the rest of the animation is inside a movieclip in this timeline. You publish this swf? Can you open the FLA and check how many images is open on the main timeline?

    The approach that you have mentioned is about what there is. But he knows check a chronology. If there are many nested movieclips, it may be impossible to understand what timeline you really want to be 'THE' full chronology.

    If you have the FLA, you can have the video call function on the _root timeline which tells the main swf that has completed a movieclip or something like that.

    Also, I have in my head somewhere that I recently saw something that someone made similar to this one, but do not remember... If it appears in my head that I will post.

  • How can I remove all the unused files to clear a space

    How can I remove all the unused files from my computer

    You can remove applications on the control panels.  XP seems to me (im not on a XP ATM machine) programs cpanel

    Files?  you do not (or should not) delete separately

  • How to reference an ActionScript file in a custom MXML component

    I have a custom MXML component located in a folder with this path:
    src/com/LoginForm.mxml
    I have functions in an ActionScript file located here:
    src/as/SharedObjects.as

    I would like to refer to the AS file in the MXML component. I tried two different ways, but no work:
    < mx:Script source="as/SharedObjects.as"/ > and.
    include "ACE/SharedObjects.as";
    I get the error "unable to open included file...". »
    If I copy the AS file in the same folder as the component, an include statement in the script component works:
    include 'SharedObjects.as ';

    But I reference the same FILE in the other application MXML and other files HAVE, so I don't want to keep two copies of it.

    What I'm doing wrong here? Thank you!

    Greg,
    The line:

    has worked!
    Thanks for the help. I just could not 'get it '! It was the ".." that I had not tried.
    ntsiii, thanks for your help, too.
    Have a great day.

  • APEX 5.0 - static files not found even though I configured ADR.

    Hi Experts,

    I use the new 5 APEX (+ Tomcat 6) for a period of two months. All custom files are stored on the application server and they are referenced from there.

    Now, I need to create a static file - for example just a simple picture (logo).

    I want to just show at the point of the image.

    If I inspect the source of element it shows this:

    2015-07-29_144031.png

    I have configured all the necessary stuff: apex_rest_config.sql( APEX_LISTENER, APEX_REST_PUBLIC_USER)

    I also tried to configure SQL Developer to manage data REST Services. (java-jar apex.war user adminlistener "Listener administrator")

    Login test. But if I try to connect to the listener the error to occur:

    2015-07-29_143447.png

    Y at - it one configuration to another? to make it work?

    Thank you

    Concerning

    J

    Hi jozef_SVK,

    jozef_SVK wrote:

    I use the new 5 APEX (+ Tomcat 6) for a period of two months. All custom files are stored on the application server and they are referenced from there.

    Now, I need to create a static file - for example just a simple picture (logo).

    I want to just show at the point of the image.

    If I inspect the source of element it shows this:

    I have configured all the necessary stuff: apex_rest_config.sql( APEX_LISTENER, APEX_REST_PUBLIC_USER)

    This problem happens so that a single file or all files in space of static work/applications?

    Go to the tab network browser development tools and inspect what happens if you load a page with files of static applications/work space.

    If you get 404 for work/application space static files then this is the issue of the wrong Configuration of RESTful Services.

    RESTful Services configuration is mandatory at the APEX 5 and this is not just limited to the configuration using apex_rest_config.sql.

    The second step is the configuration of users required for RESTful Services when installing ADR?

    Reference: http://docs.oracle.com/cd/E37099_01/doc.20/e25066/install.htm#AELIG7217

    Check out the following threads with the same question:

    Also check if users RESTful (APEX_LISTENER and APEX_REST_PUBLIC_USER) are unlocked as that can also cause the problem.

    Reference: error 503-service unavailable after listening apex on glassfish deployment

    Kind regards

    Kiran

Maybe you are looking for

  • Spammer call me different accounts, even if the settings are for contacts only

    For the last two weeks, I get a call from a random spammer every day at various times of the day. Their contact name is something like NEW VIDEO MESSAGE PLAY NOW or something. I didn't answer, I reject the call then quickly block. But my Skype is on

  • Can't print on CD.

    I am trying to print on my HP C309a Cd but will have questions. First of all, I pull down the CD tray and insert the CD door to the green line, as I'm supposed to. Then I hit the OK button as said of the screen. Then the screen says "now use software

  • Internal error 2739

    Trying to install a CD, I get this message, «Internal error 2739»    Setup ended because of the error.  Can you identify the error?

  • I installed the Socks5 & IPIG connections & after my vpn connection simply stopped working.

    stopped my VPN connetion working.what I do? last night, I installed the Socks5 & IPIG connections & after my vpn connection simply stopped working. I don't know if it's because of Socks5 or IPIG connections but I tried everything, including the resto

  • 10 new 10.3.2.440 software problem BlackBerry

    is just obliged to software update on Z10.  lock screen messages do not work.  lock screen icons do not work.  very disappointed with blackberry OS.