Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am using frameset .But frame is not working when its src attribute set to absolute path.

XML
<frameset cols="100%">
<%--<frame src="H:/Projects/WebSite1/images/IMG_haefelelogo.gif" name="frame_a">--%>
<%--<frame src="H:\Projects\WebSite1\images\IMG_haefelelogo.gif" name="frame_a">--%>
</frame>



Please do needful.
Posted
Comments
Wombaticus 19-Apr-15 6:08am    
It wonn't. The src attribute needs to be a URL, absolute or relative, but a URL.

1 solution

You shouldn't do this. If you publish you're site anywhere it will break.
You should always use a relative path.
The src attribute is resolved by the client (e.g. the browser) which doesn't have access to the absolute path.

Looking at you're path you're website is in H:\Projects\Website1.
So the images are in the image folder.

The paths should be relative and actual url's so with forward slashes.

HTML
<frame src="images/IMG_haefelelogo.gif" name="frame_a">


Hope this helps.

I will however note that framesets are no longer part of the HTML spec and support will probably be dropped in some future modern browsers
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900