When used to browse for images, <input type="file"> produces a URL address with backward slashes in the text field. For example -- C:\Windows\Desktop\photo2.jpg.
I need the backward slashes automatically converted to forward slashes before the text field value (URL) is inserted into an image...
This may be difficult to understand unless you are familiar with the design mode feature built into Internet Explorer 5.5+. I used this feature to develop a browser-based WYSIWYG HTML editor for offline use, but I have run into a serious problem that I can't solve.
innerHTML and outerHTML...
I have written a preview page function for the WYSIWYG editor I'm developing, but it doesn't work and I can't figure out why. I get error message "Access denied" on one line. Here's the script:
function previewPage() {
iView.document.execCommand('SaveAs',null,'popup')...
Can anyone tell me how to stop the script below from removing the back slashes in the image URL? Here's the result I get in the alert:
<img src=C:WindowsDesktopimage1.jpg width="100" height="100" border="0">
function getImageDims(imgurl)
{
var oImage = new Image();
oImage.onload = new...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.