| Author |
Browser fails to receive heavy javascript
|
Mikko Virtanen
Greenhorn
Joined: Feb 24, 2006
Posts: 3
|
|
Hi all, I've encountered a problem to which I seem to have no leads whatsoever. It's a bit complicated but I'll try to explain it as well as I can. So I have an application server with an Apache web server. The content of my html page contains a large amount of dynamically produced javascript, parsed into the head section of the html page. The problem is that when the content becomes very large, it seems that the browser does not receive it at all from the web server, or that the browser "refuses" to receive it. No error messages appear. The page source is simply cut before the javascript tag starts, and thus my web page is blank. What makes this more interesting or weird I should say, is that the problem does not occur on Win 2000, but does occur on Win XP. So browsers running on Win 2000 produce the page correctly, whereas browsers on Win XP don't. The problem occurs at least for the latest versions of IE and Firefox. The above suggests me that the problem is not on the server side. But that's all the leads I have. Has anyone encountered a similar problem? All I can think of is that on XP there is some browser's cache limit which did not exist in Win 2000. I'd appreciate any help very much.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56168
|
|
"Enrico Fermi", There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it. In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious. Thanks! bear JavaRanch Sheriff
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56168
|
|
|
Have you tried it with alternate browsers?
|
 |
Mikko Virtanen
Greenhorn
Joined: Feb 24, 2006
Posts: 3
|
|
Bear Bibeault, I corrected my display name now. Sorry about not reading the naming policy beforehand. About the browsers, I've tried Internet Explorer and Mozilla Firefox, recent versions of both. Netscape I haven't tried, and I don't really want or need to go there either. In my point of view it is enough to support IE and Firefox. I keep thinking that it's an OS issue but I have no clue whether there could be some register value or security patch which has changed from Win 2000 to Win XP. - Mikko
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
There should be no problem with what you are doing. Only thing I could suggest is trying this. <script type="text/javascript" src="AjspPage.jsp"></script> now that jsp page would just produce the javascript code needed. Eric
|
 |
Mikko Virtanen
Greenhorn
Joined: Feb 24, 2006
Posts: 3
|
|
|
Thanks, I'll give the jsp page a try.
|
 |
 |
|
|
subject: Browser fails to receive heavy javascript
|
|
|