473,378 Members | 1,482 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,378 software developers and data experts.

javascript changes not taking effect.

Using asp.net 2.0, I am finding that at times, the old javascript will still
be there.

I was working with it for a couple of hours and the changes seem to happen.

But at the end of the day, I found that my last changes weren't taking
affect.

I was trying to delete my "alerts" before doing a final build but even after
taking out all my alerts, when I built it and ran it - the alerts were still
there.

If I took out the <styletags that loaded the .js file, then there were no
alerts (as would be expected). The scripts would work as they weren't
there, but the alerts were not there. So obviously, it wasn't using an old
..js file.

But as soon as I added the <scriptstatements back in, the alerts were
there?

How do I get rid of them?

Thanks,

Tom
Mar 4 '08 #1
3 3405
Hello tshad,

what is THAT?!
I hardly can understand what are u talking about. There is no soothsayer
to solve your problem not seeing the line of your code

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
tUsing asp.net 2.0, I am finding that at times, the old javascript
twill still be there.
t>
tI was working with it for a couple of hours and the changes seem to
thappen.
t>
tBut at the end of the day, I found that my last changes weren't
ttaking affect.
t>
tI was trying to delete my "alerts" before doing a final build but
teven after taking out all my alerts, when I built it and ran it - the
talerts were still there.
t>
tIf I took out the <styletags that loaded the .js file, then there
twere no alerts (as would be expected). The scripts would work as
tthey weren't there, but the alerts were not there. So obviously, it
twasn't using an old .js file.
t>
tBut as soon as I added the <scriptstatements back in, the alerts
twere there?
t>
tHow do I get rid of them?
t>
tThanks,
t>
tTom
t>
Mar 4 '08 #2

"Michael Nemtsev [MVP]" <ne*****@msn.comwrote in message
news:90**************************@msnews.microsoft .com...
Hello tshad,

what is THAT?!
I hardly can understand what are u talking about. There is no soothsayer
to solve your problem not seeing the line of your code
There really is nothing to show.

The problem was that the changes weren't taking affect.

I found out it had to do with caching. When I hit CTRL+F5, it refreshed the
page.

Apparently, even though I have my browser set to always get a new page - it
doesn't do the same for the included javascript files. Sometimes my changes
take effect (meaning the new javascript was loaded) and sometimes it doesn't
(meaning the cached version is getting loaded).

Is there someway to tell the system to not cache the javascript file while I
am building my app?

Thanks,

Tom
>
---
WBR, Michael Nemtsev [.NET/C# MVP] :: blog:
http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

tUsing asp.net 2.0, I am finding that at times, the old javascript
twill still be there.
ttI was working with it for a couple of hours and the changes seem to
thappen.
ttBut at the end of the day, I found that my last changes weren't
ttaking affect.
ttI was trying to delete my "alerts" before doing a final build but
teven after taking out all my alerts, when I built it and ran it - the
talerts were still there.
ttIf I took out the <styletags that loaded the .js file, then there
twere no alerts (as would be expected). The scripts would work as
tthey weren't there, but the alerts were not there. So obviously, it
twasn't using an old .js file.
ttBut as soon as I added the <scriptstatements back in, the alerts
twere there?
ttHow do I get rid of them?
ttThanks,
ttTom
t>

Mar 4 '08 #3
style ? You mean't script ?

I believe you included scripts multiple times i.e. :
- you are suppressing one script reference. Your scripts shoudn't run at
all. If they still run in a different flavor this could be because you still
have another reference to another script source in your application
- when you put them back it you then still have the bad version that comes
back and that supersedes earlier included script ?

I would say you included similar scripts two times...

--
Patrice

"tshad" <tf*@dslextreme.coma écrit dans le message de news:
OY**************@TK2MSFTNGP05.phx.gbl...
Using asp.net 2.0, I am finding that at times, the old javascript will
still be there.

I was working with it for a couple of hours and the changes seem to
happen.

But at the end of the day, I found that my last changes weren't taking
affect.

I was trying to delete my "alerts" before doing a final build but even
after taking out all my alerts, when I built it and ran it - the alerts
were still there.

If I took out the <styletags that loaded the .js file, then there were
no alerts (as would be expected). The scripts would work as they weren't
there, but the alerts were not there. So obviously, it wasn't using an
old .js file.

But as soon as I added the <scriptstatements back in, the alerts were
there?

How do I get rid of them?

Thanks,

Tom

Mar 4 '08 #4

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

Similar topics

111
by: Retlak | last post by:
The recommended (on dozens of websites) and effective (works in Netscape, MSIE, Mozilla, probably others) way to detect if a browser has Javascript turned off is to put this in the <head>: ...
2
by: Norman Swartz | last post by:
OS system is Windows XP Pro SP2. The following works perfectly in IE but not at all in Netscape: <tr> <td valign="middle" background="dull.gif" onMouseOver="this.background='bright.gif';"...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
8
by: Bennett Haselton | last post by:
If I create a new C# Web Project in Visual Studio and add this to the Page_Load method for WebForm1: Response.Write("firsttime"); then hitting F5 to debug the project of course shows the...
8
by: chrisdude911 | last post by:
how do i add video into a javascript web page with my own custom buttons?
7
by: phal | last post by:
Hi I think there are many different browsers to browse to the Internet, how can I write the javascript to identify different browser and display according to the users. Some browser disable the...
11
by: Faisal Vali | last post by:
Hi - I'm new to javascript and I was reading the book Javascript Professional Projects - there is a fragment that has me a little perplexed, and I was wondering if anyone could explain why and how...
3
by: Venturini | last post by:
I am trying to put together a web page where the customer makes choices of products and is then given a total. I am extremely new to Javascript and have managed to get as far as I have from web...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.