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
-~----------~----~----~----~------~----~------~--~---

Reply via email to