Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Javascript file reload every menu clicked - Chrome Debug

  1. #1
    Junior Member
    Join Date
    Apr 2014
    Posts
    27
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default Javascript file reload every menu clicked - Chrome Debug

    Every time I click in some menu I saw one more function.js in Chrome Debug window as you can see in the printshot attached. Does it mean that my application is downloading every request a new file of function.js? If so, how can I avoid this duplication?
    Basiclly, my main XSL has

    <xsl:template match="c:abc">
    <html>
    <head>
    <title>
    ABC - <xsl:value-of select="$user"/>
    </title>
    <script language="JavaScript" src="/abc/javascript/functions.js"/>

    Javascript Duplicated.jpg


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,267
    Thanks
    176
    Thanked 821 Times in 764 Posts
    Blog Entries
    5

    Default Re: Javascript file reload every menu clicked - Chrome Debug

    What does this have to do with java programming?

  3. #3
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    4,817
    My Mood
    Mellow
    Thanks
    177
    Thanked 627 Times in 614 Posts

    Default Re: Javascript file reload every menu clicked - Chrome Debug

    Moved to Other Languages.

Similar Threads

  1. Function work in IE 8 or 9 but not in Chrome
    By GAMC in forum Other Programming Languages
    Replies: 2
    Last Post: August 3rd, 2012, 02:53 PM
  2. can anyone help me please to debug my simple payroll java file?
    By breakzzzz20 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: April 14th, 2012, 06:48 PM
  3. Is it possible to use card layout for menu and menu items?
    By jai2rul in forum AWT / Java Swing
    Replies: 0
    Last Post: April 11th, 2011, 08:19 AM
  4. [SOLVED] Executable .jar file isnít launched after being double-clicked
    By voltaire in forum Java Theory & Questions
    Replies: 6
    Last Post: May 18th, 2010, 03:37 PM

Tags for this Thread