I am trying to open a html page using Iframe. The Html page has some text and Images.
The Image Source is specified using releative path for e.g. ....\Images\Img1.jpeg.
Its working fine in IE and Chrome. In firefox the Image Path is becoming like-
http://localhost:1657/WebSite/Stories/kunwar/..%5C..%5CImages%5CStory_images%5Cimg1.jpeg
What am I missing here?
Backslash (\
) are the Windows separators, but in url and uri, you need use slash (/
), even if your server use a Windows OS.
See RFC 3986 "Uniform Resource Identifier (URI): Generic Syntax", section 1.2.3 "Hierarchical Identifiers"
The generic syntax uses the slash ("/"), question mark ("?"), and number sign ("#") characters to delimit components that are significant to the generic parser's hierarchical interpretation of an identifier.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With