File versus HTTP (localhost) in Firebug

I learned something today.

I use NetBeans 6.8 PHP for developing web apps. My external web browser is Firefox 3.6.

In the the HTML editor of NetBeans you right-click and select View. This sends the HTML file to Firefox. No requests will ever be generated.

So to correct this use HTTP://localhost instead of file://c:\whatever.

In the editor “run” the file instead of “view” (CTL-F6). BTW, why would anyone ever want to view the HTML instead of run it?

This really helped me out when debugging jQuery post request, using JSON format.


One Response to “File versus HTTP (localhost) in Firebug”

  1. 12 Top API for Your Web Apps | denbagus blog Says:

    […] File versus HTTP (localhost) in Firebug « Ugly Web Development […]

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: