How to prevent the browser from executing the old version of js file...

Dear sirs,
I have a JSP page that includes a javascript file as given below,
<script type="text/javascript" src="../scripts/validation.js"></script>
Some times modification is needed in this included script file. After the modification, when I load the JSP page in the browser,
the old copy of the script file, which was not modified is getting executed. by the browser.
I would like to know whether any options are availabe in javascript to prevent the browser from executing the old copy that has already downloaded to the temperary interner folder(from caching)and use the modified version available with the new response...
Thank you,
Sudheesh K S

Dear sir,
Thakyou very much for your comment.
I tried this, By doing thisThe .html page of the response will be deleted. But the javascript file will not be removed. It will be remail there.
This lead me to the idea to think about javascript. I heard that some commands are there in javascript like cache ="NO" but not sure. I searched in the net but no favourable result found...
Thank you,
Sudheesh....

Similar Messages

  • How to prevent multiple users from updating the same data in coherence

    Hi,
    I have a Java Web Application and for data cache am using coherence 3.5. The same data maybe shared by multiple users which maybe in hundreds. Now how do I prevent multiple users from updating the same data in coherence i.e. is there something in coherence that will only allow one user a time to update. If one user is in a process of updating a data in coherence and some other user also tries to update then the second user should get an error.
    Thanks

    I have a question on the same line. How can I restrict someone from updating a cache value when I a process is already working on it. I tried locking the cache key but it does not stop other process to update it , it only does not allow other process to get lock on it.

  • How to prevent one application from touching the in use Environment?

    Hi, all,
    I have an application opening an Environment and using it well. However, this application may have multiple instance in our system. Once another instance touches the environment it will destroy the former's environment.
    My question is how to detect one environment which located in a fixed directory is being in use? If we could detect this, we can prevent the latter instance from touching the environment then.
    Thanks in advance.

    There are DB_CREATE and DB_EXCL flags for DB_ENV->open function, if you specify the OR of them both, you will get what you want: only create the environment if it is not created.
    On the other hand, multiple applications can join the same db environment if their configuration to the environment is compatible; if you are sharing an environment handle, use DB_THREAD in DB_ENV->open, see this for using Berkeley DB in multi-threads: http://www.oracle.com/technology/documentation/berkeley-db/db/ref/program/mt.html

  • How to open report in the browser from PL/SQL procedure

    Hi,
    I need to call the report (with destype = SCREEN) from the PL/SQL procedure and display in the browser.
    For Example: when I call P_call_report procedure in my Forms6i button or at sql*plus, the report output PDF/HTML should open in the Browser window.
    Iam Using IE, report6i, forms 6i, Oracle 8.1.7, Windows OS
    I tried using UTL_HTTP(' ') in a procedure. But when I execute the procedure at sql*plus it says Pl/sql procedure completed successfully message without opening report output in the browser window. If I copy the same url and paste it in the browser, it works.
    Please let me know if there is any solution.
    thanks alot.

    I guess event driven publishing may work. But Iam not sure about the opening of the browser from inside the procedure.

  • How do you prevent the organizer from mixing the order of pictures when down loading off the memory card?

    @How do you prevent the organizer from mixing the order of pictures when down loading off the memory card?

    This sounds like you are using Photoshop Elements, and the Photoshop Elements forum would be best at answering that.
    Photoshop Elements
    Gene

  • How to stop the Browser from caching my web pages

    Hi There
    Can anyone tell how to stop the browser from caching my jsp pages
    I am using
    <%response.setHeader("Cache-Control","no-cache");
    response.setHeader("Pragma","no-cache");
    response.setDateHeader ("Expires", 0);
    %>
    but this does not work anduser is able to go back to the previous page
    which i dont want and i want the browser to display the message the page has expired
    Help appreciated
    Thanks
    Mumtaz

    response.setHeader("Cache-Control", "no-cache");
    response.setHeader("Pragma", "no-cache");
    response.setDateHeader("max-age", 0);
    response.setDateHeader("Expires", 0);
    I have cut paste the code from my jsp which is working. There is one additional line. I do not know if that is the cause but there is no harm in trying that out.
    Srinivasan Ranganathan

  • How to set a cookie in the browser from an html page called via an Iview

    How to set a cookie in the browser from an html page called via an Iview
    Hello all,
    I have an issue which is causing problems. I have a snap survey (html form with submit and cookie setting) which is embedded in a url iview.
    Although the submit and the form work fine, the portal will not allow the cookie to be set it seems.
    Is there a way to allow cookies to be set from an embedded page in a url iview??
    You will make my day if you know!
    System: EP7 SP13
    Kind regards
    Alex

    Hi,
    Check this:
    http://www.oracle.com/technology/products/ias/portal/html/same_cookie_domain_with_pdkv2.html
    Cookie Basics
    Web browsers have built in rules for receiving and sending cookies. When a browser makes a request to a web server and the web server returns cookies with the response, the browser will only accept a cookie if the domain associated with the cookie matches that of the original request. Similarly, when a browser makes a subsequent request, it will only send those cookies whose domain matches that of the target web server.
    These rules are designed to ensure that information encoded in cookies is only "seen" by the web server(s) that the originator of the cookie intended. These rules also ensure that the cookie cannot be corrupted or imitated by another server. By default, the domain associated with a cookie exactly matches that of the server that created it. However, it is possible to modify the domain at the time the cookie is created. Relaxing the cookie domain increases the scope of the cookie's visibility making it available to a wider "audience" of web servers.
    For example, if a cookie is created by a.us.oracle.com, it's domain will usually be set to a.us.oracle.com. This means that the browser will only send the cookie to a.us.oracle.com. It will never send it to any other servers. However, if at the time of creation, the domain of the cookie is set to .us.oracle.com, the browser will send the cookie to any server whose domain falls within .us.oracle.com. such as portal.us.oracle.com, provider.us.oracle.com, app.us.oracle.com etc
    Regards,
    Praveen Gudapati

  • How to export the result from executing sql statement to excel file ?

    HI all,
    Great with Oracle SQL Developer, but I have have a trouble as follwing :
    I want to export the result from executing sql statement to excel file . I do easily like that in TOAD ,
    anyone can help me to do that ? Thanks so much
    Sigmasvn

    Hello Sue,
    I just tried to export to excel with the esdev extension and got java.lang.NumberFormatException. I found the workaround at Re: Windows Multi-language env, - how do I set English for application lang?
    open the file sqldeveloper\jdev\bin\sqldeveloper.conf and add the following two lines:
    AddVMOption -Duser.language=en
    AddVMOption -Duser.country=USyet now my date formats in excel are 'american-style' instead of german. For example 01-DEC-01 so excel does not recognize it as date and therefore I can not simply change the format.
    When export to excel will be native to 1.1 perhaps someone can have a look at this 'feature'
    Regards
    Marcus

  • I have checked around the internet, but still can't find any answers. How can I prevent incoming mail from interrupting the music I am listening to on my iPhone? That 1-second muting function drives me insane, especially when a lot of mail is coming in.

    I have checked around the internet, but still can't find any answers. How can I prevent incoming mail from interrupting the music I am listening to on my iPhone? That 1-second muting function drives me insane, especially when a lot of mail is coming in.

    If you want to hear your music on iPhone without interruption, switch Settings > Airplane Mode: ON.

  • How to close the browser from an Applet?

    Hi,
    I've written one applet, with 2 buttons (Continue & Exit). On click of Continue button, it will open another web page. On click of Exit button, the browser should be closed.
    I'm not able to close the browser from the applet.
    Can any body help me.
    Rgds
    Santosh

    In my experience, calling Javascript from applets is flaky at best. However, I have gotten it to work in some cases. The following code should get you started:
    netscape.javascript.JSObject win = netscape.javascript.JSObject.getWindow(applet);
    Now you can call different methods on the win object (look into Javascript documentation for details).
    It also depends on if you are using the Java Plug-in or the JVM built into the web browser. You probably need set MAYSCRIPT=TRUE in your HTML. Look into the Java Plug-in documentation for details...

  • Is there any way to prevent the OS from querying the Superdrive when start

    Just a random question. Whenever my MacBook Pro starts up (either from sleep or a complete/fresh start, the OS queries the drive slot to see if there is a disc present. While this may be normal behavior, it seems to slow down the start up process. (I rarely ever have a disc in the drive). Just curious if this, in fact, normal, or if there's something awry.

    Is there any way to prevent the OS from querying the Superdrive when start
    No
    he OS queries the drive slot to see if there is a disc present.
    How can you tell? Based on the noise it makes?

  • On Game Center how do you stop players from seeing the last time you have played a game?

    on Game Center how do you stop players from seeing the last time you have played a game? Or the last time you signed in.

    hello, this should be addressed in a later version of firefox. as a workaround in the meanwhile you could try this: enter '''about:config''' into the firefox location bar (confirm the info message in case it shows up) & search for the preference named '''browser.sessionstore.resume_from_crash'''. double-click it and change its value to '''false'''.

  • I tried to use the Browse button on the left pane to go to a server which has my local copy so that I can FTP to ISP, but I get a window saying there is a permissions issue. How do I resolve?

    I tried to use the Browse button on the left pane to go to a server which has my local copy so that I can FTP to ISP, but I get a window saying there is a permissions issue. How do I resolve?

    If it has a cloud icon it means its no longer on your device.  Tapping on the cloud will effectively reinstall the App from scratch to your device. 
    There is no way to remove it from the cloud because its not yours to remove from there. Its the general App repository, you are just given access to it to download content you've already purchased.

  • I have transfered my library my library to a NAS drive. How do I stop Itunes from creating the default folder on the local drive?

    I've transferred my Itunes Media Library to a NAS drive, and pointed Itunes (using the advanced preferences tab) to the relevant folder on the NAS drive. I have done this to free up disk space on a computer I primarily use for work but which I use both at home and at work. The NAS drive is at home. (To clarify, I am not expecting Itunes to function at work, only at home when access to the NAS drive is available).
    Under certain circumstances Itunes will start-up at work and when it does it will create the folder structure for the Itunes Media Library in the default location (on the local drive) instead of looking for the location I have specified (the NAS drive) which it should not be able to find when I am at work and telling me that it can't find it (which would be fine).
    How do I stop Itunes from recreating the default folder structure and defaulting the file path to the standard media library location on my local drive? Every time this happens I have to re-point Itunes to the NAS drive location, which often requires me to reconsolicate libraries which is tedious and time consuming. It seems that in the process of one of these consolidations I have lost some of the media files. They are still in the library (ie. visible in the Itunes window) but Itunes can't find the media associated with that file - identifying them with an excamation mark "!".
    Any help with this would be appreciated, as I have read several forums and threads, and despite trying several different approaches I have been unable to address the problem, which appears to be exacerbated by the laptop being remote from the NAS drive.

    angelofromnsw wrote:
    Can I put the ".itl" and other database files on the NAS, and if so where would I put them? I'm thinking that if the library file is only available at home then the ITunes library won't get corrupted at work when it can't find the media, in the event that I accidentally start up itunes eg. while opening an attachment or disc that can be read by Itunes.
    iTunes will start up and you will have an empty library.
    Can I put the ".itl" and other database files on the NAS, and if so where would I put them?
    Yes.
    Quit iTunes.
    Copy the /Music/iTunes/ folder on the NAS.
    Move the /iTunes media/ folder currently on the NAS into  the /iTunes/ folder you just copied to the NAS.
    Hold Option, launch iTunes, select Choose library... and select the iTunes folder on the NAS.
    You can delete /Music/iTunes/ folder on the internal drive.
    If you launch iTunes while NOT comnnected to the NAS, iTunes will recreate the /Music/iTunes/ folder and you will have an empty library.
    WHen you are again connected to the NAS, just do step 4 above.
    Do you know what the advantages and disadvantages are of having the database files like the ".itl" files stored locally versus on the NAS?
    Keeping everyhing together inside the iTunes folder makes it "cleaner" and simpler to manage everything.

  • How do I stop mail from looping the same emails into inbox?

    How do I stop mail from looping the same emails into the inbox over and over again? It does the same thing with deleted messages that keep showing up again and again in multiples even after deleting them. I have made sure my server settings in all email accounts are set to delete immediately once I delete them on my MacBook Pro/IPhone. This issue has severely compromised the efficiency of Mail on my MacBook. Thanks for any help you're able to give me.

    I have tried that but it does not fix the problem.
    The "card" group is not a previous recipient.
    Although not available for editing in Contacts, it is a valid group showing up in the "To" field of Messages, Mail, or any app using the AddressBook.
    Its associated file is automatically created in:
    ~/Library/ApplicationSupport/AddressBook/Sources/<hexaFolder>/MetaData/<hexa>ABG roup.abcdg
    This is why it also shows up in the Spotlight results...
    If I manually remove this file, it gets recreated...
    If I turn off the syncing through iCloud, the entry gets deleted. If I turn it up, it comes back!

Maybe you are looking for

  • Calling a stored procedure using Oracle Ole Db provider

    I am looking for an example of syntax used to call a stored procedure from VB.Net using the Oracle OleDB provider. I have been using the Microsoft provider MSDAORA but need to move to the Oracle provider due to upgrade. The syntax used with the MSDAO

  • Ibook G4 display defaults to 800x600 VGA display after 10.4.6 update

    Hi Folks: I just updated (my brand new) ibook G4 from 10.4.5 to 10.4.6 and now the display is recognized as a VGA display only, defaults to 800x600, and lost its brightness controls. This is very strange, since the machine is brand new and the only t

  • Help needed with PSE9 Catalog issues

    I have been a PSE user for sometime, going back to PSE 3.0. In Jan, I purchased PSE 9, converted the catalog from PSE7 and have been working more heavily with the catalog lately. Two problems have arisen. The catalog is using the wrong thumbnail in s

  • BT Total Broadband CD

    Hi all, I have just received my BT Broadband and managed to install the wireless and are now connected to the Internet. My problem is: I can't play the CD that came with the package, I get this message, (Windows cannot load the device driver for this

  • Infotype for Clockin Application

    Hi  Experts, -> What is the Infotype used for simple clockin application where user has to click clockin for attendance in portal and the corresponding record to be updated in TEVEN ( The application is built using WebDynpro) ? -> What are the basic