JavaScripts not loading sometimes.

Please have a look at the code snippet below. Its the starting of a JSP page. The problem we face using this is, sometimes the css or the .js files won't get loaded at all to the client. However refreshing the page (F5) will load the scripts and .js files later on. Is there something wrong in the code below. Or do we need to set some property in the jsp page so that it throws the proper header response or something.
<%@ page language="java" %>
<%@ include file="common.jsp" %>
...... Some jsp processing .......
<html>
<head>
<title><%=title%></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="<%=cssPath %>/reunderwriting_style.css">
<script language="JavaScript" src="<%=scriptPath %>/common.js"></script>
.... ( JSP continues )

try using hard-coded format for .css and MOVE your .js files out of the <head>. in all cases do not put .js files into your header. put them between the header and the body.
this should solve your problem.
cem.

Similar Messages

  • JavaScripts Not loading Suddenly in Firefox-10.0.2 ???

    Firefox is not loading Java-scripts Suddenly, I tried in Safe-mode also, I have attached Screenshot. please take a look.
    [http://dl.dropbox.com/u/40690073/Photos/firefox.png ScreenShot]

    @<b>mcook4</b>
    Please start a new thread for your question because you have a different question then the original poster.
    *[[/questions/new start a new thread]]
    *[[/kb/Using+the+Troubleshooting+Information+page]]
    You can no longer run JavaScript code via the location bar in Firefox 6 and later.<br />
    You can see an error message in the Tools > Error Console.<br />
    That code now gets a null principal for security reasons and doesn't have any effect (Bug 656433).
    Use the Scratch pad (Firefox > Web Developer > Scratchpad; Shift+F4) to run JavaScript code.
    Open a tab with an XUL page like about:addons (Tools > Addons) to be able to resize or move a window via JavaScript code in the Scratchpad in Firefox 9+ while that tab is selected.
    * chrome://mozapps/content/extensions/extensions.xul

  • Javascript not loading content after updating from firefox 26 to 27

    on my site i have a page on which javascript pre-loads the content and then shows it.
    this thing was working perfectly fine on firefox 26 but soon as i updated to firefox 27
    the content doesn't show after loading
    Like i have an image for 'loading content' which first appears and then the loaded content
    shows up. This image is still showing in version 27 but the content which shows after is not showing at all.
    I inspected the page and the divs and content is there but its just not visible somehow.
    Please help me with this problem .. im stuck with this if it doesn't show up. Thanks.

    this doesn't solve the problem.
    actually its working on all other browsers, the content is showing.
    but its not working on firefox 27. what problem could it be which is preventing version 27 from loading the content when its working just fine on version 26 (i just checked it on a different system with version 26).
    also there was an instance when the same content wasn't loading on version 26 also but it was a problem due to some pinterest script. once i removed it everything became just fine i.e. content started loading (on version 26). Now, if that helps in deducing the problem please help me out.

  • Javascript not loading in my JSF page

    I have a JSF page in which I use the t:popup field, which I can't get to show:
    <tr>
                        <TD><t:popup id="testpop" styleClass="popClass"
                             closePopupOnExitingElement="true" closePopupOnExitingPopup="true"
                             displayAtDistanceX="10" displayAtDistanceY="10">
                             <h:outputText id="obtest" value="pelle" />
                             <f:facet name="popup">
                                  <h:panelGroup>
                                       <h:panelGrid columns="1">
                                            <h:outputText value="Sample Popup Text" />
                                       </h:panelGrid>
                                  </h:panelGroup>
                             </f:facet>
                        </t:popup></TD>
                   </tr>
    I can compile the code without any errors and also load the page successfully with no javascript errors or other errors. However, the popup box does not show up. It is like the JSPopup.js script has not been loaded properly. But if I put an alert() in the JSPopup.js file it displays it on page load???
    On the same page I have an inputCalendar that works as it should, so I would think the correct JAR files have been loaded.
    I also have a home grown javascript:
    <script src="js/scripts.js" type="text/javascript">�</script>
    The function that uses this script only works when the above line is put right before the </body> (not in <HEAD>). This makes me believe that the same problem applies to the JSPopup.js file since it is rendered/included in the <HEAD> section.
    This is driving me crazy. Any ideas are welcome.
    Thanks

    Do you have any security or privacy oriented add-ons? These may include a feature to block content from sites other than the one you're on.
    If you want someone to look at your list, you can copy and paste it from the second table here:
    Help > Troubleshooting Information
    Alternately, you can try those sites with your add-ons disabled using Firefox's [http://support.mozilla.com/kb/Safe+Mode Safe Mode]. Use
    Help > Restart with Add-ons Disabled
    In the dialog, don't check any boxes, just click "Continue in Safe Mode." If the sites work as designed, then the most likely culprit is one of your add-ons.
    Does that help at all?

  • Javascript Not Loading on IE9 and above

    Hi,
    We are working on SharePoint Online 2013 (Office 365) and created Javascript(.JS) files using SharePoint JSOM. The javascript files get loaded on IE8, however when we are testing on IE9 and above browsers, the JS files are not getting loaded, and our functionality
    is not working.
    Please suggest what could be the possible issue with browser compatibility OR Is there any issue in our javascript file ?
    Vipul Jain

    HI Vipul,As you said the Java Script loaded in IE8.so,It would nt be the issue with Script.Please try access by firefox,Chrome and Use 32 BIt IE9,Since SharePoint 2013 fully support IE 32-bit version above 7, there might be compatibility issue with other
    browsers. I’d recommend you use IE 8,9,10 32-bit for optimal Performance and let me know the results.
    Anil Avula[MCP,MCSE,MCSA,MCTS,MCITP,MCSM] See Me At: http://expertsharepoint.blogspot.de/

  • BC Provided javascript not loading in Internet Explorer

    I'm trying to create a web app form that anonymous users can use. I found the snippet of code (below) in the BC Resources:
    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
    <script type="text/javascript">
    $(document).ready(function() {
    jQuery.post('/ZoneProcess.aspx?ZoneID=-1', { Username: 'Anonymous', Password: 'User' });
    </script>
    This works great in all browsers BUT Internet Explorer (go figure). All other JS is loading and working fine, but when a user attempts to submit the web app customer input form, it goes to the "you need to log in to the secure zone" screen.
    Anyone see any syntax problem in the JS - am I missing something? I there a work around? On a tight deadline - I'd appreciate any help.
    (I've created the anonymous user, and the user/pass are correct in the code - again, it's working in everything but IE)

    Liam - of course, and thank you:
    http://bankplusfb.businesscatalyst.com/bp_pen_contest.html
    To interact with that one portion, you'll need to open the toggle section, and fill out the form to upload an image.
    Again, it appears to be an IE only problem and only the submission process seems to be breaking. The toggle function, prettyphoto etc. all seems to be acting correctly. Even in EI.
    Thanks for your help!

  • Tabs will not load sometimes unless I move the cursor or hold down an arrow button. If I close all tabs and reopen, it will work properly for a while then start doing the same thing. I've tried disabling add-ons but it does not help.

    I've had this problem with earlier versions of Firefox. I am currently running the latest version which I think is 6.0.1. Firefox also is not responding a lot since the latest version update. I'm running Windows 7 Home Premium 64 bit.

    I finally resolved my problem after spending way too much time on it. I simply handed my 160GB iPod to my husband to put his fav Stones & Beatles songs on and I went back to my 80GB Microsoft Zune which has never disappointed me.
    After spending so much time trying to figure this out I did finally take it back to Apple Store who performed a diagnostic and found there was a problem with the device. They replaced it with a refurbished one which has similar issues. All I wanted to do was listen to my music. Was that too much to ask? So I am happy to be free of this problematic device. No more Apple for me!!

  • Why would some if the radio channel not load sometimes .

    strangely some of the radio channel in itunes don t load... they just keep in showing the loading message...
    others times they just work properly ....    is  the proplem  from my pc  or is it from the channel themselves..?
    thx for any  comments....

    We cannot say without trying to play the channels at the same time as you.  If it is sporadic it is more likely it is the station's server, or possible the intermediate server that connects you to the station.  One thing to try is to add the station directly to a playlist so it goes directly, rather than relying upon Apple's radio list to generate each time.

  • Web sites not loading properly / Account Error: Nonexistent

    Something strange has begun happening with the websites I've been publishing through iWeb and Me.com -
    When the site loads, parts of it are missing or load improperly, such as a picture, or a border around a picture, and so on.
    However, the really strange part is that when I refresh the page, a different part of the website is missing or has loaded improperly, each and every time. It almost seems like the server is choosing at random which elements of the website to load, and which not to.
    Often when refreshing, the site doesn't load at all, and a white page with the error, "Account Error: Nonexistent" appears, but upon refreshing again, the site goes back into its cycle of random loading.
    This only started for me recently, and I would be greatly appreciative if anyone knows the cause and fix to this problem. I don't know if it's iWeb that caused this, or Me.com, or even something else I've done.
    Thank you kindly!

    I have exactly the same issue on several pages of mine. If I publish them on my MobileMe master Account or family member account, these random loading difficulties occur. If I publish on another Account that I got from Apple Support for testing, it works perfectly. So it has something to do with certain Accounts on MobileMe, for example with mine... In my case, the problem is always here, around the clock. If I reload the page, it usually works but not always.
    Apples MobileMe support is on the case since 4 days, I will post results as soon I have any.
    Sometimes, the menu of the page does not load, sometimes images are missing, sometimes fonts are wrong, sometimes the background is missing, sometimes I have an the message "Account Error: Nonexistent". When I reload the page, it usually works or the problem is slightly different.
    I did publish the sites from scratch, without improvement. It happens on other browsers than Safari and on other OS like Windows XP. It really is a problem with MobileMe. UNACCEPTABLE !
    www.sachenmacherei.ch

  • Sometimes Tray Icon not loaded correctly

    I am trying to make my (html/ajax) website available as a desktop application, (with little enhancements like notifications in the background etc.)  without writing any extra code. Everything works fine except the tray icon. Sometimes the tray icon is not loading correctly.
    Following is the structure of my sample air application.
    1. An html page(page1.html) i am using as my inital window.
    It creates an invisible html window and loads a new page (page2.html) as below.
            var options = new air.NativeWindowInitOptions();
            options.systemChrome = "standard";
            var windowBounds = new air.Rectangle(200,250,300,400);
            newHTMLLoader = air.HTMLLoader.createRootWindow(false, options, false, windowBounds);
            newHTMLLoader.window.mainAppWindow = window;
            newHTMLLoader.load(new air.URLRequest("page2.html"));
    and later redirecting to the website.
    2. I am using this invisible html window to control the application behavior (like sending ajax requests in the background, monitoring network, checking for updates etc.)
    page2.html contains code to load the tray icon for the application.
    Here is javascript the code in page2.html
    function BgWindow(){
            this.init = function(){
                this.loadTrayIcon();
            var iconLoadComplete = function(event){
                air.NativeApplication.nativeApplication.icon.bitmaps = [event.target.content.bitmapData];
            this.loadTrayIcon = function() {
                air.NativeApplication.nativeApplication.autoExit = true;
                var iconLoad = new air.Loader();
                if (air.NativeApplication.supportsSystemTrayIcon) {
                    iconLoad.contentLoaderInfo.addEventListener(air.Event.COMPLETE,iconLoadComplete);
                    iconLoad.load(new air.URLRequest("lmt16.png"));
        window.onload = function(){
            bgWindow = new BgWindow();
            bgWindow.init();       
    But the problem here is, sometimes the icon is loaded correctly but sometimes its not loaded.
    What am I missing here ?
    Any help is appreciated.
    I am attaching the complete application if somebody needs to analyze it.

    Sorry. Your attachment didn't come through. It triggered an error message about a "malformed container violation." Please try to rezip it and try it again.

  • I have a ipad 1. I seem to be having a lot of connectivity issues. It takes a long time to load and sometimes will not load a page at all. I seem to be having issues with streaming in that it will play a song and just stop.

    I seem to be having a lot of connectivity issues my iPad. It takes a long time to load and sometimes will not load a page at all. I seem to be having issues with streaming in that it will play a song and just stop. It seems I have to turn it completely off and restart.
    Anyone had these issues?

    Settings > General > Reset > Reset network settings

  • TS1398 I have I-phone 4S - Since updating to IOS 6, when at home with Wi-Fi network with my I Phone connection is not responding sometimes – for example if I want to check my G-mail it shows loading but nothing happens and after few minutes it displays "C

    I have I-phone 4S - Since updating to IOS 6, when at home with Wi-Fi network with my I Phone connection is not responding sometimes – for example if I want to check my G-mail it shows loading but nothing happens and after few minutes it displays “Cannot Get Mail” – The mail server “imap.gmail.com is not responding, Verify that you have entered the correct account info in mail settings
    Other times the Wi-Fi connection works fine and it check e-mail or other within few seconds. The connection problems seems to be intermitted
    This issue never happened before with IOS 5 since I bought the new phone in Oct 2011.

    We suffered the imap.gmail.com server problem After an IoS 6 upgrade. The simple solution is to delete the problem account, shut down the iPad, start up again and reenter the account. Everything comes back normally. Good Luck everyone!

  • Sometimes images ou other resources do not load in the page.

    Hi.
    Folks, I have a website made using WebCenter Spaces version 1xxx6 and Content Server (UCM). All the website´s content is into UCM (pages, css, js, images, etc.) and the space just manage this content and provide the template.
    The problem:
    Sometimes, one or another resource (css, image or js) do not load on page (but if I do a page refresh it works well). I see the Firebug console and the cause reported is 404 not found, but if I verify the address to the resource it exists and works.
    Someone had this problem ?
    Thanks.
    Edited by: itstrivial on 18/05/2012 07:00
    Edited by: itstrivial on 18/05/2012 07:01
    Edited by: itstrivial on 18/05/2012 07:02

    These type of issues you will face if you did'n configure any WebServer and SSO. I would suggest install Web server and SSO in order to have a good integration between webcenter and UCM. For detail, pls see following blog:-
    http://jwebcenter.blogspot.com.au/2012/05/why-web-server-for-webcenter-oracle.html
    Regards,
    Imran

  • Document library, List content does not load in certain computers with Javascript error in status bar. Any solution?

    Hi All,
    The document library, list, discussion board contents are not loading only in certain computers.  Javascript error also appears in status bar.  How to resolve it? any suggestions?

    Hi,
    Do you have any updates?
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • I have a mac book pro with os x 10.5.8.......sometimes will not load google or yahoo, or any other search engine, but will load regular sites.....why is this?

    i have a mac book pro with os x 10.5.8.......sometimes will not load google or yahoo, or any other search engine, but will load regular sites.....why is this?

    Check System Preferences - Accounts
    Choose you account - login items: If iTunesHelper
    shows up - remove it it will prevent re-installation.
    It did not have iTunes in the list, just mail and iCal alarm. Deadlines and emails are vital in my home office.
    Now that I think about it, adding Mail to the list was the only thing that I had changed to the computer when this happened, but I can't imagine how that would alter permission to install on the OS.
    Eric
    Note: I saw a G5 1.2 for $1,500 CAN. I was tempted.

Maybe you are looking for

  • Hyperlink doesn't work in Adobe Viewer, why?

    Hi everyone! I'm creating an interactive newsletter in Indesign CS6 for the iPad and iPhone. I have  a 3D model that I would like to demonstrate, but here comes the problem. I have a link to the IPM viewer (the 3D model is there), but when I use this

  • Email PDF invoices

    Hi Experts, There is a need to send the SD invoices to the customer through email in PDF format. We need to have a automatic email sending of PDF inovices, please advice. Thanks Montee

  • Brush mode: Tone curve, etc

    Well, I'm new for LR, I'm trying to tweak a certain part in the photo by using Tone curve and else, but I don't think the LR would allow me to do that in the "Brush Mode", am I correct? Because, I need to change some parts in the photo by increasing

  • Converting to DNG

    I'm looking for some help trying to convert RAW images to the DNG format. I've finally got around to downloading the DNG converter for PSE 3.0, however, I keep all my images in the Organizer. My question is this: If I convert the files to the DNG for

  • Sub page ordering

    I would like to resequence the order of subpage. There is the table wwpob_page$ with column seq for ordering. Can i update this column without any problem or is there is an api or others thinks for resequence page ? Thanks