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

javascript library functions not loaded after going from cookielessto cookies?

We recently decided to go from cookieless to cookies, changing
web.config to read cookieless=false.

Since making that change, I've noticed that javascript functions kept in
included libraries are not available. They'd been working for over a
year. The libraries are included in the <HEAD> of the HTML page:

<script language="javascript" src="../inc/utils.js"
type="text/javascript"></script>

The functions in the libraries are invoked in the body of the page.
Typical. But the functions don't seem to exist, as if the libraries are
not being loaded. When I cut and paste the function from the library
into the body of the page itself, things work.

Why would going from cookieless to cookies have an effect on the loading
of javascript libraries? Would the following cache directives in
Page_Load in code-behind be causing the problem?
Response.Cache.SetExpires(DateTime.Now)
Response.Cache.SetCacheability(HttpCacheability.No Cache)
Thanks
Liam

Mar 23 '06 #1
1 1422
The URL has changed.
If before you have

mysite.com/{cookielesspageguiod}/aaaa.aspx and
.../inc/utils.js" has been resolver by browser to mysite.com/inc/utils.js
Now you have mysite.com/aaaa.aspx and ../inc/utils does not make sense.
George.
"Liam" <Li**@zzzz.net> wrote in message
news:e%****************@TK2MSFTNGP10.phx.gbl...
We recently decided to go from cookieless to cookies, changing web.config
to read cookieless=false.

Since making that change, I've noticed that javascript functions kept in
included libraries are not available. They'd been working for over a year.
The libraries are included in the <HEAD> of the HTML page:

<script language="javascript" src="../inc/utils.js"
type="text/javascript"></script>

The functions in the libraries are invoked in the body of the page.
Typical. But the functions don't seem to exist, as if the libraries are
not being loaded. When I cut and paste the function from the library into
the body of the page itself, things work.

Why would going from cookieless to cookies have an effect on the loading
of javascript libraries? Would the following cache directives in
Page_Load in code-behind be causing the problem?
Response.Cache.SetExpires(DateTime.Now)
Response.Cache.SetCacheability(HttpCacheability.No Cache)
Thanks
Liam

Mar 23 '06 #2

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

Similar topics

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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.