[jQuery] Strange, but major IE issue...
Hello,
I run an intranet site (so I can't post a link) at work and I'm having
a very wierd problem, that I just can't seem to correct.
What happens is, my script works fine on the first page that is
loaded, and it doesn't matter what page it is. Then, as soon as you
leave that page, the script stops working. The only way to get the
script to work again is to restart the computer.
I will list my findings during my troubleshooting, and then I will
list the header code (same on every page, because it's an include
file).
1). I load the home page and the script works fine.
2). I navigate away from the homepage, say to page 2, and it doesn't
work.
3). So I go back to the homepage, where it doesn't work, even though
it did before.
-- I can run the script on the homepage unlimited number of times,
without problem, until I navigate away from it.
-- If I go to another website, another webpage within this site, or
even refresh the page the script stops working
-- If I CTRL + F5, clear cache and clear cookies the script still does
not work. I have to restart the computer to get it working again. I
have not tried logging off and back on, I will try that and reply with
my results.
-- Closing all instances of internet explorer and opening it again the
script will not run, even on the first page loaded.
-- I can start at page 2, and it works fine, then navigate to home
page and it does not work.
-- If I start at Homepage, don't run the script, then go to page 2, it
dooes not work. The script has to be ran on the first page loaded,
and this is the only page it will work on.
-- If I start Homepage, run the script and it works, then I go to
google and come back, the script will no longer work.
-- If I start at the homepage, don't run the script, and refresh the
page, the script will not work.
-- If I start at the homepage, run the script, and open page 2 in a
new window, the script will work on the old window still, but not the
new. If I close the new window, it still works on the new.
I opened TaskManager and monitored the PF Usage. Here is the results.
When I open IE and go to the homepage PF Usage is around 422MB.
I run the script and the PF Usage goes to 447 MB. I exit the script
and the PF Usage stays the same. Exit IE and the PF Usage stays the
same. The only way to get it back to 422 is to restart the computer.
I cannot duplicate this problem in Maxthon browser, or FireFox.
Here is the code that is found in my header.inc file:
<?xml version="1.0"?>
<%
Function FormatDate(sDate,sFormat)
If IsDate(sDate) Then
With New RegExp
.Global=True
.Pattern = "(yyyy|yy|mmmm|mmm|mm|m|dddd|ddd|dd|d)"
For Each sDatePart in .Execute(sFormat)
Select Case sDatePart
Case "yyyy"
sFormat=Replace(sFormat,sDatePart,Year(sDate))
Case "yy"
sFormat=Replace(sFormat,sDatePart,Right(Year(sDate),2))
Case "mmmm"
sFormat=Replace(sFormat,sDatePart,MonthName(Month(sDate),0))
Case "mmm"
sFormat=Replace(sFormat,sDatePart,MonthName(Month(sDate),1))
Case "mm"
sFormat=Replace(sFormat,sDatePart,Right("0" & Month(sDate),2))
Case "m"
sFormat=Replace(sFormat,sDatePart,Month(sDate))
Case "dddd"
sFormat=Replace(sFormat,sDatePart,WeekdayName(Weekday(sDate,1),
0,1))
Case "ddd"
sFormat=Replace(sFormat,sDatePart,Left(WeekdayName(Weekday(sDate,
1),1,1),3))
Case "dd"
sFormat=Replace(sFormat,sDatePart,Right("0" & Day(sDate),2))
Case "d"
sFormat=Replace(sFormat,sDatePart,Day(sDate))
End Select
Next
End With
Else
sFormat=sDate
End IF
FormatDate=sFormat
End Function
%>
<html>
<head>
<title>COX Field Operations Communications Portal</title>
<% Response.CacheControl = "no-cache" %>
<% Response.AddHeader "Pragma", "no-cache" %>
<% Response.Expires = -1 %>
<link rel="stylesheet" media="screen, projection" type="text/css"
href="http://ksar.corp.cox.com/CustomerCare/CSI/FieldOps/includes/
main.css" />
<link rel="stylesheet" media="print" type="text/css" href="http://
ksar.corp.cox.com/CustomerCare/CSI/FieldOps/includes/print.css" />
<script type="text/javascript" src="http://ksar.corp.cox.com/
CustomerCare/CSI/FieldOps/includes/jquery-1.2.3.js"></script>
<script type="text/javascript" src="http://ksar.corp.cox.com/
CustomerCare/CSI/FieldOps/includes/jquery.blockUI.js?v2.04"></script>
<script type="text/javascript">
// unblock when ajax activity stops
$().ajaxStop($.unblockUI);
$(document).ready(function(){
$("#helpMe").click(function(){
$.blockUI({
message: jQuery('#helpMessage'),
css: {
top: '20%'
}
});
});
});
$(document).ready(function(){
$("#helpClose").click(function(){
$.unblockUI();
});
});
$(function(){
$('a.externalNew').click(function(){
window.open(this.href);
return false;
});
});
</script>
<!--[if lt IE 7.]>
<script defer type="text/javascript" src="http://ksar.corp.cox.com/
CustomerCare/CSI/FieldOps/includes/pngfix.js"></script>
<![endif]-->
</head>
<body id="www-url-cz">
<div id="helpMessage" style="width: 380px; height: 300px; display:
none; cursor: default;">
<h1>Field Operations Help Page</h1>
This website was designed as a tool for Field Operations, OSC,
TestDesk, Provisioning, LEC, Provisioning, E911, CB LNP, NIM, and
Analysis and Reporting.
The icons on this website are taken from www.mouserunner.com (Info,
Print, and Help icons)
This website is maintained by the <a
href="mailto:fieldcommspec@cox.com">Field Communication Specialist</
a>.
<!--#include virtual="/CustomerCare/CSI/FieldOps/includes/
footer2.inc"-->
<p id="helpClose" style="cursor: hand; border: dashed">
CLICK HERE TO CLOSE THIS BOX
</div>
<!-- Main -->
<div id="main" class="box">
<!-- Header -->
<div id="header">
<!-- Logotyp -->
<h1 id="logo"><a href="http://ksar.corp.cox.com/CustomerCare/
CSI/FieldOps/" title="Go To COX Field Operations Communications Portal
Home Page"><img src="http://ksar.corp.cox.com/CustomerCare/CSI/
FieldOps/images/digi_logo3.png" style="border; 0;" alt="COX" /><span></
span></a></h1>
<hr class="noscreen" />
<!-- Quick links -->
<div class="noscreen noprint">
<hr />
</div>
<!-- Search -->
<div id="search" class="noprint">
<form action="http://ksar.corp.cox.com/CustomerCare/CSI/
FieldOps/Search/results.asp" method="post">
<fieldset><legend>Search</legend>
<label><span class="noscreen">Find:</span>
<span id="search-input-out"><input type="text"
name="whereCondition" id="whereCondition" size="30" /></span></label>
<input type="hidden" name="whereField"
id="whereField" value="articleBody" />
<input type="image" src="http://ksar.corp.cox.com/
CustomerCare/CSI/FieldOps/images/search_submit.gif" id="search-submit"
value="OK" />
</fieldset>
</form>
</div> <!-- /search -->
<div id="icons" class="noprint">
<% If Cadils.Name = "Johnie Karr" or Cadils.Name = "Sharri
Riley" Then %>
<a href="http://ksar.corp.cox.com/CustomerCare/CSI/FieldOps/
Email/"><img src="http://ksar.corp.cox.com/CustomerCare/CSI/FieldOps/
images/Mailmed.png" alt="http://ksar.corp.cox.com/CustomerCare/CSI/
FieldOps/images/Mail1.png" style="border: 0;" title="Click Here To
Send Out A Communication" /></a>
<% Else
End If %>
<a href="#" onclick="window.print();return false;"><img
src="http://ksar.corp.cox.com/CustomerCare/CSI/FieldOps/images/
Printmed.png" alt="http://ksar.corp.cox.com/CustomerCare/CSI/FieldOps/
images/Print1.png" style="border: 0;" title="Click Here To Print This
Page" /></a>
<img id="helpMe" src="http://ksar.corp.cox.com/CustomerCare/
CSI/FieldOps/images/QuestionMarkmed.png" alt="help" style="border: 0;
cursor: hand;" title="Click Here For Information About This Website" /