473,327 Members | 2,016 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

why Mozilla goes to server for javascript.

i have write one jsp page inside that i have used java scripts .But now

when i used that page in mozzila then mozzila goes to server for java
scripts while this type of problem is not occuring in IE. Please give
me solution why this happens??????????

For javascript mozill goes to server while for the same page IE does
not go. Why please give me solution.

Aug 8 '06 #1
7 1192
parghi wrote:
i have write one jsp page inside that i have used java scripts .But now

when i used that page in mozzila then mozzila goes to server for java
scripts while this type of problem is not occuring in IE. Please give
me solution why this happens??????????

For javascript mozill goes to server while for the same page IE does
not go. Why please give me solution.
Appearantly, with the settings you used in IE and FF, IE is caching the
stylesheet, while FF is fetching a fresh one.
Why is it a problem?
Is the stylesheet huge?

Regards,
Erwin Moller
Aug 8 '06 #2
Erwin Moller said the following on 8/8/2006 8:01 AM:
parghi wrote:
>i have write one jsp page inside that i have used java scripts .But now

when i used that page in mozzila then mozzila goes to server for java
scripts while this type of problem is not occuring in IE. Please give
me solution why this happens??????????

For javascript mozill goes to server while for the same page IE does
not go. Why please give me solution.

Appearantly, with the settings you used in IE and FF, IE is caching the
stylesheet, while FF is fetching a fresh one.
Why is it a problem?
Is the stylesheet huge?
What stylesheet?

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Aug 8 '06 #3
Randy Webb wrote:
Erwin Moller said the following on 8/8/2006 8:01 AM:
>parghi wrote:
>>i have write one jsp page inside that i have used java scripts .But now

when i used that page in mozzila then mozzila goes to server for java
scripts while this type of problem is not occuring in IE. Please give
me solution why this happens??????????

For javascript mozill goes to server while for the same page IE does
not go. Why please give me solution.

Appearantly, with the settings you used in IE and FF, IE is caching the
stylesheet, while FF is fetching a fresh one.
Why is it a problem?
Is the stylesheet huge?

What stylesheet?
Hey Randy,

I have no clue what stylesheet you are talking about...
;-)

Sorry, my bad: I ment Javascript file of course.
My guess is one is caching it, the other not.

Regards,
Erwin
Aug 8 '06 #4

Erwin Moller wrote:
My guess is one is caching it, the other not.
Some former colleagues of mine experienced this before, and ended up
having to fudge it like this [files have been renamed to protect the
guilty]:

<script type="text/javascript" src="monkey.js?a=1"></script>

then the 'a=1' was updated when the JS was changed, causing the browser
to think it was a different file.

Since I had bigger fish to fry at the time I didn't get involved, but
did think "there has to be a better way than this" and hopefully one of
you is about to prove me right...?

Aug 8 '06 #5
Bobbo said the following on 8/8/2006 11:56 AM:
Erwin Moller wrote:
>My guess is one is caching it, the other not.

Some former colleagues of mine experienced this before, and ended up
having to fudge it like this [files have been renamed to protect the
guilty]:

<script type="text/javascript" src="monkey.js?a=1"></script>

then the 'a=1' was updated when the JS was changed, causing the browser
to think it was a different file.
That doesn't always work. If I get the file and it is monkey.js?a=1 and
ten minutes later you change it to monkey.js?a=2 and 10 minutes later I
revisit the page and have my browser set not to check for a new
document, I won't get the new one. The best method - to date - is to
write that script tag with script and append the current time to it.
Since I had bigger fish to fry at the time I didn't get involved, but
did think "there has to be a better way than this" and hopefully one of
you is about to prove me right...?
Depends on what you think you were right about :)

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Aug 8 '06 #6

Randy Webb wrote:
The best method - to date - is to
write that script tag with script and append the current time to it.
So do you mean this:
monkey.js?t=091200

Or this:
monkey091200.js
Since I had bigger fish to fry at the time I didn't get involved, but
did think "there has to be a better way than this" and hopefully one of
you is about to prove me right...?

Depends on what you think you were right about :)
I was definitely right about not getting involved and frying bigger
fish [mmm .. salmon!] but not quite right about the dummy parameter.

Aug 9 '06 #7
Bobbo said the following on 8/9/2006 4:16 AM:
Randy Webb wrote:
>The best method - to date - is to
write that script tag with script and append the current time to it.

So do you mean this:
monkey.js?t=091200
Yes.
Or this:
monkey091200.js
No.

The first doesn't require anything to be done on the server except to
update the file. The second requires renaming it and falls into the same
trap that ?t= solves.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Aug 9 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: atomo | last post by:
Hi, i got a problem with variable handling with mozilla(0.7). These lines of code works fine on IE(6), but they doesn't on Mozilla: echo" function check(){ if( ".$name.".value!=\"\" ) {...
2
by: wylbur37 | last post by:
I normally use Mozilla 1.4 on Windows XP Pro. As I was developing some test webpages, I discovered that the SRC parameter doesn't seem to work when a path is used with the filename. In one...
7
by: Peter Adolphs | last post by:
Hi newsgroup! The W3C HTML 4.01 recommendation states that "The onreset event occurs when a form is reset." Using Mozilla 1.4.1, how come that if I set onreset="return false;", the form is not...
8
by: nick | last post by:
In the web site http://greywolfdesign.com , there is a pop-up menu (when mouse over 'Portfolio' menu item), it always works well when using IE (6). However, when using Mozilla 1.6, the popup...
3
by: nick | last post by:
The warning message is: Warning: The stylesheet http://www.jewelrybyponce.com/popup/popup.css was loaded as CSS even though its MIME type, "application/octet-stream", is not "text/css". What...
9
by: fochie | last post by:
Greetings, I'm having a problem when I try to GET a file from my server via xmlhttp when using Mozilla. With IE I can get any type of file fine, get/display headers fine, etc. With Mozilla,...
9
by: Paul Gorodyansky | last post by:
Hi, FAQ tells how to insert (or replace0 a text at a caret position in Mozilla (and same works for Opera 8+), for example, at http://www.faqts.com/knowledge_base/view.phtml/aid/1661 it talks...
6
by: Erik Steffl | last post by:
I am trying to create a simple custom web spider using mozilla and javascript, the basic functionality is to open a website and then manipulate it using DOM (possibly opening links etc.). it...
0
by: rubrish | last post by:
I have a master page like this It is working fine in IE buyt in Mozilla FOoter is not coming down it goes to the right. <%@ Master Language="C#" AutoEventWireup="true"...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.