• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Browser fails to receive heavy javascript

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"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
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you tried it with alternate browsers?
 
Mikko Virtanen
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, I'll give the jsp page a try.
 
Where does a nanny get ground to air missles? Protect this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic