Hi,
I recently experienced the obstinate 'ob.toString' error while parsing
dynamically-generated external xhtml11 pages into Firebug 3.0.1 using
mootools on Vista..
One page loaded perfectly - but it's almost-identical twin, although
loading fully, produced the error.
Pasting the entire 'bad' page code into the 'good' page, and
commenting it all out STILL produced the error..
..and eventually removing the last fragment below removed the bug...
<!--head>
<link title="style" rel="stylesheet" type="text/css" href="style.css"
media="screen" />
<script type="text/javascript" src="some.js" charset="utf-8">
<script type="text/javascript" src="another.js" charset="utf-8"></
script>
<title>etc</title>
</head-->
..and replacing the missing '</script>' tag also solved the problem
EVEN THOUGH THE CODE IS COMMENTED OUT! Deeply weird...
Rich
On Sep 9, 6:01 pm, serializer <[EMAIL PROTECTED]> wrote:
> Now unable to reproduce. Also there was a bug in my Javascript which
> was stopping the control working (this was displayed as an additional
> error. I thought it was because the script wasn't being loaded. In
> fact it was an unrelated error.)
>
> Will post further if I see it again.
>
> Pete
>
> On Sep 9, 5:17 pm, John J Barton <[EMAIL PROTECTED]> wrote:
>
> > Please post an example of the code that gives the message. From what
> > you say, it sounds like you are reading JS code via AJAX and eval() to
> > compile it. That works all of the time. What is "ob"? What file does
> > it error point to?
>
> > On Aug 29, 10:32 pm, 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
-~----------~----~----~----~------~----~------~--~---