[Mono-list] ASP .NET AJAX Framework

Jens Wurster jw at zaubercenter.de
Wed Aug 1 12:11:20 EDT 2007


Hello,

I found the reason for the JavaScript error (see my last mail). 

This is a short piece of the JavaScript file where the error is located. IE
and Opera don't like
the comma at the end of line 9. I am not sure if mono add this sort of code
to the JavaScript file.

Maybe there is a bug in a ScriptHandler- Manager or something else.  

1
AjaxControlToolkit.ControlBase.registerClass("AjaxControlToolkit.ControlBase
", Sys.UI.Control);
2 AjaxControlToolkit.Resources={
3 "Common_InvalidPaddingUnit":"A unit type of \"{0}\" is invalid for
parsePadding",
4 .
5 .
6 .
7 "ExtenderBase_CannotSetClientStateField":"clientStateField can only be set
before initialization",
8
"Animation_UknownAnimationName":"AjaxControlToolkit.Animation.createAnimatio
n could not find an Animation  
  corresponding to the name \"{0}\"",
9 "ExtenderBase_ControlNotRegisteredForCallbacks":"This Control has not been
registered for callbacks",
10 };

Sorry, if this is now the wrong mailing list. =)

Regards
Jens

----------------------------------------------------------------------------
--

Hello,

thanks for this update Miguel. 

I have compiled the assembly successful. The first error does
not occur anymore. I think it was my fault, because I was wondering
that this assembly was not compiled, so I used the assembly 
delivered by Microsoft. 

Now I have another problem. I am using the "AJAX Control Toolkit" to
check if everything working fine. I know that this toolkit is not
part of the mono project.

Firefox displays all correct, but other browsers like IE and Opera
put JavaScript errors.

Here is the output of the Opera error console: 
 
JavaScript - http://192.168.0.4/
Inline script compilation
Syntax error while loading: line 233 of linked script at
http://192.168.0.4/ScriptResource.axd?a=AjaxControlToolkit%2c+Version%3d1.0.
10618.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e;r=AjaxCont
rolToolkit.ExtenderBase.BaseScripts.js;t=633195602000000000;n=t : 
};

JavaScript - http://192.168.0.4/
Timeout thread: delay 0 ms
Error:
name: TypeError
message: Statement on line 5: Type mismatch (usually a non-object value used
where an object is required)
Backtrace:

  Line 5 of linked script
http://192.168.0.4/ScriptResource.axd?a=System.Web.Extensions%2c+Version%3d1
.0.61025.0%2c+Culture%3dneutral;r=MicrosoftAjax.js;t=633195601990000000;n=f
    var a = g ? new h(g) : new h(), b = Sys.Application, i =
b.get_isCreatingComponents();
a.beginUpdate();
if (f)
    if (d)
    b._createdComponents[b._createdComponents.length] = a;
if (a.get_id())
    if (i)
    else
    return a;

  Line 5 of inline#5 script in http://192.168.0.4/
    $create(AjaxControlToolkit.AccordionBehavior, {ClientStateFieldID :
"Accordion1_AccordionExtender_ClientState", id :
"Accordion1_AccordionExtender"}, null, null, $get("Accordion1"));

  Line 5 of linked script
http://192.168.0.4/ScriptResource.axd?a=System.Web.Extensions%2c+Version%3d1
.0.61025.0%2c+Culture%3dneutral;r=MicrosoftAjax.js;t=633195601990000000;n=f
    for (var b = 0, e = a.length;b < e;b++)

      Line 5 of linked script
http://192.168.0.4/ScriptResource.axd?a=System.Web.Extensions%2c+Version%3d1
.0.61025.0%2c+Culture%3dneutral;r=MicrosoftAjax.js;t=633195601990000000;n=f
    Sys._Application.callBaseMethod(this, "initialize");
var a = this.get_events().getHandler("init");
if (a)
    this.raiseLoad();
this._initializing = false;

  Line 5 of linked script
http://192.168.0.4/ScriptResource.axd?a=System.Web.Extensions%2c+Version%3d1
.0.61025.0%2c+Culture%3dneutral;r=MicrosoftAjax.js;t=633195601990000000;n=f
    return b.apply(a, arguments);
  At unknown location
    [statement source code not available]

Regards
Jens

_______________________________________________
Mono-list maillist  -  Mono-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list



More information about the Mono-list mailing list