16
RAWR-Designs / Re: Icon displaying bug
« on: December 10, 2007, 09:08:08 AM »
I've forgotten to mention that, for me, this bug only occurs on IE7 but not on Firefox2
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
is anyone able to reproduce this bug using the default template?
from last tests it seems that it never happens with the default one.
@dayletter: why do you change the template-file to submit the whole path to the rawr-previewbox.js as variable +content+ instead of only the filename as before? what is the effort?
so in rawr-previewbox you also changed this to get it working:
data=\"http://"+infoHost+infoFolder+escape(content)+"\" to data=\""+content+"\" and
value=\"http://"+infoHost+infoFolder+escape(content)+"\" to value=\""+content+"\" and
src=\"http://"+infoHost+infoFolder+escape(content)+"\" to src=\""+content+"\" in line 57 and 68. one effort is a little bit more code in the template, but 3times less code in js-file, but that couldnt be all?
+content+ & Encode non-ASCII-characters off
Firefox: ok
IE: ok
and what about encodeURI(unescape(content)) ?
changing +encodeURI(unescape(content))+ to +content+
switching off the option,
changing +encodeURI(unescape(content))+ back to +escape(content)+
The escape method returns a string value (in Unicode format) that contains the contents of charstring. All spaces, punctuation, accented characters, and any other non-ASCII characters are replaced with %xx encoding, where xx is equivalent to the hexadecimal number representing the character. For example, a space is returned as "%20."
Characters with a value greater than 255 are stored using the %uxxxx format.
Note The escape method should not be used to encode Uniform Resource Identifiers (URI). Use encodeURI and encodeURIComponent methods instead.
The encodeURI method returns an encoded URI. If you pass the result to decodeURI, the original string is returned. The encodeURI method does not encode the following characters: ":", "/", ";", and "?". Use encodeURIComponent to encode these characters.
The encodeURIComponent method returns an encoded URI. If you pass the result to decodeURIComponent, the original string is returned. Because the encodeURIComponent method encodes all characters, be careful if the string represents a path such as /folder1/folder2/default.html. The slash characters will be encoded and will not be valid if sent as a request to a web server. Use the encodeURI method if the string contains more than a single URI component.