Michael,
       Your library is a great tool for web applications, and I am
desperately trying to get it working in sharepoint.  I have seen many
posts that show varying signs of success.  But I am stuck at the last
point...


--------------------------------------------------------------------------------
         I have put my Ajax.Pro (ver 6.7.20.1) in the "C:\Program
Files\Common Files\Microsoft Shared\web server
extensions\60\Template\Layouts\Bin" directory of my sharepoint server.
This was advised by Maxim (see
http://www.dotnetblog.de/CommentView,guid,7ce85fd3-5865-484e-8438-b9976e6fe6f9.aspx)

--------------------------------------------------------------------------------
         I am able to register the class in the OnLoad event of the
webpart.  The registration code is as below :

AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxWebPartLibrary.WPProductCount),
this.Page);

--------------------------------------------------------------------------------
        My javascript goes:
function GetProductCount(mProductType)
{
        AjaxWebPartLibrary.WPProductCount.GetCountOfProducts(mProductType,
GetProductCount_Callback);
}

function GetProductCount_Callback(response)
{
        alert(response.value);
}


--------------------------------------------------------------------------------
AjaxWebPartLibrary is the namespace / Library name and WPProductCount
is the name of the webpart.  GetCountOfProducts is a function inside
the Webpart class.  The method is marked with [AjaxPro.AjaxMethod()]

When I run the site, I get the error "AjaxWebPartLibrary" undefined.
Please, can you help me ?  I would really appreciate your time and help
in this.  Thank you in advance.

For your information, the script tags generated are :

<script type="text/javascript" src="/ajaxpro/prototype.ashx"></script>
<script type="text/javascript" src="/ajaxpro/core.ashx"></script>
<script type="text/javascript" src="/ajaxpro/converter.ashx"></script>
<script type="text/javascript"
src="/ajaxpro/AjaxWebPartLibrary.WPProductCount,AjaxWebPartLibrary.ashx"></script>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info/

Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
-~----------~----~----~----~------~----~------~--~---

Reply via email to