JavaScript-File and Caching

Hi all,
i use version 3.1.0.00.32 an have a problem/question.
I save a javascript-file in SharedComponents and put a reference to this file in a Page (Header-Text of page attributes, <script src="#WORKSPACE_IMAGES#tooltip.js"></script>. This works fine. I can use the javascript-function in this file from "HTML Form Element Attributes".
Now, i delete this javascript-file from SharedComponents. I think, the javascript-function-call in "HTML Form Elements Attributes" are doesnt working. But it works, without javascript-file. The cache on my apache-server is disabled, the browsercache is cleared. I dont know, why does working...
best regards
Carsten

Did you try changing the filename and the reference in the page template? Then u can be sure nothing is cached. This applies for both the javascript and the css.
A general recommendation in this case is <b>not</b> to save files in your shared components, but on the file system instead. This makes its lots easier during development to make fast changes. So just save your files in the /i/ folder (and sub folder) and reference it by #IMAGE_PREFIX# (and sub folder).
Cheers,
Jacob
Message was edited by:
Jacob_B

Similar Messages

  • How to Delete Temp files and Cache on MBP 15" Late 2011

    Hi,
    Off late i am experiencing a lag in my mac and it runs bit slowly. Wanted to get a clear picture on how to clear the unwanted temp files and cache to make my mac run smoothly. Any other suggestions to make it run fast are welcome and would be of great help.
    Regards,

    The assumption that unwanted temp files and cache are causing poor performance is unjustified. OS X does not maintain unwanted cache files. They exist to increase performance and are updated or deleted as necessary. So are temporary files. Certain font cache files are moved to the Trash during Safe Boot: OS X: What is Safe Boot, Safe Mode? - Apple Support. Do not use any other utility.
    If your Mac is running slowly, determine if the same symptoms occur in Safe Mode.
    Back up your Mac if you have not done so already. To learn how to use Time Machine read Mac Basics: Time Machine backs up your Mac - Apple Support.

  • Essbase temp files and cache files

    Hi All,
    where essbase creates its temp files and cache files so that i can delete them.What is the path.
    Regards,
    Mink

    The DBAG lists the files (and types) used for various reasons. Some can be deleted, others should be left there for recovery attempts when the database is started up. If your database won't start, the temporary files that can be safely deleted are also covered, although this part might be somewhere else in the technical reference.
    There are also some backup files that could play a role, for instance, if the db file is the reason a database won't start, the backup file (dbb) can be used to replace it. For this reason, I don't recommend you just blindly delete all "unneeded" files if you are having a problem.
    If you are referring to temp files like what the OS uses, I don't believe essbase uses any of the "%temp%\randomname.tmp" variety. I could be wrong on this, but it keeps file usage fairly straightforward, with server files in the database folder and client files in the %arborpath%\essbase\client folder. Client files can indeed be deleted if you don't have anything open, but they are rarely orphaned so you shouldn't see enough to cause performance degradation.
    Hope this helps, between the perceived contexts and other potential intentions, there are other answers that may be more appropriate.

  • Reading a file and caching in web service before a web method is called

    Hi All,
    I developed a webservice with some web methods. I need to validate the licencing for those web methods. And my licensing details will be available in a file. Instead of reading the licencing file for every web method invocation I want the licensing file should be read only once and those details should be cached. So that for every method invocation I will use the cached licensing details. I am using Axis 1.0. How can I achieve this functionality. Please help me in solving this problem.
    Thanks in Advance,
    Naresh

    The program needs to read a text file.
    I made sure that the text does not have space between the lines.
    I wanted to have a String object with all the data (lines).
    So I used a StringBuffer (append) to collect all the data lines.
    I wanted to read each line of the file and assign them to my StringBuffer, using the built-in nextLine() method of the Scanner class and using the for loop.
    I already tried printing out each line as I read it (using the code below). Even though the program showed each line like it should, it still said "java.util.NoSuchElementException: No line found" at the end.
    //read a line of characters of the file
    line = file.nextLine();
    while (line != null) { //file is terminated by a null
         System.out.println(line);
         sb.append(line);
         line = file.nextLine();
    }

  • Including Files and Caching

    I currently have a small web site (running on Apache Tomcat 4.0) that implements jsp:include a lot on every page. This was done so that I could change a single JSP file and that "component" would be changed all throughout the site. (Which is basically the point of having jsp:include !!)
    My problem is that if I change the included file and refresh a JSP page that uses it, the browser shows that the change was made. But if I then move to any other page, the same old version of the included file is still being shown. (Am I making any sense here?)
    The only way I can get all of the JSP files that use the include file to get the NEW version of the include file is to either:
    (1) make a change to each individual JSP file so that it forces the webserver to recompile the JSP page using the new JSP include file or
    (2) shutdown the webserver and restart it
    I'm sure there has got to be a better way of doing this. Any suggestions?

    I've had the same problem and unfortunately there is no way around it :(
    what i'm doing now is calling one single index.jsp page where i keep all my includes and so instead of having to go to a brand new page I just have a switch statement that calls the page depending on the parameter you pass on the query string
    index.html?page=editTools
    I also have a hash table that maps the strings to an integer..
         case 1:{
              %>
         <%@ include file="includes/admin_editTools.jsp" %>
         <%
         break;
    this way whenever you make a change to one of your includes you only have to reload one
    page index.jsp. It works great!
    Chris

  • MVCC, freezer files and cache overflow

    Hi,
    I had an idea. The docs say: "If the cache becomes full of page copies before the old copies can be discarded, additional I/O will occur as pages are written to temporary "freezer" files. This can substantially reduce throughput, and should be avoided if possible by configuring a large cache and keeping snapshot isolation transactions short."
    How about allocating a new cache file (of the same size as the original) in the env instead of creating hundreds (or more) freezer files when the cache is overflowing ? One can have multiple cache files already by specifying the cache in multiple segments. What's particularly irksome about these freezer files is that they stick around, even past checkpoints and restarts.
    Could this work ?
    Andi..

    Hi Michael,
    What you just said makes a lot of sense. DB_READ_UNCOMMITTED and snapshot isolation don't make much sense used together. Using DB_READ_UNCOMMITTED everywhere, I should not be having many deadlocks or blockages. But, until now, I was getting lots of them unless I was using MVCC. The reason is that I found several places where I wasn't using the DB_READ_UNCOMMITTED bit with getting cursors or getting data. As a matter of fact, because of an egregious bug of mine not propagating the DB_READ_UNCOMMITTED bit properly, many data accesses were still wrongly using the default - maximum - isolation level.
    To find these places, I set an artificially low txn timeout and traced back to the bogus calls from the DB_LOCK_DEADLOCK exceptions I'd receive. I believe I found them all now. :)
    Reading data that is not yet committed is not a problem for us except in one specific case. DB_READ_UNCOMMITTED should be completely safe as the Chandler repository is, in a way, duplicating in a persistent way what MVCC also does, that is, keeping multiple versions of data around and presenting multiple versions of data to different transactions.
    The only place where a higher isolation level is needed - DB_READ_COMMITTED - is in the small database containing the latest version number for the Chandler repository. Using DB_READ_UNCOMMITTED everywhere except in this version db and opening this and this database only with DB_MULTIVERSION solves all the problems I was trying to solve with using MVCC everywhere earlier. Because most transactions I create span multiple databases, I am still opening all read-only transactions with DB_TXN_SNAPSHOT but it should only have an effect when accessing this one lone db opened with DB_MULTIVERSION, correct ?
    This is a major breakthrough for me. Commit throughput in a large mail import operation (done in chunks) is now three times what it was before.
    It is also much harder, but however still possible, to get freezer files, with the usual dramatic worsening of performance. Maybe 64mb cache is too small. I'm going to double that and watch it over time. Even though the 'version' db is tiny, it is a btree with one record per version plus two records that are being updated every time a new version is written, I still managed to get, over time, up to two thousand freezer files.
    This has been a productive exercise as I had very wrongly assumed that I was using DB_READ_UNCOMMITTED consistently already.
    Regards,
    Andi..

  • I used Computer Associates ver.7.0.0.117 to clear temp files and cache. Firefox won't open a window since though it shows in processes.

    System: Toshiba Portege M750, Vista 32-bit SP2,4GB RAM
    I've been using Firefox up until last night when I shut down. This morning I did a cache cleaning using CA Internet Security Suite, ver 7.0.0.117. Firefox will not open a window, though it does show in the Processes list of Task Manager.
    I've uninstalled and reinstalled ver 6 from the web twice with the same results.
    Firefox has had a tendency to hang (never finding a new website, i.e. busy icon revolves endlessly) when left open over several hybernation cycles.

    <u>'''Kill Application'''</u>
    In Task Manager, does '''firefox.exe''' show in the <u>'''Processes'''</u> tab?
    See: '''[http://kb.mozillazine.org/Kill_application Kill Application]'''
    '''<u>Causes and solutions for Firefox hanging at exit:</u>'''
    '''[[Firefox hangs]]'''
    '''[http://kb.mozillazine.org/Firefox_hangs#Hang_at_exit Firefox hangs at exit (Mozillazine article)]'''
    '''[[Firefox is already running but is not responding]]'''
    <u>'''Safe Mode'''</u>
    You may need to use '''[[Safe Mode]]''' (click on "Safe Mode" and read) to localize the problem. Firefox SafeMode is a diagnostic mode that disables extensions and some other features of Firefox. If you are using a theme, switch to the DEFAULT theme: Tools > Add-ons > Themes before starting Safe Mode. When entering Safe Mode, do not check any items on the entry window, just click "Continue in Safe Mode". Test to see if the problem you are experiencing is corrected.
    See:
    '''[[Troubleshooting extensions and themes]]'''
    '''[[Troubleshooting plugins]]'''
    '''[[Basic Troubleshooting]]'''
    If the problem does not occur in Safe-mode then disable all of your extensions and then try to find which is causing it by enabling one at a time until the problem reappears. You have to close and restart Firefox after each change via File > Restart Firefox (on Mac: Firefox > Quit). You can use "Disable all add-ons" on the Safe mode start window.

  • Web Module Project and Javascript file

    Hi,
    I have developep my Web Module Project. Now i want integrate in the project a javascript file and call it from a html
    file or a servlet. How can I do it??? In which folder of the project I have to save the javascript file??? (ex. script.js)....There is a tool in NWDS to manipulate javascript file???
    THANKS

    Hi,
    You can place the js file inside webcontetnt folder itself. If there are lots of files, then create a folder called JS and paste the file inside this folder. Then you can use this file from JSP like this.
    < script language="JavaScript" src = 'script.js'>
    or
    < script language="JavaScript" src = 'JS\script.js'>
    Generally, JS files can be opened using notepad or wordpad from NWDS. There is no specific tool for it. Hope that answers your query.
    Regards,
    Harini S

  • Refreshing page will not update the content referred JavaScript file of html in WebKit on Mac OS X 10.10.2

    In our project, we use WebKit framework to visit a local HTML file which contains reference to JavaScript file. Our users can modify the JavaScript file and then refresh the page to see the change which works fine until we come up to Mac OS X 10.10.2. It seems that the referred JavaScript file is cached and can be never updated except restarting application. We have already set cache policy to “NSURLRequestReloadIgnoringLocalCacheData”. However it didn’t work.
    Besides there is a similar issue on Safari of Mac OS X 10.10.2. I find that refreshing the HTML in Safari will not renew the content of referred JavaScript file after modifying it. I have tried to check "disable caches" option, but it still didn't work. The behavior is different from OS X 10.10.1. Maybe it is a defect on OS X 10.10.2. Did anyone meet such issue? Is there any solution?

    The web process user is "_www"… that's without the " and with the _.

  • Weird Timing Issue with Custom Javascript Files

    I have attached a static javascript file to my application using the Shared Components...Static Files facility in APEX. This is working. I can call methods in my JavaScript file and they work as expected.
    The issue is that if I ever want to have JavaScript run when the page is loaded, it is as if the javascript is not in place yet when the method is called. For example, I want to set some some style characteristics of a few common fields that occur on more than one page, if I add a button to the page that I click to call the method (and don't select "Fire on Page Load"), this works fine. However, if I do select "Fire on Page Load", the javascript is invalid.
    I have tried After Refresh of the region which seems like it would work but, this event fires before* the javascript is available.
    How can I load the page, including the javascript reference, and then call the javascript method?
    -Joe
    Edited by: Joe Upshaw on Apr 3, 2012 12:49 PM

    WR,
    I think the latter, adding it to the template, sounds like the better solution. (I am using Application Express 4.1.1.00.23 BTW).
    Now for the newbie questions...
    I am trying to figure out exactly where to make this change. So, I had a couple of questions.
    1. I went into Shared Components>Templates. Then, I scrolled down to the section labelled Page. I see that the default checkmark is beside "No Tabs - Right Sidebar" so, I click this and I do indeed find a <HEAD> section defined. Is this where I need to add the reference to the javascript file?
    2. I assume I need to upload the static file to the server. Right now, I have uploaded it via the Shared Components>Static Files selection. When I add it now, I am doing this:
    var headElement = document.getElementsByTagName("head")[0];
    var currentCommonRiskPos = currentHeadHTML.indexOf( 'commonRisk.js', 0 );
    if ( currentCommonRiskPos == -1 )
       var jsRiskCommon = document.createElement( 'script' );
       jsRiskCommon.id = 'commonRisk.js';
       jsRiskCommon.setAttribute( "type","text/javascript" );
       jsRiskCommon.setAttribute("src", "#APP_IMAGES#commonRisk.js" );
       headElement.appendChild(jsRiskCommon);
    }See how I used "#APP_IMAGES#"? I am assuming that this would not work from the page template, correct? For example, in the template currently, I see:
    <script src="#IMAGE_PREFIX#themes/theme_24/js/4_1.js"></script>I am assuimng that I should upload my JS file somewhere in the images folder and reference it in the same way, right? For example:
    <script src="#IMAGE_PREFIX#JoesStuff/js/HellowWorld.js"></script>Does all of this sound correct?
    Thanks,
    -Joe

  • Problem with Javascript file downloaded

    Hi everyone
    Im totally new to downloading javascript files, and ive made
    a bad mistake when installing.
    I downloaded a javascript file called 'close window' to my
    desktop then installed it using the
    DW extension manager.
    I thought after it would be a good idea to put that file then
    into a javascripts behaviors folder in my program file for DW. Bad
    idea!
    When i loaded up DW8 again, i got lots of error messeges
    (which i can post if its any help) and now i cant use any
    javascripts.
    Ive deinstalled the program and reinstalled the program many
    times. Ive tried deleting all my personal files i created as well,
    the reinstalling DW*
    still the same messeges come up, ive been battling with this
    for 3 hours now, please someone help!!
    thanks

    Try uninstalling using this TechNote:
    Uninstalling Studio 8 applications on Windows
    http://www.adobe.com/go/4e7826b7
    You could also try this TechNote:
    Troubleshooting JavaScript errors in Dreamweaver
    http://www.adobe.com/go/19105
    Hope this helps,
    David Alcala
    Adobe Product Support

  • Adding javascript file

    Hi
    I am a photographer who shoots virtual tours for a living. My clients are increasingly wanting custom html pages in which the virtual tours are placed. I have little html knowledge so iweb is an excellent choice for me to design these pages. I have found the relevant information on how to embed flash content in iweb which works well when tested locally. However in order for the tours to work online I need to import or add the java script file that is produced by the tour building software. When I save the tours they are attached to a plain html page with an accompanying javascript file which does all the necessary work behind the scenes. When I use iweb to create a new html page the relationship between the javascript file and the html file is lost, due to the original html file being deleted and replaced by the new files produced by iweb. Can anyone offer any help on this as its a major problem for me and I have spent weeks trying to figure it out with no success.

    You could put the javascript in the topbar if it is used in all navigations.  Another way is to put your javascript definitions in one of the js files that are already included on every page.
    Other than that, you would have to add the javascript to all navigation schemes.

  • Jnlp fies and caching

    I am a newbie to jnlp files and the related infrastructure. I have a question about jnlp files and caching. My scenario is the following, i have 2 machines with the same jnlp file names, the data inside of them is different. So when I connect to machine1, the data corresponds to the correct machine. When I connect to machine2, I still get the version for machine1. Where is this data cached? and how do i force a "refresh" or a new download of the jnlp file?
    TIA,
    Reza

    The identity of a jnlp app is the complete href (including codebase) of the jnlp file (if there is one, or the complete href of the main jar if there is no href to the jnlp file.)
    Because of this, regardless of the "title" of the application, two instances of the same application hosted on differant hosts (or in differant locations of the same host) are treated as two differant applications.
    (RFE's exist to be able to provide a unique id to all resources, including jnlp file references, so the application or it's resources can be mirrored or moved from location to location)
    On the other hand, shortcuts are created based on their "title" element, so switching to the same named application on a differant location should replace the shortcut with thte one based on that jnlp file.
    From your question, it's a litle unclear what you are doing. When you "connect to machine2", exactly what are you doing ? , and waht version of javaws are you using ?
    /Andy

  • Organizing javascript files

    Does anyone have a recommendation to manage and organize a large number of javascript files?
    Presently, I use Sublime Text 2 to preview javascript files and edit in Adobe ESTK.
    I am looking for an efficient method to search for javascript snippets and functions inside javascript files.
    Can javascript files store searchable metadata about the javascript file?

    I had the same problem myself - it took a while but I've moved from the JSX folder chaos to a less chaotic snippets management with this free software: http://snippets.me (which has also sync features that go beyond my little needs)
    There are other similar solutions like: http://www.gistoapp.com (that also integrate with Gist), and other I might not know.
    You have to spend some time copying and pasting to create your own database, but no doubts the maintenance is easier.
    Hope this helps,
    Davide Barranca
    www.davidebarranca.com
    www.cs-extensions.com

  • Deleting temporary and cache directories in weblogic

    I have installed weblogic 10.3.6 server on my Linux nox, I have deployed some applications on my Managed Server. I want to delete logs, temporary files and cache files that weblogic creates before I re-start my server.
    I see below directories in my Admin Server:
    path: user_projects/domains/my_domain/servers/AdminServer
    cache
    sysman
    adr
    data
    logs
    tmp
    and below for my Managed Server:
    path: user_projects/domains/my_domain/servers/MyManagedServer
    cache
    data
    logs
    stage
    tmp
    In above list what all directories I can delete?

    On AdminServer I recomend you to delete only tmp, logs and cache.
    On any managed server you can delete any sub directory. No restrictions. It will be recreated as soon as you start it again.
    Recomend you also to delete diretories only with the respective jvm shutdown.
    Kinds,
    Gabriel Abelha

Maybe you are looking for