Hi,

I did not had time enough to have a look on the code, but I can
remember that internal classes are not working, yet. So, put the __r
class in a separate .CS file and it will work with the current
releases.

Regards,
Michael




On 4/8/06, q_machine <[EMAIL PROTECTED]> wrote:
>
> Hello people
>
> I have been recently discovered some type of bug in firefox
>
> here is my test code
>
> <html >
> <head runat="server">
>    <title>Untitled Page</title>
> </head>
> <body>
>    <form id="form1" runat="server">
>    <div>
>                <u onmouseover="javascript:test1();">Hello Firefox</u>
>    </div>
>    <script type="text/javascript">
>    function test1()
>    {
>                Test.simpleAjax(sa_cb);
>    }
>    function sa_cb(r)
>    {
>                alert(r.value);
>
>    }
>    </script>
>    </form>
> </body>
> </html>
>
> and codebehind file:
>
> public partial class Test : System.Web.UI.Page
> {
>        public class __r { public int p_in_c = 0; public string c = ""; public
> __r( int _p, string _c ) { p_in_c = _p; c = _c; } }
>
>    protected void Page_Load(object sender, EventArgs e)
>    {
>                Utility.RegisterTypeForAjax( typeof( Test ) );
>    }
>
>        [AjaxMethod]
>        public string simpleAjax()
>        {
>                return "Hello";
>        }
> }
>
> the above code work fine in firefox, but if i replace simpleAjax Method
> with the following one
>
> public __r simpleAjax()
> {
>        return new __r(4, "Hello");
> }
>
> and sa_cb function with the following one
>
> function sa_cb(r)
> {
>    alert(r.value.c);
>    alert(r.value.p_in_c);
> }
>
> and hover the cursor on "<u> element" than firefox is generating the
> following error instantly
>
> Error: [Exception... "Component returned failure code: 0x80040111
> (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]"  nsresult:
> "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame ::
> http://localhost:1358/OkuyanAdam/ajaxpro/core.ashx :: anonymous :: line
> 238"  data: no]
> Source File: http://localhost:1358/abcxyz/ajaxpro/core.ashx
> Line: 238
>
> any work around on this?
>
>
> >
>


--
Kind regards,
Michael Schwarz

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://www.schwarz-interactive.de/
mailto:[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
-~----------~----~----~----~------~----~------~--~---

Reply via email to