I have discovered that the prompt box in IE does not resize itself so
the following bookmarklet should be used instead:
javascript:(function(){function chooseFrame(){if(top.length<1)
{createScript(window);injectFBLite(top);}else{var i,f,links=
[];f=window.open
("","framePrompt","status=0,menubar=0,resizable=0,width=400,height=200,scrollbars=1,addressbar=0,toolbar=0,location=0,directories=0,dialog=0");for
(i=0;i<top.length;i++){links[i]=f.document.createElement('a');links
[i].href="javascript:void(0);";links[i].setAttribute
("onclick","injectFBLite(opener.frames["+i+"]);return false;");links
[i].innerHTML=(frames[i].document.title.length>0?frames
[i].document.title:unescape(frames
[i].location.href));};f.document.body.appendChild
(f.document.createTextNode("Firebug Lite has detected frames on this
page."));f.document.body.appendChild(f.document.createElement
('br'));f.document.body.appendChild(f.document.createElement
('br'));f.document.body.appendChild(f.document.createTextNode("Which
frame would you like to examine?"));f.document.body.appendChild
(f.document.createElement('br'));f.document.body.appendChild
(f.document.createElement('br'));for(i=0;i<links.length;i++)
{f.document.body.appendChild(links[i]);f.document.body.appendChild
(f.document.createElement('br'));}
f.document.body.innerHTML=f.document.body.innerHTML;createScript(f);}}
function createScript(container){var
el;el=container.document.createElement('script');el.text='function
injectFBLite(win) {'+'  if(win.document){'+'
win.firebug=win.document.createElement(\'script\');'+'
win.firebug.setAttribute(\'src\',\'http://fbug.googlecode.com/svn/
trunk/lite/1.2/firebug-lite.js\');'+'    win.document.body.appendChild
(win.firebug);'+'    initFirebug(win);'+'  } else {'+'    setTimeout
(function(){injectFBLite(win)},100);'+'  }'+'}'+'function initFirebug
(win) {'+'  if(win.firebug.version){'+'    win.firebug.init();'+'  }
else {'+'    setTimeout(function(){initFirebug(win)},
100);'+'  }'+'}';container.document.getElementsByTagName("head")
[0].appendChild(el);}chooseFrame();})();

On Mar 4, 8:51 pm, Mike Ratcliffe <[email protected]> wrote:
> The following bookmarklet works with framesets and normal pages. It
> will run the latest dev version on whichever page you run it on.
>
> javascript:(function(){var url='http://fbug.googlecode.com/svn/trunk/
> lite/1.2/firebug-lite.js';function chooseFrame(){if(top.length<1)
> {injectFBLite(top);}else{var i,f,s='Choose your frame:\n\n';for
> (i=0;i<top.length;i++){s+=' '+(i+1)+'. '+(frames
> [i].document.title.length>0?frames[i].document.title:unescape(frames
> [i].location.href))+'\n';};f=prompt(s+' \n',i);if(f!==null){if(isFinite
> (f)&&f>0&&f<=i){injectFBLite(frames[f-1]);}else{chooseFrame();}}}}
> function injectFBLite(win){if(win.document)
> {win.firebug=win.document.createElement
> ('script');win.firebug.setAttribute
> ('src',url);win.document.body.appendChild(win.firebug);initFirebug
> (win);}else{setTimeout(function(){injectFBLite(win)},100);}}function
> initFirebug(win){if(win.firebug.version){win.firebug.init();}else
> {setTimeout(function(){initFirebug(win)},100);}}chooseFrame();})();
>
> On Mar 4, 8:22 pm, Mike Ratcliffe <[email protected]> wrote:
>
> > Hi
>
> > The Lite version is only used for *viewing* stylesheets, DOM, HTML
> > etc. ... this is mostly due to differences in how things work in
> > different browsers. There is a repo where you can get the dev
> > version ... in fact I have corrected the repo mimetypes so that the
> > dev version can be ran as a bookmarklet directly from the repository.
>
> > A couple of new features I have added recently are a settings dialog
> > and domain cookie storage. I know that there are sometimes issues with
> > inspection, particularly between frames, and I will take a look at it
> > when current issues have been fixed ... I have to say that I have not
> > come accross the CSS issue before though.
>
> > The bookmarklet does not work with Framesets but I will post a
> > Frameset compatable currently fixing that.
>
> > If you find bugs you can report them 
> > at:http://code.google.com/p/fbug/issues/entry
> > Just be sure to mention Firebug Lite in the subject.
>
> > The repo where you can get the latest version 
> > is:http://code.google.com/p/fbug/source/browse/#svn/trunk/lite/1.2
>
> > As soon as I have finished updating the frameset compatable
> > bookmarklet I will post it here.
>
> > -Mike Ratcliffe
>
> > On Mar 4, 5:23 pm, mpickell <[email protected]> wrote:
>
> > > I am having some issues with Firebug Lite and I am wondering if anyone
> > > else is seeing the same issue.
>
> > > I just started using it, and it seems to look different in a couple of
> > > different browsers.  I also cannot edit CSS, and I can't "inspect"
> > > smaller elements on the page (for example, an input box inside a
> > > fieldset: I can select the fieldset, but then have to navigate to the
> > > input box separately).  The space on the right-hand side, where the
> > > CSS appears in the FF Firebug version, is just blank.  So I can't edit
> > > CSS and run it.
>
> > > I am adding it to the page using the instructions on the download
> > > page, but it doesn't seem to be working right.  Maybe it is just an
> > > early version of the software?  Is there a repository where I can get
> > > the bleeding-edge development version?
>
>
--~--~---------~--~----~------------~-------~--~----~
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