Join them; it only takes a minute: Sign up jQuery and AJAX not working after deployed to server up vote 3 down vote favorite 1 I have a project that works All rights reserved.
And actually, I'm a bit incorrect in the sample above. "Home" should not be in there. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar. Sign in using Search within: Articles Quick Answers Messages Use my saved content filters home articles Chapters and Sections> Search Latest Articles Latest Tips/Tricks Top Articles Beginner Articles Technical Blogs Posting/Update Posted 2-May-11 23:28pm prot0col1.5K Updated 2-May-11 23:32pm v2 Add a Solution Comments prot0col 3-May-11 4:30am I will try this too : http://forums.asp.net/t/1497451.aspx/1/10 my last hope :( Ankit Rajput 3-May-11 http://stackoverflow.com/questions/16045078/jquery-and-ajax-not-working-after-deployed-to-server
Please verify your application is deployed in root of domain or under any virtual directory. Callum Gray commented on 1/22/2013 6:46:21 AM Ajax toolkit contain timer,updatepannel,Scriptmanager etc.When we use ajax tools in the asp.net application,first add the scriptmanager in the page otherwise tools are not working Here is the ajax post: View: var theUrl = "/Widgets/TestBin2AutomationResults/" + widgetImpressionId + "/" + retailerProductId + "/" + quantity; alert("widgetImpressionId" + widgetImpressionId); alert("retailerProductId" + retailerProductId); alert("quantity" + quantity); alert(theUrl); $("#imgaddtocart").hide();
If you get past that initial issue, then still you could have problems with the Ajax-related actions/events, i.e. Jquery Ajax Not Working After Deployment So thanks for the tip! Are you sure your routes are set up to handle the request at this URL? 0 Message Author Comment by:flynny2015-02-05 Comment Utility Permalink(# a40591284) and my post method in my http://stackoverflow.com/questions/32622585/ajax-function-working-when-running-locally-but-when-deployed-in-iis-it-is-not-wo Show all comments Leave a Comment You must log in or register to leave comments ID: Q455985 Created On: 01.08.2013 Modified On: 01.09.2013 Build: v2012 vol 2.4 / 4-Dec-2012 Operating System:
My final code looks like this: