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

ASP.NET and AJAX: JavaScript files from the Microsoft AJAX Library

I am moving my website from my machine to my webhost, and need some help
with what extra files I need to include due to the fact that I used AJAX in
my site. Everything on the site is obviously functioning as desired when I
test it on my machine using Visual Studio 2005. From what I have determined,
the files I am forgetting are the JavaScript files from the Microsoft AJAX
Library (See "To install Microsoft AJAX Library" at the bottom of
http://ajax.asp.net/docs/InstallingASPNETAJAX.aspx ). These instructions
said to "Copy the JavaScript files to the Web site", but I found that
statement confusing for two reasons:

1. It does not say what directory in the website, which may be different for
different sites.

2. When I did a View Source for my page, it did not ask for any of those
files, but it did have the following script tags, which were added
dynamically:

<script
src="/WebResource.axd?d=Xdr-RukB2950SXJ9i71PzQ2&amp;t=633020304580493760"
type="text/javascript"></script>
<script
src="/WebResource.axd?d=hWBdjOECZgN_k_F7YoeIbx_uLIw-vrcNg3LJ3ReggFo1&amp;t=633020304580493760"
type="text/javascript"></script>
<script
src="/ScriptResource.axd?d=u5ZmT0t1N9GdJVAywVbZRG18UrHgz yUqVR1kN1XjmvbDYSWj2ME-VLVqrjhyDloC0&amp;t=633162383981348248"
type="text/javascript"></script>
<script
src="/ScriptResource.axd?d=jK6xX1_WrynclrYFeEwXRWE23Jqa0 AFZkuAEsobfS2P7L9YVHmOcWlSD8vjBiOwMy9Vgk-2qDSltTpCfzOJkxw2&amp;t=633162373890373255"
type="text/javascript"></script>
<script
src="/ScriptResource.axd?d=jK6xX1_WrynclrYFeEwXRWE23Jqa0 AFZkuAEsobfS2OA_l9piwXaCwsvzLh20j1El5wNsGyO4SyyVf7 a8JcgkQ2&amp;t=633162373890373255"
type="text/javascript"></script>
<script
src="/ScriptResource.axd?d=jK6xX1_WrynclrYFeEwXRWE23Jqa0 AFZkuAEsobfS2O1N483k9TnkyAkKQWS8mmaZc06JdbdpYo6ICg fsEgOyA2&amp;t=633162373890373255"
type="text/javascript"></script>
<script
src="/ScriptResource.axd?d=jK6xX1_WrynclrYFeEwXRWE23Jqa0 AFZkuAEsobfS2O2kjkj94yAoGi2S58QcbxfxlP890rBV9zbcPN I4DQ87XIFsDOfGXqHCzK5G344D7Q1&amp;t=63316237389037 3255"
type="text/javascript"></script>
<script
src="/ScriptResource.axd?d=jK6xX1_WrynclrYFeEwXRWE23Jqa0 AFZkuAEsobfS2PUwNRPYjgrAcy6lFlMa58pQ6l_av8iYECPUqF jziFETMxmFTIilbQnwnGmZ_d6lxOQglFhr3d2lAZhJhbrzElI0 &amp;t=633162373890373255"
type="text/javascript"></script>
<script
src="/ScriptResource.axd?d=jK6xX1_WrynclrYFeEwXRWE23Jqa0 AFZkuAEsobfS2MvnE-ACyj_ATIe2q6MHi6VDEV7JnSIEE2JzewMQM6f4fB40B5anjmL3 n1vOvbuU7c1&amp;t=633162373890373255"
type="text/javascript"></script>
Because the page gives a script error saying 'Sys' is undefined, 'Sys' is
declared in the Microsoft AJAX Library, and the line number in the error
uses 'Sys', I am pretty sure my problem has something to do with the
Microsoft AJAX Library. Could anybody help me figure out what I need to do
to make the AJAX work on my webhost? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/
Jun 1 '07 #1
2 4235
The AJAX library creates duplicate objects in JavaScript. Sys is the System
namespace, so yes that is AJAX. If you have created the site as an AJAX
enabled site, and use publish, you will have them already. If this is a
refit, you have to work them in yourself.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)

************************************************
Think outside the box!
************************************************
"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:O%*****************@TK2MSFTNGP06.phx.gbl...
>I am moving my website from my machine to my webhost, and need some help
with what extra files I need to include due to the fact that I used AJAX in
my site. Everything on the site is obviously functioning as desired when I
test it on my machine using Visual Studio 2005. From what I have
determined, the files I am forgetting are the JavaScript files from the
Microsoft AJAX Library (See "To install Microsoft AJAX Library" at the
bottom of http://ajax.asp.net/docs/InstallingASPNETAJAX.aspx ). These
instructions said to "Copy the JavaScript files to the Web site", but I
found that statement confusing for two reasons:

1. It does not say what directory in the website, which may be different
for different sites.

2. When I did a View Source for my page, it did not ask for any of those
files, but it did have the following script tags, which were added
dynamically:

<script
src="/WebResource.axd?d=Xdr-RukB2950SXJ9i71PzQ2&amp;t=633020304580493760"
type="text/javascript"></script>
<script
src="/WebResource.axd?d=hWBdjOECZgN_k_F7YoeIbx_uLIw-vrcNg3LJ3ReggFo1&amp;t=633020304580493760"
type="text/javascript"></script>
<script
src="/ScriptResource.axd?d=u5ZmT0t1N9GdJVAywVbZRG18UrHgz yUqVR1kN1XjmvbDYSWj2ME-VLVqrjhyDloC0&amp;t=633162383981348248"
type="text/javascript"></script>
<script
src="/ScriptResource.axd?d=jK6xX1_WrynclrYFeEwXRWE23Jqa0 AFZkuAEsobfS2P7L9YVHmOcWlSD8vjBiOwMy9Vgk-2qDSltTpCfzOJkxw2&amp;t=633162373890373255"
type="text/javascript"></script>
<script
src="/ScriptResource.axd?d=jK6xX1_WrynclrYFeEwXRWE23Jqa0 AFZkuAEsobfS2OA_l9piwXaCwsvzLh20j1El5wNsGyO4SyyVf7 a8JcgkQ2&amp;t=633162373890373255"
type="text/javascript"></script>
<script
src="/ScriptResource.axd?d=jK6xX1_WrynclrYFeEwXRWE23Jqa0 AFZkuAEsobfS2O1N483k9TnkyAkKQWS8mmaZc06JdbdpYo6ICg fsEgOyA2&amp;t=633162373890373255"
type="text/javascript"></script>
<script
src="/ScriptResource.axd?d=jK6xX1_WrynclrYFeEwXRWE23Jqa0 AFZkuAEsobfS2O2kjkj94yAoGi2S58QcbxfxlP890rBV9zbcPN I4DQ87XIFsDOfGXqHCzK5G344D7Q1&amp;t=63316237389037 3255"
type="text/javascript"></script>
<script
src="/ScriptResource.axd?d=jK6xX1_WrynclrYFeEwXRWE23Jqa0 AFZkuAEsobfS2PUwNRPYjgrAcy6lFlMa58pQ6l_av8iYECPUqF jziFETMxmFTIilbQnwnGmZ_d6lxOQglFhr3d2lAZhJhbrzElI0 &amp;t=633162373890373255"
type="text/javascript"></script>
<script
src="/ScriptResource.axd?d=jK6xX1_WrynclrYFeEwXRWE23Jqa0 AFZkuAEsobfS2MvnE-ACyj_ATIe2q6MHi6VDEV7JnSIEE2JzewMQM6f4fB40B5anjmL3 n1vOvbuU7c1&amp;t=633162373890373255"
type="text/javascript"></script>
Because the page gives a script error saying 'Sys' is undefined, 'Sys' is
declared in the Microsoft AJAX Library, and the line number in the error
uses 'Sys', I am pretty sure my problem has something to do with the
Microsoft AJAX Library. Could anybody help me figure out what I need to do
to make the AJAX work on my webhost? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

Jun 1 '07 #2
That will not work for me, because the machine that Visual Studio 2005 is
installed on is in a different location from the one that I access the
website from (I work on the site at home, but do the FTPing at work).
Therefore:

1. I need to have the compiled *.dll's on my computer so that I can take
them with me.
2. I need to know where on the webhost I will need to put the JavaScript
files (or whatever extra files I need to include).

The basic summary of my situation is that I have all the files I need, but I
need to know what to do with all of them to set up my site on a webhost from
a machine other than the one that I built the site on. Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:Ot**************@TK2MSFTNGP06.phx.gbl...
The AJAX library creates duplicate objects in JavaScript. Sys is the
System namespace, so yes that is AJAX. If you have created the site as an
AJAX enabled site, and use publish, you will have them already. If this is
a refit, you have to work them in yourself.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)

************************************************
Think outside the box!
************************************************
"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:O%*****************@TK2MSFTNGP06.phx.gbl...
>>I am moving my website from my machine to my webhost, and need some help
with what extra files I need to include due to the fact that I used AJAX
in my site. Everything on the site is obviously functioning as desired
when I test it on my machine using Visual Studio 2005. From what I have
determined, the files I am forgetting are the JavaScript files from the
Microsoft AJAX Library (See "To install Microsoft AJAX Library" at the
bottom of http://ajax.asp.net/docs/InstallingASPNETAJAX.aspx ). These
instructions said to "Copy the JavaScript files to the Web site", but I
found that statement confusing for two reasons:

1. It does not say what directory in the website, which may be different
for different sites.

2. When I did a View Source for my page, it did not ask for any of those
files, but it did have the following script tags, which were added
dynamically:

<script
src="/WebResource.axd?d=Xdr-RukB2950SXJ9i71PzQ2&amp;t=633020304580493760"
type="text/javascript"></script>
<script
src="/WebResource.axd?d=hWBdjOECZgN_k_F7YoeIbx_uLIw-vrcNg3LJ3ReggFo1&amp;t=633020304580493760"
type="text/javascript"></script>
<script
src="/ScriptResource.axd?d=u5ZmT0t1N9GdJVAywVbZRG18UrHgz yUqVR1kN1XjmvbDYSWj2ME-VLVqrjhyDloC0&amp;t=633162383981348248"
type="text/javascript"></script>
<script
src="/ScriptResource.axd?d=jK6xX1_WrynclrYFeEwXRWE23Jqa0 AFZkuAEsobfS2P7L9YVHmOcWlSD8vjBiOwMy9Vgk-2qDSltTpCfzOJkxw2&amp;t=633162373890373255"
type="text/javascript"></script>
<script
src="/ScriptResource.axd?d=jK6xX1_WrynclrYFeEwXRWE23Jqa0 AFZkuAEsobfS2OA_l9piwXaCwsvzLh20j1El5wNsGyO4SyyVf7 a8JcgkQ2&amp;t=633162373890373255"
type="text/javascript"></script>
<script
src="/ScriptResource.axd?d=jK6xX1_WrynclrYFeEwXRWE23Jqa0 AFZkuAEsobfS2O1N483k9TnkyAkKQWS8mmaZc06JdbdpYo6ICg fsEgOyA2&amp;t=633162373890373255"
type="text/javascript"></script>
<script
src="/ScriptResource.axd?d=jK6xX1_WrynclrYFeEwXRWE23Jqa0 AFZkuAEsobfS2O2kjkj94yAoGi2S58QcbxfxlP890rBV9zbcPN I4DQ87XIFsDOfGXqHCzK5G344D7Q1&amp;t=63316237389037 3255"
type="text/javascript"></script>
<script
src="/ScriptResource.axd?d=jK6xX1_WrynclrYFeEwXRWE23Jqa0 AFZkuAEsobfS2PUwNRPYjgrAcy6lFlMa58pQ6l_av8iYECPUqF jziFETMxmFTIilbQnwnGmZ_d6lxOQglFhr3d2lAZhJhbrzElI0 &amp;t=633162373890373255"
type="text/javascript"></script>
<script
src="/ScriptResource.axd?d=jK6xX1_WrynclrYFeEwXRWE23Jqa0 AFZkuAEsobfS2MvnE-ACyj_ATIe2q6MHi6VDEV7JnSIEE2JzewMQM6f4fB40B5anjmL3 n1vOvbuU7c1&amp;t=633162373890373255"
type="text/javascript"></script>
Because the page gives a script error saying 'Sys' is undefined, 'Sys' is
declared in the Microsoft AJAX Library, and the line number in the error
uses 'Sys', I am pretty sure my problem has something to do with the
Microsoft AJAX Library. Could anybody help me figure out what I need to
do to make the AJAX work on my webhost? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/


Jun 2 '07 #3

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

Similar topics

2
by: needin4mation | last post by:
Hi, I am interested in use AJAX, Javascript, .NET, etc. to retrieve information from a "real" database, not an XML file. I am trying to find out if that is a legitimate approach. All of the...
8
by: DartmanX | last post by:
Hi, Looking for recommendations for a decent API for AJAX work. I need it to be somewhat documented so I can figure out how to actually use it. My most critical need right now is clean code...
0
by: melledge | last post by:
Ajax Developers' Day added to XTech 2006 agenda XTech 2006 - 17-19 May - Hotel Grand Krasnopolsky - Amsterdam, The Netherlands
31
by: Tony | last post by:
I just noticed that prototype.js is one of the files in the Ajax.NET distribution - I'm pretty concerned about this. Does anyone know if this is the same "prototype.js" that is not well-liked...
4
by: Nathan Sokalski | last post by:
I am a beginner with AJAX, and have managed to learn how to use it when passing single parameters, but I want to return more than one value to the client-side JavaScript function that displays it....
3
by: NetWave | last post by:
Hi, For my next project I'm going to need Ajax, so I'm in about to read some books on ASP.NET Ajax. While reading Rick Strahl's blog I stumbled upon jQuery. I've been to the website and seen...
2
by: Shao | last post by:
Dear All, I am looking for a nitty-gritty Python Ajax script to fire off a number of processing programmes, periodically checking their operations, sending messages back to an HTML div form by...
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...
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.