hello,
I just tried adapting your example at
http://weblogs.asp.net/mschwarz/archive/2006/10/06/Yahoo_2100_-JavaScript-Library-and-AjaxPro.aspx
to work with dojo but was unable to.
Your blog mentions that the functionality required is only available in
the latest beta. Where may I obtain that from? Also, your example has
the line
var connectionObject = YAHOO.util.Connect.asyncRequest("POST",
"ajaxpro/_Default,App_Code.ashx", callback, args.toJSONString());
is "ajaxpro/_Default,App_Code.ashx", the url to post to? If so, can
you explain the syntax so that I can appropriatly map to my .cs/ashx
file?
troy
On Oct 10, 4:25 pm, "Michael Schwarz" <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> if you don't call RegisterTypeForAjax then you will not get any
> JavaScript files. If you want to use dojo or Yahoo! libs you can make
> an XmlHttpRequest to the same path and adding the method name as an
> header value. Ther is an example on my blog using Yahoo!.
>
> Michael
>
> On 10/10/06, tforster <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Hello all,
>
> > I have been surfing, googling, coding and researching to no avail and I
> > am beginning to wonder if I am misunderstanding webservices in general.
>
> > My current applications use .NET 2.0/C#/SQL etc on the back-end and
> > pure HTML/CSS/JavaScript and Dojo on the front end. For numerous
> > reasons our .aspx pages no longer use any of the server-side controls
> > including such things as <head runat="server"> etc.
>
> > I want to use the dojo.bind functionality against some sort of web
> > method and return JSON results. Currently I am simulating this by
> > creating certain aspx pages that take a querystring variable that is
> > processed through a lengthy case statement to ultimatly call the
> > correct function. This seems klunky plus it results in two files (e.g.
> > aspx and aspx.cs) where the .aspx file is completely empty and
> > redundant.
>
> > I would like to put all of my functionality into a .cs file only,
> > decorate the various functions with some sort of [WebMethod] or
> > [AjaxPro.AjaxMethod] and then call a .asmx or .ashx from my client.
>
> > So far, it seems that in order to do this with either Atlas or AjaxPro
> > I have also include a number of additional javascript files in my
> > client. Is there any other way of calling an AjaxPro AjaxMethod? I am
> > concerned that these auto-generated javascripts may at some point
> > collide with other client-side code, may be injected into the wrong
> > part of my page and may not work well with dojo. Also, we are looking
> > at exposing more of our application via aa web based api and there
> > would be no easy way for others to include these same auto generated
> > javascript files.
>
> > Sorry for the lengthy description. If someone could point me in the
> > right direction I would be very grateful. Incidentally, I am currently
> > using the stand-along JSON serializer DLL in my hacked
> > .aspx-case-statement approach.--
> Best regards | Schöne Grüße
> Michael
>
> Microsoft MVP - Most Valuable Professional
> Microsoft MCAD - Certified Application Developer
>
> http://weblogs.asp.net/mschwarz/http://www.schwarz-interactive.de/
>
> Skype: callto:schwarz-interactive
> MSN IM: [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
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/
The open source project is now located at
http://www.codeplex.com/Wiki/View.aspx?ProjectName=AjaxPro
-~----------~----~----~----~------~----~------~--~---