Source code not displayed

252 views
Skip to first unread message

Jonathan Mills

unread,
Jan 22, 2014, 8:09:20 AM1/22/14
to fir...@googlegroups.com
Hi

I am having problems with a Web application I'm working on. It's a fairly large app, but nothing
radical. It involved a PHP script generating a HTML page, which loads other javascript
files for execution.

However, when I start Firebug (1.12.6), I don't see the scripts/code on the initial page.  The
javascript loaded via <script ..> is there fine.

Thinking it was the fact that I was passing parameters, I wrote a test script that worked
fine, so I am trying to find out why I am not seeing the source code.

There don't appear to be any error messages, save the

1 Reload the page to get source for: http://bsbasa.org/NewWebEntry/MeetEntry.php?Meet=AG14

and when you refresh the page, you see what appears to be the source code in the window, briefly, before it is replaced by this message.

Anything I can turn on/monitor/etc so I can try and get to see my source code - I'm blind without my firebug!


Jonathan

Sebastian Zartner

unread,
Jan 22, 2014, 11:16:35 AM1/22/14
to fir...@googlegroups.com
There's some chain reaction going on here.
The html, body CSS rule inside HTML contains an empty url() value for the background-image property, which causes a second request to http://bsbasa.org/NewWebEntry/MeetEntry.php?Meet=AG14 (visible inside the Net panel). The response for the second request is empty, because it's requested as image (due to that background-image property).
Firebug has a bug causing the initial contents of
http://bsbasa.org/NewWebEntry/MeetEntry.php?Meet=AG14 to be overwritten by the contents of the second request, which is empty. This causes the error message "Reload the page to get source for: http://bsbasa.org/NewWebEntry/MeetEntry.php?Meet=AG14". This bug will be fixed in the next major version of Firebug.

Basically all you need to do is to add an image URL to the background-image property or remove it.

Sebastian
Reply all
Reply to author
Forward
0 new messages