Ok, thanks. I was hoping to avoid messing around with extensions but
it looks like the kind of access I need to the net panel requires
writing one. Thanks for the link.

On Dec 12, 9:50 pm, John J Barton <[email protected]> wrote:
> On Dec 12, 9:39 pm, orbiter <[email protected]> wrote:
>
>
>
>
>
>
>
>
>
> > The script is running completely from the firebug console and I don't
> > have access to whatever javascript is on the page other than what the
> > console gives me. I don't know the names of the functions that perform
> > AJAX operations because everything is minified and pretty obfuscated.
> > Basically I need to automate some operations and the best way I have
> > found is to use the firebug console to traverse the dom and perform
> > whatever operation I need like clicking or filling in forms. It works
> > fine most of the time but in certain cases I need to know if there is
> > an AJAX request in progress because the page I'm working with only
> > allows a single AJAX request at a time so rapid firing click events
> > doesn't work. So far I've been working around the issue by setting up
> > timers but this is inefficient because when network congestion is low
> > the requests usually take around 300ms and my default timer value is
> > 3s which is really the worst case scenario and is overkill. If I can
> > access the information in the net panel then it will be pretty easy to
> > simplify the script because I'll be able to fire request back to back
> > without have to wait very long.
>
> > I've installed the livecoder extension for firebug and after some
> > poking around I can see that the net panel keeps track of all the
> > information I need but I can't access the information from the
> > console.
>
> Yes, that is correct. The command line functions run in the web page,
> they have no access to Firebug information. The console functions are
> injected into the page by Firebug so you can write back into the
> Console panel. But the write access is limited to strings and you
> can't read information from Firebug.
>
> You can do all you want from a Firebug extension, 
> seehttp://getfirebug.com/wiki/index.php/Firebug_Internals
>
> jjb
>
>
>
>
>
>
>
>
>
> > On Dec 12, 9:29 pm, John J Barton <[email protected]> wrote:
>
> > > On Dec 12, 3:19 pm, orbiter <[email protected]> wrote:
>
> > > > I really like the firebug console and the javascript scripting that is
> > > > possible with it but lately I'm running into some limitations with how
> > > > each panel operates. I have a script that needs to be aware of XHR
> > > > timing but I haven't figured out how to access this information from
> > > > the javascript console. So is there a way to hook into the Net panel
> > > > from the Console panel in order to collect timing information
> > > > programatically? Basically my script needs to do certain things based
> > > > on whether there is a request in progress or not but I don't know how
> > > > to monitor ongoing Ajax requests.
>
> > > If you are running in a page, then I guess you want the XMLHttpRequest
> > > API:http://www.w3.org/TR/XMLHttpRequest/
>
> > > If you are running in  Firebug extension, then I'd have a different
> > > answer, just describe what you are trying to do some more.
>
> > > jjb

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