It's not clear to me why there is any difference between your document
built with 265 vs 250. The "window.location" variable is defined by
the browser, not the TWCore, so there should be no change in value due
to different TWCore versions. Also, I assume you are using the same
version of InlineJavascriptPlugin in both documents, so that wouldn't
be a source of the difference either.
Regardless of the cause, you can easily work-around the difference by
using
decodeURIComponent(window.location)
to convert "%20" back in to a true space character. This also
converts any other special character encoding that may be present in
the window.location value.
Thus, your script would be:
<script>var today=new Date();document.write('<font
style="color:#666">'+'URL='+decodeURIComponent(window.location)+'</
font>')</script>
Also, a few script code notes:
1) You don't seem to be using the "today" variable that you are
setting. Why is that code there at all?
2) Rather than using document.write(...) to generate the output using
HTML syntax, you could use TW syntax, and simply "return" the
resulting string for automatic rendering (a built-in feature of
InlineJavascriptPlugin handling for embedded scripts)
<script>
return '@@color:#666; URL="""'+decodeURIComponent(window.location)
+'"""@@'
</script>
* use '@@attr:value;...@@' to set the font color
* use """...""" surrounding the decoded window.location to prevent TW
from creating an external link (i.e., just render URL as text)
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
http://www.TiddlyTools.com/#Donations
Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
http://www.TiddlyTools.com/#Contact