I'm also getting this problem.
It's happening in the ASP.NET AJAX libraries, in particular when
working with Silverlight 2 beta 2.
Because I'm performing a partial-page postback and a Silverlight
control is being added to the page dynamically at that point, the
Silverlight.js files must be getting loaded using the same dynamic JS
linkage you describe. This is a feature of ASP.NET AJAX allowing
scripts to be automatically loaded when required. At this point I see
the error and the Silverlight object completely fails to load.
FCKeditor is failing in the same fashion.
Obviously both are fine if they appear on the page when it's first
loaded - but this isn't always the case.
Seems to be a pretty serious problem affecting a variety of JS
libraries.
Pete Hurst
On Aug 30, 6:32 am, scheurbert <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm trying to do some tricky schtick with JS, in particular I'm
> loading up a bunch of 'remote' JS files within a JS file.
>
> I'm using jQuery ('cos it's pretty damn cool) and in the 'remote' JS
> pages I'm loading, in the call to load them I need to initiate an
> eval( scriptcontents ) call in order to be able to initialise the JS
> code within each file. Which is fine and dandy because it seems to
> work.
>
> The problem I get is that because in my 'remote' JS files there are
> various prototype calls to enable global use of the functions within
> the other JS files, Firebug always seems to return an error message
> saying...
>
> ob.toString is not a function
> [Break on this error] undefined
>
> (plus a location of the error, which on a 37 line HTML file it says
> the error's occuring at line number count greater than that total)
>
> ... even though everything seems to be working correctly. If I comment
> out the prototype calls, the error does not display and my fancy JS
> stuff doesn't work properly (something to do with particular functions
> being defined within one file and the other JS files won't be able to
> access them -- it's a long story).
>
> Anyone know the explanation as to why the script(s) all seem to work
> fine (using Firefox 3.0.1 and Firebug 1.2.0) but this error still pops
> up in Firebug? Alternatively, if anyone knows another method to load
> and initialise remote JS files (within a JS file, not within an HTML
> document) then I'm interested in hearing how you do it!
>
> Kind regards,
>
> Scheurbert
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Firebug" 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/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---