AJAX doesn't work, Why?
-
I have no idea what you're talking about. The key portion of AJAX is the
XmlHttpRequest
object, which is built-in in modern browsers (Firefox, Opera, IE7) and implemented as part of the MSXML COM package for IE6 and previous. If you're using IE6 and the MSXML installation is screwed up, it'll never work or always work (unless you're doing something really bizarre with progIds). Keep in mind, for security reasons XmlHttpRequest will be prevented from loading URLs that are on a different host from that which the page was loaded from - so if you're switching up hosts (you are) and have a hard-coded host in the URL passed to XmlHttpRequest (do you?), then it'll break when the hard-coded host doesn't match the host you're loading from. So check that first.----
...the wind blows over it and it is gone, and its place remembers it no more...
Too many people think that AJAX was invented by Microsoft with the ASP.NET AJAX libary.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Too many people think that AJAX was invented by Microsoft with the ASP.NET AJAX libary.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Yeah, i'm starting to suspect that's what's going on here. :rolleyes: :sigh:
----
...the wind blows over it and it is gone, and its place remembers it no more...
Hi, I actually created a very simple test.aspx for me to test if Ajax is working fine, but still no luck. Please see my sample test.aspx that uses updatepanel <%@ Page Language="VB" AutoEventWireup="false" CodeFile="test.aspx.vb" Inherits="test" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> Untitled Page
hifiger2004
-
Yeah, i'm starting to suspect that's what's going on here. :rolleyes: :sigh:
----
...the wind blows over it and it is gone, and its place remembers it no more...
I already reinstalled the AJAX extensions 1.0 but still no luck. It works fine when running in my local machine, but when deploying it in the server the ajax seems not working well. What do you think should I do man? :)
hifiger2004
-
I already reinstalled the AJAX extensions 1.0 but still no luck. It works fine when running in my local machine, but when deploying it in the server the ajax seems not working well. What do you think should I do man? :)
hifiger2004
hifiger2004 wrote:
when deploying it in the server the ajax seems not working well.
is your server installed with AJAX server extensions ?
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
hifiger2004 wrote:
when deploying it in the server the ajax seems not working well.
is your server installed with AJAX server extensions ?
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
Was it different from Microsoft ASP.net AJAX Extensions 1.0? Is it free and downloadable?
hifiger2004
-
hifiger2004 wrote:
when deploying it in the server the ajax seems not working well.
is your server installed with AJAX server extensions ?
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
This is the Ajax installer that I downloaded recently - ASPAJAXExtSetup.msi from this link - http://www.microsoft.com/downloads/details.aspx?familyid=ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6&displaylang=en I think it's the same AJAX you are refering to, right? hifiger2004
-
hifiger2004 wrote:
when deploying it in the server the ajax seems not working well.
is your server installed with AJAX server extensions ?
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
I've been reinstalling the ajax at the server several times but it doesn't work fine. We have to go back to the original problem. When accessing it thru the IP address the ajax will work. But when using the domain name (same IP reference), the ajax won't work. Why?
hifiger2004
-
hifiger2004 wrote:
when deploying it in the server the ajax seems not working well.
is your server installed with AJAX server extensions ?
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
Actually this is the first time that I encountered this kind of problem that the Ajax will not work. Because I have tried installing some of my projects before at the server with the same web.config, ASP.Net framework 2.0, AJAX Ext 1.0 and AJAXcontrolToolkit and all are working fine. It really confused me :)
hifiger2004
-
Yeah, i'm starting to suspect that's what's going on here. :rolleyes: :sigh:
----
...the wind blows over it and it is gone, and its place remembers it no more...
Hi Guys, You know, I won't believe it, I solved it. And the solution is not difficult as what we think. I just renamed the folder and overwrite the web.config and then I renamed back the folder and it works fine now. Sometimes things are happening really strange :) Thank you for the time guys
hifiger2004
-
Hi Guys, You know, I won't believe it, I solved it. And the solution is not difficult as what we think. I just renamed the folder and overwrite the web.config and then I renamed back the folder and it works fine now. Sometimes things are happening really strange :) Thank you for the time guys
hifiger2004
One thing you didn't seem to notice. You're saying AJAX when you mean the ASP.NET AJAX extensions. I guarentee to you that AJAX was working fine the entire time.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Hi Guys, You know, I won't believe it, I solved it. And the solution is not difficult as what we think. I just renamed the folder and overwrite the web.config and then I renamed back the folder and it works fine now. Sometimes things are happening really strange :) Thank you for the time guys
hifiger2004
You mean you renamed the root folder of the application? Why did you have to overwrite the web.config. Did you rename it after deploying? And then renamed it back again? So What should be taken care to avoid the problem that occured?
-
You mean you renamed the root folder of the application? Why did you have to overwrite the web.config. Did you rename it after deploying? And then renamed it back again? So What should be taken care to avoid the problem that occured?
honestly, I really don't know if what trigger it to work properly now. I was just trying ovewriting the system.web.extensions.dll, foldername, and the web.config. I renamed the folder where my asp.net pages are located. My feeling is that it just like being refresh everything. Because before I did the renaming of folders and overwriting of dlls and web.config it's really not working, even to a very simple test.aspx with scriptmanager and updatepanel. And now it's working fine after doing those trials. Really funny and confusing, because I never changes anything inside my pages source codes as well as the web.config and asp.net dlls. :)
hifiger2004
-
Hi Guys, I have a problem regarding AJAX. when Im accessing the site using an IP something like this http://209.162.184.101/page.aspx the Ajax here works well, the page won't refresh. But when I use something with domain for example http://something.ph/page.aspx the Ajax here doesn't work, the page will refresh. What should I need to do in order to work properly? Thanks
hifiger2004
Are you monitoring with an http monitor to see what the ajax requests look like. Something like http watch or fiddler work well