Please help, where is this file? /html/body/div/div[2]/div/div/div/div/div[2]/div[2]

4,217 views
Skip to first unread message

tzic

unread,
Feb 14, 2012, 4:48:17 AM2/14/12
to Firebug
Hi, I am inspecting a page of a joomla site. Using firebug I make all
the changes I want to the html, everything works fine, but the changes
are not permanent. So I have to find the appropriate file, edit it and
upload it to the server.

How is it possible to find out through firebug where this file is
located? If I copy XPath I get something like this: /html/body/div/
div[2]/div/div/div/div/div[2]/div[2]

Is there a way to locate the html file that I made the changes to?

Best regards

Nakul Dhenge

unread,
Feb 14, 2012, 6:41:19 AM2/14/12
to fir...@googlegroups.com
Hi Tzic,

  It's a very simple. On your firebug menu bar there is HTML drop down menu, when you click on this you will see "Show Comments" just select this. this will show you comments and file location.

Thanks,

Nakul Dhenge.



--
You received this message because you are subscribed to the Google
Groups "Firebug" group.
To post to this group, send email to fir...@googlegroups.com
To unsubscribe from this group, send email to
firebug+u...@googlegroups.com
For more options, visit this group at
https://groups.google.com/forum/#!forum/firebug

tzic

unread,
Feb 14, 2012, 7:06:00 AM2/14/12
to Firebug
I have checked "Show Comments" but I still cant figure out the
location of the file. Can you please take a look? the url is:

http://www.ahealthcare.gr/test_for_j25/el/advanced-healthcare-home/%CF%84%CE%B1-%CE%BD%CE%AD%CE%B1-%CF%84%CE%B7%CF%82-advanced-healthcare/%CE%B5%CF%80%CE%B9%CE%BA%CE%BF%CE%B9%CE%BD%CF%89%CE%BD%CE%AF%CE%B1-%CE%BC%CE%B5-%CF%84%CE%B7%CE%BD-advanced-healthcare

and lets say that I want to remove this piece of code: <address> from
the page. Where is this page located according to firebug?
PS Although I checked "Show Comments" I cannot see any comments. Where
are these comments and file location displayed?

Best regards

On Feb 14, 1:41 pm, Nakul Dhenge <nakul.dhe...@gmail.com> wrote:
> Hi Tzic,
>
>   It's a very simple. On your firebug menu bar there is HTML drop down
> menu, when you click on this you will see "Show Comments" just select this.
> this will show you comments and file location.
>
> Thanks,
>
> Nakul Dhenge.
>
> Mob no.:+91 9891676763
>

Sebo

unread,
Feb 14, 2012, 9:16:44 AM2/14/12
to fir...@googlegroups.com
This requires programming knowledge and basic understanding of how server-side scripts work.
When you enter http://www.ahealthcare.gr/test_for_j25/el/advanced-healthcare-home/%CF%84%CE%B1-%CE%BD%CE%AD%CE%B1-%CF%84%CE%B7%CF%82-advanced-healthcare/%CE%B5%CF%80%CE%B9%CE%BA%CE%BF%CE%B9%CE%BD%CF%89%CE%BD%CE%AF%CE%B1-%CE%BC%CE%B5-%CF%84%CE%B7%CE%BD-advanced-healthcare it's not a single HTML file that is accessed, but behind that URL there's a PHP script that includes other scripts to dynamically build up the HTML output you see inside your browser (and Firebug).
When you edit the CSS or HTML inside Firebug you are not editing the source files but only what is displayed inside your browser.
Issue 5035 adds a mapping between the HTML returned by the server and the script files on your local server.
Though this still requires that you know about the file structure on your server. So again, I suggest you read about how Apache, PHP and Joomla are working.

Sebastian

tzic

unread,
Feb 14, 2012, 10:15:34 AM2/14/12
to Firebug
Ok Sebastian and Nakul Dhenge, thank you for your time and
explanation.

On Feb 14, 4:16 pm, Sebo <sebastianzart...@gmx.de> wrote:
> This requires programming knowledge and basic understanding of how
> server-side scripts work.
> When you enterhttp://www.ahealthcare.gr/test_for_j25/el/advanced-healthcare-home/%C...
> *not a single HTML file* that is accessed, but behind that URL there's a
> PHP script that includes other scripts to *dynamically* build up the HTML
> output you see inside your browser (and Firebug).
> When you edit the CSS or HTML inside Firebug you are not editing the source
> files but only what is displayed inside your browser.
> Issue 5035 <http://code.google.com/p/fbug/issues/detail?id=5035> adds a
> mapping between the HTML returned by the server and the script files on
> your *local* server.
> Though this still requires that you know about the file structure on your
> server. So again, I suggest you read about how Apache<http://httpd.apache.org/>,
> PHP <http://php.net/> and Joomla <http://www.joomla.org/> are working.
>
> Sebastian

Sebastian Zartner

unread,
Nov 21, 2012, 12:46:38 PM11/21/12
to fir...@googlegroups.com, sebastia...@gmx.de
Hi Fabrice,

if you mean which file with "where the element is", then I think my previous answer already explains the situation quite well. Firebug gets its information from the browser. And the browser just knows about the contents it gets back when requesting a specific URL. It does not know how the contents are generated, i.e. how the content is generated on the server. The Net panel gives you more information about the network requests and the contents coming back from the server.
If you mean the location of the element inside the page, then hover it inside the HTML panel to see it highlighted on the page or right-click it and choose Scroll Into View from the context menu to scroll to it.

Sebastian

On Wednesday, November 21, 2012 3:33:45 PM UTC+1, FabricePMW wrote:
Hi,

I have the same problem as the original poster. Your answer is helpful, and yet when I use firebug, I click on a single element at a time that I want to know more about - therefore, why can't firebug hint to me as to where the element is? It doesn't mean the webpage as a whole won't be a combination of different elements, it just means when I single out an element I want to know where it is to modify it...
Reply all
Reply to author
Forward
0 new messages