Asked by:
Callback function doesn't work

Question
-
User-1613562757 posted
Hi,
I use AjaxPro in my code.
It worked fine ,until I installed Windows 7 on my computer .
I don't know if there is a connection(I didn't change code), but callback function stopped working.
function renderRecentlyViewedProducts(){
Test.GetRecentlyViewedProducts(renderRecentlyViewedProducts_callback);
}
function renderRecentlyViewedProducts_callback(res){
if(res.value!=null)
{
document.getElementById("divRecentlyViewedProducts").innerHTML =res.value;
}
}
What could be reason for it?Sunday, July 4, 2010 9:15 AM
All replies
-
User297557456 posted
if you were using Windows XP with IIS 5x or any other OS earlier the VISTA with IIS 5x to 6x, this is a generic problem with IhttpHandler mappings.
as you are using IIS7 now it requires additional handler mapping in web.config under system.webserver tag. just add your handler mapping tags for AjaxPro component (you can find it under handler tag in webconfig) to system.webserver tag with an additional attribute in all <add> tags namely "name". name can be anything that you want the mapping to be named as.
http://msdn.microsoft.com/en-us/library/bb763179.aspx
see this for your reference.
Monday, July 5, 2010 5:07 PM -
User-1613562757 posted
Hi,
I added to system.webserver tag with an additional attribute.But still it does not really work.
Sometimes it works and sometimes not so. :(
Tuesday, July 6, 2010 3:32 AM -
User297557456 posted
make sure you are using verb attribute as verb="*" in all <add> tags
Tuesday, July 6, 2010 4:27 AM -
User-1613562757 posted
I'm using:
<system.webServer>
<handlers>
<add name="AjaxHandler" verb="*" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro.2" preCondition="integratedMode"/>
</handlers>
</system.webServer>Thanks
Tuesday, July 6, 2010 5:02 AM -
User297557456 posted
try removing the preCondition attribute.
Tuesday, July 6, 2010 2:07 PM