Discussion:
Developer Tools: Script Location and the Base Tag
(too old to reply)
brad dunbar
2009-01-09 14:07:01 UTC
Permalink
When using the IE8b2 Developer Tools, I attempted to debug a script by
choosing it through the dropdown on the Script tab. However, the page I was
viewing used a base tag to set a base url. The script would not load because
it's url did not take the base tag into consideration and therefore displayed
nothing.

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

https://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx?mid=62b08630-5c7b-45f9-ba04-e2a22ed1920c&dg=microsoft.public.internetexplorer.beta
Phill M
2009-11-29 12:26:01 UTC
Permalink
This isn't just a problem with the Developer Tools.

<base href="http://mydomain.com/" />
<script type="text/javascript" src="js/prototype.js"></script>

..
Results in..
IP – - [29/Nov/2009:15:28:52 +1100] "GET /mypath/js/scriptaculous.js
HTTP/1.1" 404 – "http://www.mydomain.com/mypath/" "Mozilla/4.0 (compatible;
MSIE 8.0; Windows NT 6.1; Valve Steam GameOverlay; )"
IP – - [29/Nov/2009:15:28:52 +1100] "GET /mypath/js/common.js HTTP/1.1" 404
– "http://www.mydomain.com/mypath/" "Mozilla/4.0 (compatible; MSIE 8.0;
Windows NT 6.1; Valve Steam GameOverlay; )"
IP – - [29/Nov/2009:15:28:52 +1100] "GET /js/prototype.js HTTP/1.1" 200
94415 "http://www.mydomain.com/mypath/" "Mozilla/4.0 (compatible; MSIE 8.0;
Windows NT 6.1; Valve Steam GameOverlay; )"
IP – - [29/Nov/2009:15:28:52 +1100] "GET /js/scriptaculous.js HTTP/1.1" 200
2612 "http://www.mydomain.com/mypath/" "Mozilla/4.0 (compatible; MSIE 8.0;
Windows NT 6.1; Valve Steam GameOverlay; )"

IP = my IP.
Post by brad dunbar
When using the IE8b2 Developer Tools, I attempted to debug a script by
choosing it through the dropdown on the Script tab. However, the page I was
viewing used a base tag to set a base url. The script would not load because
it's url did not take the base tag into consideration and therefore displayed
nothing.
----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.
https://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx?mid=62b08630-5c7b-45f9-ba04-e2a22ed1920c&dg=microsoft.public.internetexplorer.beta
Loading...