473,574 Members | 17,993 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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-RukB2950SXJ9i71 PzQ2&amp;t=6330 20304580493760"
type="text/javascript"></script>
<script
src="/WebResource.axd ?d=hWBdjOECZgN_ k_F7YoeIbx_uLIw-vrcNg3LJ3ReggFo 1&amp;t=6330203 04580493760"
type="text/javascript"></script>
<script
src="/ScriptResource. axd?d=u5ZmT0t1N 9GdJVAywVbZRG18 UrHgzyUqVR1kN1X jmvbDYSWj2ME-VLVqrjhyDloC0&a mp;t=6331623839 81348248"
type="text/javascript"></script>
<script
src="/ScriptResource. axd?d=jK6xX1_Wr ynclrYFeEwXRWE2 3Jqa0AFZkuAEsob fS2P7L9YVHmOcWl SD8vjBiOwMy9Vgk-2qDSltTpCfzOJkx w2&amp;t=633162 373890373255"
type="text/javascript"></script>
<script
src="/ScriptResource. axd?d=jK6xX1_Wr ynclrYFeEwXRWE2 3Jqa0AFZkuAEsob fS2OA_l9piwXaCw svzLh20j1El5wNs GyO4SyyVf7a8Jcg kQ2&amp;t=63316 2373890373255"
type="text/javascript"></script>
<script
src="/ScriptResource. axd?d=jK6xX1_Wr ynclrYFeEwXRWE2 3Jqa0AFZkuAEsob fS2O1N483k9Tnky AkKQWS8mmaZc06J dbdpYo6ICgfsEgO yA2&amp;t=63316 2373890373255"
type="text/javascript"></script>
<script
src="/ScriptResource. axd?d=jK6xX1_Wr ynclrYFeEwXRWE2 3Jqa0AFZkuAEsob fS2O2kjkj94yAoG i2S58QcbxfxlP89 0rBV9zbcPNI4DQ8 7XIFsDOfGXqHCzK 5G344D7Q1&amp;t =63316237389037 3255"
type="text/javascript"></script>
<script
src="/ScriptResource. axd?d=jK6xX1_Wr ynclrYFeEwXRWE2 3Jqa0AFZkuAEsob fS2PUwNRPYjgrAc y6lFlMa58pQ6l_a v8iYECPUqFjziFE TMxmFTIilbQnwnG mZ_d6lxOQglFhr3 d2lAZhJhbrzElI0 &amp;t=63316237 3890373255"
type="text/javascript"></script>
<script
src="/ScriptResource. axd?d=jK6xX1_Wr ynclrYFeEwXRWE2 3Jqa0AFZkuAEsob fS2MvnE-ACyj_ATIe2q6MHi 6VDEV7JnSIEE2Jz ewMQM6f4fB40B5a njmL3n1vOvbuU7c 1&amp;t=6331623 73890373255"
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********@hotm ail.com
http://www.nathansokalski.com/
Jun 1 '07 #1
2 4250
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********@hot mail.comwrote in message
news:O%******** *********@TK2MS FTNGP06.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-RukB2950SXJ9i71 PzQ2&amp;t=6330 20304580493760"
type="text/javascript"></script>
<script
src="/WebResource.axd ?d=hWBdjOECZgN_ k_F7YoeIbx_uLIw-vrcNg3LJ3ReggFo 1&amp;t=6330203 04580493760"
type="text/javascript"></script>
<script
src="/ScriptResource. axd?d=u5ZmT0t1N 9GdJVAywVbZRG18 UrHgzyUqVR1kN1X jmvbDYSWj2ME-VLVqrjhyDloC0&a mp;t=6331623839 81348248"
type="text/javascript"></script>
<script
src="/ScriptResource. axd?d=jK6xX1_Wr ynclrYFeEwXRWE2 3Jqa0AFZkuAEsob fS2P7L9YVHmOcWl SD8vjBiOwMy9Vgk-2qDSltTpCfzOJkx w2&amp;t=633162 373890373255"
type="text/javascript"></script>
<script
src="/ScriptResource. axd?d=jK6xX1_Wr ynclrYFeEwXRWE2 3Jqa0AFZkuAEsob fS2OA_l9piwXaCw svzLh20j1El5wNs GyO4SyyVf7a8Jcg kQ2&amp;t=63316 2373890373255"
type="text/javascript"></script>
<script
src="/ScriptResource. axd?d=jK6xX1_Wr ynclrYFeEwXRWE2 3Jqa0AFZkuAEsob fS2O1N483k9Tnky AkKQWS8mmaZc06J dbdpYo6ICgfsEgO yA2&amp;t=63316 2373890373255"
type="text/javascript"></script>
<script
src="/ScriptResource. axd?d=jK6xX1_Wr ynclrYFeEwXRWE2 3Jqa0AFZkuAEsob fS2O2kjkj94yAoG i2S58QcbxfxlP89 0rBV9zbcPNI4DQ8 7XIFsDOfGXqHCzK 5G344D7Q1&amp;t =63316237389037 3255"
type="text/javascript"></script>
<script
src="/ScriptResource. axd?d=jK6xX1_Wr ynclrYFeEwXRWE2 3Jqa0AFZkuAEsob fS2PUwNRPYjgrAc y6lFlMa58pQ6l_a v8iYECPUqFjziFE TMxmFTIilbQnwnG mZ_d6lxOQglFhr3 d2lAZhJhbrzElI0 &amp;t=63316237 3890373255"
type="text/javascript"></script>
<script
src="/ScriptResource. axd?d=jK6xX1_Wr ynclrYFeEwXRWE2 3Jqa0AFZkuAEsob fS2MvnE-ACyj_ATIe2q6MHi 6VDEV7JnSIEE2Jz ewMQM6f4fB40B5a njmL3n1vOvbuU7c 1&amp;t=6331623 73890373255"
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********@hotm ail.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********@hotm ail.com
http://www.nathansokalski.com/

"Cowboy (Gregory A. Beamer)" <No************ @comcast.netNoS pamMwrote in
message news:Ot******** ******@TK2MSFTN GP06.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********@hot mail.comwrote in message
news:O%******** *********@TK2MS FTNGP06.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
instruction s 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-RukB2950SXJ9i71 PzQ2&amp;t=6330 20304580493760"
type="text/javascript"></script>
<script
src="/WebResource.axd ?d=hWBdjOECZgN_ k_F7YoeIbx_uLIw-vrcNg3LJ3ReggFo 1&amp;t=6330203 04580493760"
type="text/javascript"></script>
<script
src="/ScriptResource. axd?d=u5ZmT0t1N 9GdJVAywVbZRG18 UrHgzyUqVR1kN1X jmvbDYSWj2ME-VLVqrjhyDloC0&a mp;t=6331623839 81348248"
type="text/javascript"></script>
<script
src="/ScriptResource. axd?d=jK6xX1_Wr ynclrYFeEwXRWE2 3Jqa0AFZkuAEsob fS2P7L9YVHmOcWl SD8vjBiOwMy9Vgk-2qDSltTpCfzOJkx w2&amp;t=633162 373890373255"
type="text/javascript"></script>
<script
src="/ScriptResource. axd?d=jK6xX1_Wr ynclrYFeEwXRWE2 3Jqa0AFZkuAEsob fS2OA_l9piwXaCw svzLh20j1El5wNs GyO4SyyVf7a8Jcg kQ2&amp;t=63316 2373890373255"
type="text/javascript"></script>
<script
src="/ScriptResource. axd?d=jK6xX1_Wr ynclrYFeEwXRWE2 3Jqa0AFZkuAEsob fS2O1N483k9Tnky AkKQWS8mmaZc06J dbdpYo6ICgfsEgO yA2&amp;t=63316 2373890373255"
type="text/javascript"></script>
<script
src="/ScriptResource. axd?d=jK6xX1_Wr ynclrYFeEwXRWE2 3Jqa0AFZkuAEsob fS2O2kjkj94yAoG i2S58QcbxfxlP89 0rBV9zbcPNI4DQ8 7XIFsDOfGXqHCzK 5G344D7Q1&amp;t =63316237389037 3255"
type="text/javascript"></script>
<script
src="/ScriptResource. axd?d=jK6xX1_Wr ynclrYFeEwXRWE2 3Jqa0AFZkuAEsob fS2PUwNRPYjgrAc y6lFlMa58pQ6l_a v8iYECPUqFjziFE TMxmFTIilbQnwnG mZ_d6lxOQglFhr3 d2lAZhJhbrzElI0 &amp;t=63316237 3890373255"
type="text/javascript"></script>
<script
src="/ScriptResource. axd?d=jK6xX1_Wr ynclrYFeEwXRWE2 3Jqa0AFZkuAEsob fS2MvnE-ACyj_ATIe2q6MHi 6VDEV7JnSIEE2Jz ewMQM6f4fB40B5a njmL3n1vOvbuU7c 1&amp;t=6331623 73890373255"
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********@hotm ail.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
1217
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 examples I have seen use AJAX to get the data from a XML file using XSL. Or do I use regular ASP.NET and ADO.NET to retrieve data and send it back...
8
2064
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 for a "triple" chained selector (state->county->city). Jason
0
1833
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
3102
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 around here? If so, do you know if Ajax.NET can be used without prototype.js? -- "The most convoluted explanation that fits all of the made-up...
4
3829
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. My client-side JavaScript function takes 4 parameters (which are expected to be integers). The idea of passing a single parameter and parsing it on...
3
2397
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 some examples, and it sure looks promising. However, I'm not sure how it relates to ASP.NET Ajax. Do they complement each other? Or are they...
2
1980
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 sending back the links of generated data files, to be downloaded by end users. I am using .NET IIS 6.0 and Windows Server. Regards.
0
8081
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8258
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7835
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5325
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3759
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3777
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2255
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1360
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1084
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.